RBE1001Lib
WifiManagerExample.ino
Go to the documentation of this file.
1 #include <Preferences.h>
2 #include <WiFi.h>
3 #include <Esp32WifiManager.h>
4 
5 //Create a wifi manager
7 // modify the preferences
8 void setup() {
9  //manager.erase();// This will erase the stored passwords
10  manager.setupScan();
11 }
12 
13 void loop() {
14  // read the serial port for new passwords and maintain connections
15  manager.loop();
16  if (manager.getState() == Connected) {
17  // use the Wifi Stack now connected
18  }
19 }
void setup()
void loop()
WifiManager manager
enum connectionState getState()
Definition: WifiManager.cpp:23
void setupScan()
Definition: WifiManager.cpp:64