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