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:
850:32ff6e392630
Parent:
841:468a5863cacb
Child:
851:802f445cc195
diff -r 0f5972e454b2 -r 32ff6e392630 ble/services/LinkLossService.h
--- a/ble/services/LinkLossService.h	Mon Nov 02 09:09:05 2015 +0000
+++ b/ble/services/LinkLossService.h	Mon Nov 02 09:09:05 2015 +0000
@@ -55,7 +55,7 @@
         ble.addService(linkLossService);
         serviceAdded = true;
 
-        ble.onDisconnection(this, &LinkLossService::onDisconnectionFilter);
+        ble.addToDisconnectionCallChain(this, &LinkLossService::onDisconnectionFilter);
         ble.onDataWritten(this, &LinkLossService::onDataWritten);
     }
 
@@ -86,7 +86,7 @@
         }
     }
 
-    void onDisconnectionFilter(const Gap::DisconnectionCallbackParams_t *params) {
+    void onDisconnectionFilter(void) {
         if (alertLevel != NO_ALERT) {
             callback(alertLevel);
         }