mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-23 22:06:11 +02:00
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:
parent
c71975a164
commit
6bb8a4e448
11 changed files with 76 additions and 42 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue