First thank for reply,
I know that ble.onDisconnection() is equal to ble.gap().onDisconnection() I see it inside BLE class. the problem is I was trying to uses BLE.onDisconnection() and then I read method deprecated but ble.OnDisconnection() doesn't work so I decided uses ble.gap().OnDisconnection() but It always appear the same error.
even using the function callback at HeartRate demo, which is the next:
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
{
}
What i mean it's independent the function ble.gap() or ble I get the same error, I thought that was the function callback but I'm using the same at Heart Rate demo. So I don't know what i'm doing wrong
Hi everybody,
I'm trying to detect in my BLE nano when a disconnection event happens So I try to use the syntax similar to connection
something like that
Quote:
MAIN CLASS
ble.onConnection(connectionCallback);
void connectionCallback(Gap::ConnectionCallbackParams_t *params) { it does what I want }
BLE CLASS
void onConnection(Gap::ConnectionEventCallback_t connectionCallback) { gap().onConnection(connectionCallback); }
So when I tried to do something to disconnection i uses
Quote:
MAIN CLASS
ble.onDisconnection(disconnectionCallback);
void disconnectionCallback(Gap::DisconnectionEventCallback_t callback ) {
}
So i check it out the BLE class and found
/**
So I decided update my code using ble.gap().onDisconnetion(...) with the same function but still it doesn't work What can i do to solve the issue?