nrf5/modules: Updating example in ubluepy header to use handle instead of data length upon reception of an event.

This commit is contained in:
Glenn Ruben Bakke 2017-03-03 00:05:09 +01:00
parent db3dd8bc8b
commit df31508d6f

View File

@ -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