High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: services/LinkLossService.h
- Revision:
- 524:6e97ab392e2a
- Parent:
- 521:b2dae8d95c4d
- Child:
- 526:caa67c3187a0
--- a/services/LinkLossService.h Fri Jun 19 15:52:06 2015 +0100 +++ b/services/LinkLossService.h Fri Jun 19 15:52:06 2015 +0100 @@ -80,7 +80,7 @@ * @param[in] params * Information about the characterisitc being updated. */ - virtual void onDataWritten(const GattCharacteristicWriteCBParams *params) { + virtual void onDataWritten(const GattWriteCallbackParams *params) { if (params->charHandle == alertLevelChar.getValueHandle()) { alertLevel = *reinterpret_cast<const AlertLevel_t *>(params->data); } @@ -92,7 +92,7 @@ } } -protected: +private: BLEDevice &ble; AlertLevel_t alertLevel; callback_t callback;