High level Bluetooth Low Energy API and radio abstraction layer
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Overview
The BLE_API is a high level abstraction for using Bluetooth Low Energy on multiple platforms. For details and examples using the BLE_API please see the BLE_API Summary Page. Or click on the API Documentation tab above.
Supported Services
Supported services can be found in the BLE_API/services folder.
Diff: ble/services/LinkLossService.h
- Revision:
- 727:1a1f5c5aedfe
- Parent:
- 726:6884e374e2eb
- Child:
- 728:997ba5e7b3b6
--- a/ble/services/LinkLossService.h Thu Jul 02 09:06:12 2015 +0100 +++ b/ble/services/LinkLossService.h Mon Jul 06 10:10:34 2015 +0100 @@ -73,7 +73,7 @@ alertLevel = newLevel; } -protected: +private: /** * This callback allows receiving updates to the AlertLevel Characteristic. * @@ -81,7 +81,7 @@ * Information about the characterisitc being updated. */ virtual void onDataWritten(const GattWriteCallbackParams *params) { - if (params->handle == alertLevelChar.getValueHandle()) { + if (params->charHandle == alertLevelChar.getValueHandle()) { alertLevel = *reinterpret_cast<const AlertLevel_t *>(params->data); } }