update LinkLoss service due to recent changes in APIs
parent
91239f6b7c
commit
d43b1d1a8b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue