pls
Dependencies: BLE_API mbed nRF51822
Fork of zach_thresholding 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: