I have an Arduino Nano 33 IoT configured to connect to my WiFi network with a pretty straightforward code:
#include <WiFiNINA.h>
int status = WL_IDLE_STATUS;
status = WiFi.status();
while (status != WL_CONNECTED) {
status = WiFi.begin(ssid, pass);
if (status == WL_CONNECTED) break;
delay(5000);
}
My problem is that in an environment with multiple access points sharing the same SSID (roaming environment) my Arduino is constantly connecting to the weakest one of the access points.
I verified with WiFi Explorer on my laptop that multiple access points are in reach at the same location where the Arduino is placed and for some reason my Arduino decides to connect to the base station with BSSD ending :CA:81, which is paradoxly the weakest one:
Is there a way to address this issue?
