add "LE Device Address" 0x1B to advertising data types

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Mon Nov 02 09:09:03 2015 +0000
Parent:
836:09dba2bf7c82
Child:
838:e2f69ba31b02
Commit message:
Synchronized with git rev 13a9c192
Author: xcrespo
New call to onDisconnection callback in LinkLossService

Changed in this revision

ble/services/LinkLossService.h Show annotated file Show diff for this revision Revisions of this file
--- a/ble/services/LinkLossService.h	Mon Nov 02 09:09:03 2015 +0000
+++ b/ble/services/LinkLossService.h	Mon Nov 02 09:09:03 2015 +0000
@@ -52,11 +52,12 @@
         GattCharacteristic *charTable[] = {&alertLevelChar};
         GattService         linkLossService(GattService::UUID_LINK_LOSS_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
 
-        ble.addService(linkLossService);
+        ble.gattServer().addService(linkLossService);
         serviceAdded = true;
 
-        ble.addToDisconnectionCallChain(this, &LinkLossService::onDisconnectionFilter);
-        ble.onDataWritten(this, &LinkLossService::onDataWritten);
+        ble.gap().onDisconnection(this, &LinkLossService::onDisconnectionFilter);
+        ble.gattServer().onDataWritten(this, &LinkLossService::onDataWritten);
+
     }
 
     /**
@@ -86,7 +87,7 @@
         }
     }
 
-    void onDisconnectionFilter(void) {
+    void onDisconnectionFilter(const Gap::DisconnectionCallbackParams_t *params) {
         if (alertLevel != NO_ALERT) {
             callback(alertLevel);
         }