You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is running in ESP8266 under Arduino ESP8266 library.
ESP8266 is working in WiFi.mode(WIFI_AP_STA). ESP is connected to both the AP network and to (an independent) Stat network. There is a WebSocketsServer working through the AP network that has 2 or 3 connected active client sockets. All this is working flawlessly.
But when the code disconnects the Stat network (WiFi.disconnect()), in which there are no sockets, the WebSocketsServer closes all connected (AP network) sockets.
Additionally, the server also closes all sockets connected through the AP network when:
The code tries to connect, in Station mode, to an SSID not present (WL_NO_SSID_AVAIL)
The code tries to connect, in Station mode, to a present SSID but using a bad pass-word (WL_CONNECT_FAILED)
The text was updated successfully, but these errors were encountered:
the problem is that the ESP is switching channels to find a new AP when the STA disconnects.
this results in a connection lost for the clients connected to the AP of the ESP.
and when the ESP finds the WiFi for STA again it may switches channels again --> AP clients connection gone again.
there is nothing on the library level that can be done.
the ESP can only be on one channel at a time.
if your WiFi you connect to in STA mode is always on the same channel, try to set the AP you create with the ESP to the same channel.
The code is running in ESP8266 under Arduino ESP8266 library.
ESP8266 is working in WiFi.mode(WIFI_AP_STA). ESP is connected to both the AP network and to (an independent) Stat network. There is a WebSocketsServer working through the AP network that has 2 or 3 connected active client sockets. All this is working flawlessly.
But when the code disconnects the Stat network (WiFi.disconnect()), in which there are no sockets, the WebSocketsServer closes all connected (AP network) sockets.
Additionally, the server also closes all sockets connected through the AP network when:
The code tries to connect, in Station mode, to an SSID not present (WL_NO_SSID_AVAIL)
The code tries to connect, in Station mode, to a present SSID but using a bad pass-word (WL_CONNECT_FAILED)
The text was updated successfully, but these errors were encountered: