add wifi manager esp32 (#414)

* add wifi manager esp32
This commit is contained in:
Florian authored and GitHub committed 2019-06-22 13:43:54 +02:00
1 parent 1a0dacaf3f
commit feb489633b
35 files changed
+4953 -1066

No files matched your search

@@ -0,0 +1,26 @@
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
WiFiManager wm;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
//reset settings - wipe credentials for testing
//wm.resetSettings();
wm.setConfigPortalBlocking(false);
//automatically connect using saved credentials if they exist
//If connection fails it starts an access point with the specified name
if(wm.autoConnect("AutoConnectAP")){
Serial.println("connected...yeey :)");
}
else {
Serial.println("Configportal running");
}
}
void loop() {
wm.process();
// put your main code here, to run repeatedly:
}