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: services/LinkLossService.h
- Revision:
- 526:caa67c3187a0
- Parent:
- 524:6e97ab392e2a
- Child:
- 527:493185cebc03
diff -r c80c57d748f8 -r caa67c3187a0 services/LinkLossService.h
--- 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 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;
