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

WiFi.status() returns 255 randomly but remains connected and operational #85

Open
Roamer105 opened this issue Feb 6, 2023 · 2 comments

Comments

@Roamer105
Copy link

Roamer105 commented Feb 6, 2023

A significant web server sketch running on an MKR1010 experiences random "disconnects" which are not really disconnects since the status returned is 255 and not any of the valid status codes listed. For now, simply ignoring it and treat it the same as WL_CONNECTED overcomes the issue as a work-around.

The frequency of the 255 status returns seem to depend on network activity and proximity to the AP. It seems that is is worse when located close to the AP (within 10 feet for example).

@Roamer105
Copy link
Author

Roamer105 commented Feb 9, 2023

Additional information: the web server simultaneously uses Wi-Fi to connect to a ModBus server as a client to collect information periodically. Disabling the client code appears to correct the problem.
consequence: it appears as that WFININA does not support both a web server and a client simultaneously.
it is not likely that this restriction was by design. This is a problem most likely residing in the firmware.

@dansiviter
Copy link

I'm seeing something very similar: https://forum.arduino.cc/t/wifi-connection-unreliable/1258323/2

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