Improved initial setup (#1148)

* Improved initial setup

* Improvements after testing

* Adjustments after testing

* Fixed ESP8266 build

* Fixed voltage check
This commit is contained in:
Gunnar Skjold
2026-04-09 14:37:34 +02:00
committed by GitHub
parent 4673feaaf3
commit 0bb434f1f7
11 changed files with 212 additions and 42 deletions

View File

@@ -45,6 +45,8 @@
#include "LittleFS.h"
#define WIFI_TEST_TIMEOUT 30000
class AmsWebServer {
public:
#if defined(AMS_REMOTE_DEBUG)
@@ -113,6 +115,10 @@ private:
WebServer server;
#endif
bool wifiTestInProgress = false;
unsigned long wifiTestStarted = 0;
uint8_t wifiTestStatusCode = 0;
bool checkSecurity(byte level, bool send401 = true);
void indexHtml();
@@ -137,6 +143,8 @@ private:
void cloudkeyJson();
void wifiScan();
void wifiTestStart();
void wifiTestStatus();
void configurationJson();
void handleSave();