Browse Source

esp8266 works

pull/1549/head
lumapu 10 months ago
parent
commit
73c48fab9c
  1. 2
      src/CHANGES.md
  2. 2
      src/network/AhoyWifiEsp32.h
  3. 2
      src/network/AhoyWifiEsp8266.h

2
src/CHANGES.md

@ -1,5 +1,7 @@
# Development Changes
## 0.8.98 - 2024-03-23
## 0.8.97 - 2024-03-22
* add support for newest generation of inverters with A-F in their serial number
* fix NTP and sunrise / sunset

2
src/network/AhoyWifiEsp32.h

@ -23,12 +23,14 @@ class AhoyWifi : public AhoyNetwork {
});
WiFi.setHostname(mConfig->sys.deviceName);
#if !defined(AP_ONLY)
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);
WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL);
WiFi.begin(mConfig->sys.stationSsid, mConfig->sys.stationPwd, WIFI_ALL_CHANNEL_SCAN);
DBGPRINT(F("connect to network '")); Serial.flush();
DBGPRINT(mConfig->sys.stationSsid);
#endif
}
void tickNetworkLoop() override {

2
src/network/AhoyWifiEsp8266.h

@ -23,10 +23,12 @@ class AhoyWifi : public AhoyNetwork {
});
WiFi.setHostname(mConfig->sys.deviceName);
#if !defined(AP_ONLY)
WiFi.begin(mConfig->sys.stationSsid, mConfig->sys.stationPwd);
DBGPRINT(F("connect to network '")); Serial.flush();
DBGPRINT(mConfig->sys.stationSsid);
#endif
}
void tickNetworkLoop() override {

Loading…
Cancel
Save