Hello, im trying to print a list of the available wifi networks using the WiFi.scanNetworks() in arduino, ive also created a loop that prints it . My question is can i wait for the loop/program to finish searching before printing the list of available networks? I can print it on the webpage but it gets replaced everytime it iterates in the available networks.
byte available_networks = WiFi.scanNetworks();
int netnum = 0;
prevRssi = 0;
for (int network = 0; network < available_networks; network++) {
//client.print(network + 1);
Serial.print(network + 1);
//client.print(": ");
Serial.print(": ");
//client.println(WiFi.SSID(network));
Serial.println(WiFi.SSID(network));
netnum = network;
prevRssi = (uint8_t)WiFi.RSSI(network);
Sorry my english is bad i can answer follow up questions regarding the post. thank you