Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LinkNode_SimpleChatwithSerial
Fork of BLE_API by
Diff: ble/services/LinkLossService.h
- Revision:
- 860:0d41e4eb3d0a
- Parent:
- 853:2e829bcda785
- Child:
- 861:2afa79e3ed0a
--- 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 "ble/Gap.h"
+#include "Gap.h"
/**
* @class LinkLossService
@@ -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);
}
