Auto updating alarm watch - accepts alarm settings from a BLE device like a Raspberry Pi and buzzes at the appropriate time - also displays binary time
Dependencies: BLE_API mbed-src nRF51822 nrf51_rtc
Diff: ButtonService.h
- Revision:
- 3:a4b8d67de1b1
- Parent:
- 2:9090120e2656
--- a/ButtonService.h Sun Jul 26 15:38:59 2015 +0000 +++ b/ButtonService.h Mon Jul 27 15:25:59 2015 +0000 @@ -34,6 +34,11 @@ ble.gattServer().write(buttonState.getValueHandle(), (uint8_t *)&newState, sizeof(bool)); } + GattAttribute::Handle_t getValueHandle() + { + return buttonState.getValueHandle(); + } + private: BLE &ble; ReadOnlyGattCharacteristic<bool> buttonState;