
}
else
{
Serial
.
(
n
);
Serial
.
println
("
networks found
");
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
// Print SSID and RSSI for each network found
Serial
.
(
i
+
1
);
Serial
.
("
:
");
Serial
.
(
WiFi
.
SSID
(
i
));
Serial
.
("
(
");
Serial
.
(
WiFi
.
RSSI
(
i
));
Serial
.
("
)
");
Serial
.
println
((
WiFi
.
encryptionType
(
i
)
==
WIFI_AUTH_OPEN
)
?
"
"
:
"
*
");
delay
(
10
);
}
}
Serial
.
println
("");
// Wait a bit before scanning again
delay
(
5000
);
}
Содержание PICO
Страница 1: ...M5STACK PICO 2021...