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)
|
||||
s.addCharacteristic(c)
|
||||
p = Peripheral()
|
||||
p.addService(s)
|
||||
p.setConnectionHandler(event_handler)
|
||||
p.advertise(device_name="micr", services=[s])
|
||||
|
||||
|
|
Loading…
Reference in New Issue