#include "WiFi.h"
void
setup()
{
Serial.begin(115200);
// Set WiFi to station mode and disconnect from an AP if it was pre
viously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setup
}
void
loop()
{
Serial.println("scan
// WiFi.scanNetworks will return the number of networks found
int
n
=
WiFi.scanNetworks();
Serial.println("scan
if
(n
==
0) {
Serial.println("no networks
done");
start");
done");
found");
Need help?
Do you have a question about the PICO and is the answer not in the manual?