mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
18 lines
416 B
Arduino
18 lines
416 B
Arduino
#include <Arduino.h>
|
|
#include <WiFiManager.h>
|
|
|
|
WiFiManager portal;
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
portal.setConfigPortalTimeout(180);
|
|
|
|
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(); }
|