Refactor main to prepare for wifimgr lite

This commit is contained in:
Magnus Persson
2022-01-09 14:49:20 +01:00
parent 17bc23bef8
commit 7f775d78eb
3 changed files with 231 additions and 182 deletions

View File

@ -40,10 +40,13 @@ class Wifi {
public:
// WIFI
bool connect(bool showPortal = false);
bool connect();
bool disconnect();
bool isConnected() { return connectedFlag; }
bool hasConfig();
String getIPAddress() { return WiFi.localIP().toString(); }
bool startPortal();
void portalLoop();
// OTA
bool updateFirmware();