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.
Fork of BLE_API by
Diff: ble/services/BatteryService.h
- Revision:
- 728:997ba5e7b3b6
- Parent:
- 727:1a1f5c5aedfe
- Child:
- 915:a0268df28ca6
diff -r 1a1f5c5aedfe -r 997ba5e7b3b6 ble/services/BatteryService.h
--- a/ble/services/BatteryService.h Mon Jul 06 10:10:34 2015 +0100
+++ b/ble/services/BatteryService.h Mon Jul 06 10:10:34 2015 +0100
@@ -53,7 +53,7 @@
*/
void updateBatteryLevel(uint8_t newLevel) {
batteryLevel = newLevel;
- ble.updateCharacteristicValue(batteryLevelCharacteristic.getValueAttribute().getHandle(), &batteryLevel, 1);
+ ble.gattServer().write(batteryLevelCharacteristic.getValueHandle(), &batteryLevel, 1);
}
protected:
