WIFI_AP_STA mode connected to a router.
client connects to the AP side of things via TCP connection which is kept open and is transmitting and receiving.
All works great until if the router disconnects or goes out of range on the station side, the client which is connected via the AP then fails even though it has valid connection and is in range, WifiClient.connect comes back false.
I think when the station disconnects or fails to talk to the router, the system drops Station and Access point connections ?
This is what I am seeing anyway, help ?
Yes, this is a limitation of ESP8266.
Although ESP8266 can work in softAP+station mode, but it actually has only one hardware channel.
More details are in http://bbs.espressif.com/viewtopic.php?f=61&t=324.
Sorry for the inconvenience.
Is there a document with all these known limitations in so we can know what it can and cant do?
Just thought, how about if we are setup in AP and STA mode, then once the Station has connected to a router, then perhaps it can only connect again on the same channel , then the AP wont break, this could be some functionality ?
Usually once it has found a router, it will be connecting and reconnecting to the same one ?
Or is there anyway to force the Station to not scan for a AP, but to lock onto the same channel?
I have tried calling
above and below the connect, but the station keeps trying to connect
wifi_station_set_reconnect_policy(false); // if the ESP8266 station connected to the router, and then the connection broke, ESP8266 will not try to reconnect to the router.
wifi_station_set_auto_connect(false); //the ESP8266 station will not try to connect to the router automatically when power on until wifi_station_connect is called.
wifi_station_disconnect(); // ESP8266 station disconnects to the router, or ESP8266 station stops trying to connect to the target router.
Who is online
Users browsing this forum: No registered users and 2 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!