High level Bluetooth Low Energy API and radio abstraction layer

Fork of BLE_API by Bluetooth Low Energy

Revision:
861:2afa79e3ed0a
Parent:
860:0d41e4eb3d0a
Child:
863:4f8e12333453
diff -r 0d41e4eb3d0a -r 2afa79e3ed0a ble/services/LinkLossService.h
--- a/ble/services/LinkLossService.h	Mon Nov 02 09:09:07 2015 +0000
+++ b/ble/services/LinkLossService.h	Mon Nov 02 09:09:07 2015 +0000
@@ -17,7 +17,7 @@
 #ifndef __BLE_LINK_LOSS_SERVICE_H__
 #define __BLE_LINK_LOSS_SERVICE_H__
 
-#include "Gap.h"
+#include "ble/Gap.h"
 
 /**
 * @class LinkLossService
@@ -55,7 +55,7 @@
         ble.addService(linkLossService);
         serviceAdded = true;
 
-        ble.addToDisconnectionCallChain(this, &LinkLossService::onDisconnectionFilter);
+        ble.onDisconnection(this, &LinkLossService::onDisconnectionFilter);
         ble.onDataWritten(this, &LinkLossService::onDataWritten);
     }
 
@@ -86,7 +86,7 @@
         }
     }
 
-    void onDisconnectionFilter(void) {
+    void onDisconnectionFilter(const Gap::DisconnectionCallbackParams_t *params) {
         if (alertLevel != NO_ALERT) {
             callback(alertLevel);
         }