update LinkLoss service due to recent changes in APIs

This commit is contained in:
Rohit Grover 2015-09-29 12:58:14 +01:00
parent 91239f6b7c
commit d43b1d1a8b

View file

@ -55,7 +55,7 @@ public:
ble.addService(linkLossService);
serviceAdded = true;
ble.addToDisconnectionCallChain(this, &LinkLossService::onDisconnectionFilter);
ble.onDisconnection(this, &LinkLossService::onDisconnectionFilter);
ble.onDataWritten(this, &LinkLossService::onDataWritten);
}
@ -86,7 +86,7 @@ protected:
}
}
void onDisconnectionFilter(void) {
void onDisconnectionFilter(const Gap::DisconnectionCallbackParams_t *params) {
if (alertLevel != NO_ALERT) {
callback(alertLevel);
}