Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_notifications by
Diff: ButtonService.h
- Revision:
- 13:d4448d59ab69
- Parent:
- 6:18d8750f39ee
- Child:
- 14:700ba072d1a0
--- a/ButtonService.h Tue Apr 18 21:11:05 2017 +0000
+++ b/ButtonService.h Wed Apr 19 01:22:46 2017 +0000
@@ -30,8 +30,8 @@
ble.gattServer().addService(buttonService);
}
- void updateButtonState(bool newState) {
- ble.gattServer().write(buttonState.getValueHandle(), (uint8_t *)&newState, sizeof(bool));
+ void updateButtonState(uint8_t newState) {
+ ble.gattServer().write(buttonState.getValueHandle(), (uint8_t *)&newState, sizeof(uint8_t));
}
private:
