Hi everyone !
It is my first post with you, I hope I will be clear.
I use 'Arduino Nano 33 IOT' for my project asociated with WiFiNINA.h library.
#include <WiFiNINA.h>
void setup() {
NOT USEFUL HERE I don't left it
}
void loop()
{
// scan for existing networks:
Serial.println("Scanning available networks...");
listNetworks();
WiFiconnexion();
delay(10000);
}
I put here my code the problem come with the listNetworks() use..
void listNetworks()
{
// scan for nearby networks:
Serial.println("** Scan Networks **");
int numSsid = WiFi.scanNetworks();
//HERE IT DISCONNECT FROM THE NETWORK I WAS CONNECTED TO BECAUSE OF WiFi.scanNetworks()
[...]}
But I have to scan available WiFi every 10 sec to see If a closest and strongest (dBm) WiFi is available. If so I have to change my connection. But most of the time I have to stay connected to the same WiFI.
Do you know if another library or fonction can scan for network without disconnecting from the network we are connected with ?
Hope to be clear .
Have a nice day