arduino / nina-fw

Firmware for u-blox NINA W102 WiFi/BT module
135 stars 117 forks source link

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

Open Roamer105 opened 1 year ago

Roamer105 commented 1 year ago

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 commented 1 year ago

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 commented 5 months ago

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