BLE - peripheral name = ESP32 ?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
prem111
Posts: 127
Joined: Sun Feb 23, 2020 3:18 pm

BLE - peripheral name = ESP32 ?

Post by prem111 » Wed Jul 08, 2020 9:14 am

How to change the name of the BLE peripheral device, it is normally detected as ESP32.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: BLE - peripheral name = ESP32 ?

Post by jimmo » Wed Jul 08, 2020 11:53 am

prem111 wrote:
Wed Jul 08, 2020 9:14 am
How to change the name of the BLE peripheral device, it is normally detected as ESP32.
https://docs.micropython.org/en/latest/ ... BLE.config see the "gap_name" option.

Note that this was added since v1.12, so will require the latest firmware.

prem111
Posts: 127
Joined: Sun Feb 23, 2020 3:18 pm

Re: BLE - peripheral name = ESP32 ?

Post by prem111 » Wed Jul 08, 2020 3:47 pm

Ok im have MicroPython v1.12

Code: Select all

ble_service = ble.bluetooth.BLE()
ble_service.config(gap_name="test")
ble_conn = ble.bleInit(ble_service)

>>
ValueError: unknown config param

prem111
Posts: 127
Joined: Sun Feb 23, 2020 3:18 pm

Re: BLE - peripheral name = ESP32 ?

Post by prem111 » Mon Jul 13, 2020 5:56 am

Maybe there is something else I don't know about?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: BLE - peripheral name = ESP32 ?

Post by jimmo » Thu Jul 16, 2020 3:59 am

prem111 wrote:
Wed Jul 08, 2020 3:47 pm
Ok im have MicroPython v1.12
This was added after v1.12 -- you need the latest firmware (i.e. the unstable version).

Post Reply