High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 834:44e2b14acd89, committed 2015-11-02
- Comitter:
- rgrover1
- Date:
- Mon Nov 02 09:09:03 2015 +0000
- Parent:
- 833:d494ad3e87bd
- Child:
- 835:6556fcb2f51d
- Commit message:
- Synchronized with git rev d43b1d1a
Author: Rohit Grover
update LinkLoss service due to recent changes in APIs
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 Tue Sep 29 09:54:19 2015 +0100 +++ b/ble/services/LinkLossService.h Mon Nov 02 09:09:03 2015 +0000 @@ -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); }