nrf5/modules: Updating example in ubluepy header to use handle instead of data length upon reception of an event.
This commit is contained in:
parent
db3dd8bc8b
commit
df31508d6f
@ -40,8 +40,9 @@ DB setup:
|
||||
from ubluepy import Service, Characteristic, UUID, Peripheral, constants
|
||||
from pyb import LED
|
||||
|
||||
def event_handler(id, length, data):
|
||||
print("BLE event:", id, "length:", length)
|
||||
def event_handler(id, handle, data):
|
||||
print("BLE event:", id, "handle:", handle)
|
||||
print(data)
|
||||
|
||||
if id == constants.EVT_GAP_CONNECTED:
|
||||
# connected
|
||||
|
Loading…
x
Reference in New Issue
Block a user