From f800f22a79af6aa34ab48b318f926753d8f85af3 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 18 Feb 2017 13:20:03 +0100 Subject: [PATCH] nrf5/modules: Updating ubluepy example in the header file with new function call to add service to a peripheral instance. --- nrf5/modules/ubluepy/modubluepy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/nrf5/modules/ubluepy/modubluepy.h b/nrf5/modules/ubluepy/modubluepy.h index f5bcc9835d..1d2c15469f 100644 --- a/nrf5/modules/ubluepy/modubluepy.h +++ b/nrf5/modules/ubluepy/modubluepy.h @@ -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])