Skip to content

Commit

Permalink
Switch to using Khoi Hoang's ESPAsync_WiFiManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Elwell committed May 3, 2021
1 parent 1c40324 commit fe32d49
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions RS485-WiFi-EPEver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <ESP8266HTTPClient.h>

#include <ESPAsyncWebServer.h> //Local WebServer used to serve the configuration portal
#include <ESPAsyncWiFiManager.h> //https://github.com/tzapu/WiFiManager WiFi Configuration Magic
#include <ESPAsync_WiFiManager.h> // switched from tapzu to https://github.com/khoih-prog/ESPAsync_WiFiManager

#include <Updater.h>

Expand Down Expand Up @@ -550,9 +550,8 @@ void setup(void) {
LoadSwitchstate = ESPUI.addControl(ControlType::Switcher, "Load", "", ControlColor::Alizarin,tab3, &LoadSwitch);

button1 = ESPUI.addControl( ControlType::Button, "Save Settings", "Save", ControlColor::Peterriver, tab3, &buttonCallback );

//first parameter is name of access point, second is the password
AsyncWiFiManager wifiManager(&server,&dns);

ESPAsync_WiFiManager wifiManager(&server,&dns);
wifiManager.autoConnect("RS485-WiFi");
wifiManager.setConfigPortalTimeout(180);
ESPUI.jsonInitialDocumentSize = 16000; // This is the default, adjust when you have too many widgets or options
Expand Down

0 comments on commit fe32d49

Please sign in to comment.