3b6c9119eb
This commit allows the user to set/get the GAP device name used by service 0x1800, characteristic 0x2a00. The usage is: BLE.config(gap_name="myname") print(BLE.config("gap_name")) As part of this change the compile-time setting MICROPY_PY_BLUETOOTH_DEFAULT_NAME is renamed to MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME to emphasise its link to GAP and this new "gap_name" config value. And the default value of this for the NimBLE bindings is changed from "PYBD" to "MPY NIMBLE" to be more generic.
25 lines
519 B
Plaintext
25 lines
519 B
Plaintext
--- instance0 ---
|
|
b'GAP_NAME'
|
|
gap_advertise
|
|
b'GAP_NAME0'
|
|
_IRQ_CENTRAL_CONNECT
|
|
_IRQ_CENTRAL_DISCONNECT
|
|
b'GAP_NAME1'
|
|
_IRQ_CENTRAL_CONNECT
|
|
_IRQ_CENTRAL_DISCONNECT
|
|
--- instance1 ---
|
|
gap_connect
|
|
_IRQ_PERIPHERAL_CONNECT
|
|
gattc_discover_characteristics
|
|
_IRQ_GATTC_CHARACTERISTIC_RESULT UUID16(0x2a00)
|
|
gattc_read
|
|
_IRQ_GATTC_READ_RESULT b'GAP_NAME0'
|
|
gap_disconnect: True
|
|
_IRQ_PERIPHERAL_DISCONNECT
|
|
gap_connect
|
|
_IRQ_PERIPHERAL_CONNECT
|
|
gattc_read
|
|
_IRQ_GATTC_READ_RESULT b'GAP_NAME1'
|
|
gap_disconnect: True
|
|
_IRQ_PERIPHERAL_DISCONNECT
|