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:
Glenn Ruben Bakke 2017-02-18 13:20:03 +01:00
parent 04f8891dc9
commit f800f22a79
1 changed files with 1 additions and 0 deletions

View File

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