rajarajan elango
/
mbed-os-example-ble-LED
Testing of Onboard Led using nRF control panel app in Android device.
Diff: source/LEDService.h
- Revision:
- 74:51fde11a771f
- Parent:
- 2:864ddfb70a9c
--- a/source/LEDService.h Fri Dec 14 13:15:42 2018 +0000 +++ b/source/LEDService.h Mon Jan 14 10:45:49 2019 +0000 @@ -27,7 +27,8 @@ { GattCharacteristic *charTable[] = {&ledState}; GattService ledService(LED_SERVICE_UUID, charTable, sizeof(charTable) / sizeof(GattCharacteristic *)); - ble.addService(ledService); + + ble.gattServer().addService(ledService); } GattAttribute::Handle_t getValueHandle() const