I have a device built with an ESP-07 module and it is configured to connect to a certain access point using the SSID and password programmed into the EEPROM config data. This device goes into deep sleep between measurements and is reset to wake up every hour.
In my location there is a WiFi network consisting of two WiFi routers wired together with Ethernet cable. One is the main router with the DHCP server, gateway etc. The other is a "slave" router operating as an extension of the main (via the cable) and uses the same SSID and password. DHCP calls are routed to the main router via the cable.
Now my question is: Which AP will the ESP8266 connect to on wakeup since both uses the same SSID and password? The signal strength depends on the location of the device, i.e. which AP it is closest to. When connected the ESP will be on the same network in both cases so it would be best if it chooses the AP with the [u]highest signal strength[/u]. But does it? Or will the ESP8266 subsystem (outside of Arduino programmability) try to connect to the AP with the same MAC address as the last connect in this case? If so it will hold on to a WiFi AP with much lower signal quality and strength if it is moved to a different location between deep sleep awakes...