nrf5/modules: Updating ubluepy example in the header file with new function call to add service to a peripheral instance.
This commit is contained in:
parent
04f8891dc9
commit
f800f22a79
@ -59,6 +59,7 @@ s = Service(u0)
|
|||||||
c = Characteristic(u1)
|
c = Characteristic(u1)
|
||||||
s.addCharacteristic(c)
|
s.addCharacteristic(c)
|
||||||
p = Peripheral()
|
p = Peripheral()
|
||||||
|
p.addService(s)
|
||||||
p.setConnectionHandler(event_handler)
|
p.setConnectionHandler(event_handler)
|
||||||
p.advertise(device_name="micr", services=[s])
|
p.advertise(device_name="micr", services=[s])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user