Page 1 of 1

BLE - peripheral name = ESP32 ?

Posted: Wed Jul 08, 2020 9:14 am
by prem111
How to change the name of the BLE peripheral device, it is normally detected as ESP32.

Re: BLE - peripheral name = ESP32 ?

Posted: Wed Jul 08, 2020 11:53 am
by jimmo
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.

Re: BLE - peripheral name = ESP32 ?

Posted: Wed Jul 08, 2020 3:47 pm
by prem111
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

Re: BLE - peripheral name = ESP32 ?

Posted: Mon Jul 13, 2020 5:56 am
by prem111
Maybe there is something else I don't know about?

Re: BLE - peripheral name = ESP32 ?

Posted: Thu Jul 16, 2020 3:59 am
by jimmo
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).