RBE1001Lib
APModeExample.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 void setup() {
8  manager.setupAP();// Always go straight into AP mode without doing a re-scan first
9 }
10 
11 void loop() {
12  // read the serial port for new passwords and maintain connections
13  manager.loop();
14  if (manager.getState() == Connected) {
15  // use the Wifi Stack now connected and a device is connected to the AP
16  }
17 }
WifiManager manager
void loop()
void setupAP()
Definition: WifiManager.cpp:53
void setup()
enum connectionState getState()
Definition: WifiManager.cpp:23