- Sun Sep 06, 2015 1:10 pm
#27953
I have multiple wireless access points that are configured with the same SSID that are set to different channels in order to give me good coverage around my house. This works for most of my devices, but is sometimes a problem for the ESP8266. I noticed that depending on where they were located, they would frequently connect to an AP that had a marginal signal even though another one was nearby and this caused a lot of problems with reliability of ESP devices. After a lot of investigation, I figured out that if there are multiple APs with the same SSID, the ESP will always connect to the one on the lowest channel number, regardless of the signal strength.
To get around this, I had to write code to first do a scan, find the AP with the best RSSI, and then specify the BSSID of that one to connect to. This works, however if that AP goes down the ESP will keep trying to reconnect to that particular one and won't try others. So I had to add code to constantly check for connectivity and if it is lost, to go through the scan and selection of the AP with the best signal again.
This wasn't a huge amount of work to implement once I knew what had to be done, but I'm wondering if there is a way to get the ESP to do this automatically,