Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API

Dependents:   microbit-dal microbit-dal microbit-ble-open microbit-dal ... more

Fork of BLE_API by Bluetooth Low Energy

Revision:
713:9f4251b3355c
Parent:
712:b04b5db36865
--- a/ble/services/LinkLossService.h	Fri Jun 19 15:53:29 2015 +0100
+++ b/ble/services/LinkLossService.h	Fri Jun 19 23:45:12 2015 +0000
@@ -81,7 +81,7 @@
      *     Information about the characterisitc being updated.
      */
     virtual void onDataWritten(const GattWriteCallbackParams *params) {
-        if (params->charHandle == alertLevelChar.getValueHandle()) {
+        if (params->handle == alertLevelChar.getValueHandle()) {
             alertLevel = *reinterpret_cast<const AlertLevel_t *>(params->data);
         }
     }