Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on improving arduino::WiFiClass::statusCallback #861

Open
bsodmike opened this issue Apr 5, 2024 · 2 comments
Open

Question on improving arduino::WiFiClass::statusCallback #861

bsodmike opened this issue Apr 5, 2024 · 2 comments

Comments

@bsodmike
Copy link

bsodmike commented Apr 5, 2024

Hi, I noticed this takes an nsapi_event_t status param but it is not used, why is this? Doesn't seem like this is needed here?

void arduino::WiFiClass::statusCallback(nsapi_event_t status, intptr_t param)
{
if (((param == NSAPI_STATUS_DISCONNECTED) ||
(param == NSAPI_STATUS_CONNECTING)) &&
(WiFi.status() == WL_CONNECTED)) {
WiFi._currentNetworkStatus = WL_CONNECTION_LOST;
}
}

@mahesh2135
Copy link

THANKS

@bsodmike
Copy link
Author

Let's get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants