I2C to BLE nano with notifications to pi using original mbed os code

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_notifications by Nicholas Kosarek

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: