added regex to inverter name and MQTT topic (setup.html)

beautified serial.html
added ticker for wifi loop #515
reverted sunrise / sunset ticker to most recent version
This commit is contained in:
lumapu 2022-12-24 00:49:53 +01:00
parent c71975a164
commit 6bb8a4e448
11 changed files with 76 additions and 42 deletions

View file

@ -59,7 +59,7 @@ void ahoywifi::setupWifi(void) {
//-----------------------------------------------------------------------------
void ahoywifi::loop() {
void ahoywifi::tickWifiLoop() {
#if !defined(AP_ONLY)
if(mReconnect) {
delay(100);
@ -132,6 +132,7 @@ void ahoywifi::setupStation(void) {
mReconnect = (WiFi.begin(mConfig->sys.stationSsid, mConfig->sys.stationPwd) != WL_CONNECTED);
if(String(mConfig->sys.deviceName) != "")
WiFi.hostname(mConfig->sys.deviceName);
WiFi.mode(WIFI_AP_STA);
DBGPRINT(F("connect to network '"));
DBGPRINT(mConfig->sys.stationSsid);