mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-18 17:01:42 +10:00
Clarify portal documentation examples
This commit is contained in:
@@ -7,9 +7,11 @@ void setup() {
|
||||
Serial.begin(115200);
|
||||
portal.setConfigPortalTimeout(180);
|
||||
|
||||
portal.autoConnect("WiFiManager Basic", "example-pass");
|
||||
|
||||
Serial.println("Connected. Run your normal application here.");
|
||||
if (portal.autoConnect("WiFiManager Basic", "example-pass")) {
|
||||
Serial.println("Connected. Run your normal application here.");
|
||||
} else {
|
||||
Serial.println("Setup portal started at http://192.168.4.1/");
|
||||
}
|
||||
}
|
||||
|
||||
void loop() { portal.process(); }
|
||||
|
||||
Reference in New Issue
Block a user