High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: ble/services/BatteryService.h
- Revision:
- 1179:4ab722f8dca0
- Parent:
- 1156:e1ea38b576c6
- Child:
- 1183:1589830dbdb7
--- a/ble/services/BatteryService.h Wed Apr 06 19:15:28 2016 +0100 +++ b/ble/services/BatteryService.h Wed Apr 06 19:15:30 2016 +0100 @@ -28,7 +28,7 @@ class BatteryService { public: /** - * @param[in] _ble + * @param[ref] _ble * BLE object for the underlying controller. * @param[in] level * 8bit batterly level. Usually used to represent percentage of batterly charge remaining. @@ -45,7 +45,7 @@ } /** - * @brief Update the battery level with a new value. Valid values lie between 0 and 100, + * @brief Update the battery level with a new value. [Valid values lie between 0 and 100]; * anything outside this range will be ignored. * * @param newLevel @@ -57,20 +57,9 @@ } protected: - /** - * A reference to the underlying BLE instance that this object is attached to. - * The services and characteristics will be registered in this BLE instance. - */ BLE &ble; - /** - * The current battery level represented as an integer from 0% to 100%. - */ uint8_t batteryLevel; - /** - * A ReadOnlyGattCharacteristic that allows access to the peer device to the - * batteryLevel value through BLE. - */ ReadOnlyGattCharacteristic<uint8_t> batteryLevelCharacteristic; };