Changes
Page history
Update P4FollowLine
authored
Nov 17, 2022
by
Roberto
Show whitespace changes
Inline
Side-by-side
P4FollowLine.md
View page @
38961ac0
...
...
@@ -89,22 +89,26 @@ void loop(){
const
char
*
ssid
=
SECRET_SSID
;
const
char
*
password
=
SECRET_PSW
;
void
setup
()
{
Serial
.
begin
(
115200
);
void
initWiFi
()
{
WiFi
.
mode
(
WIFI_STA
);
WiFi
.
begin
(
ssid
,
password
);
Serial
.
print
(
"Connecting to WiFi .."
);
while
(
WiFi
.
status
()
!=
WL_CONNECTED
)
{
delay
(
500
);
Serial
.
println
(
"Connecting to WiFi.."
);
Serial
.
print
(
'.'
);
delay
(
1000
);
}
Serial
.
print
ln
(
"Connected to the WiFi network
"
);
Serial
.
print
(
"IP Address:
"
);
Serial
.
println
(
WiFi
.
localIP
());
Serial
.
print
(
"RRSI: "
);
Serial
.
println
(
WiFi
.
RSSI
());
}
void
setup
()
{
Serial
.
begin
(
115200
);
initWiFi
();
}
...
...
...
...