mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix #99, mqtt reconnect after wifi drop
This commit is contained in:
@@ -106,13 +106,9 @@ class System {
|
||||
ethernet_connected_ = b;
|
||||
}
|
||||
|
||||
void network_connected(bool b) {
|
||||
network_connected_ = b;
|
||||
}
|
||||
|
||||
bool network_connected() {
|
||||
#ifndef EMSESP_STANDALONE
|
||||
return network_connected_;
|
||||
return (ethernet_connected() || WiFi.isConnected());
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
@@ -160,7 +156,6 @@ class System {
|
||||
uint32_t last_system_check_ = 0;
|
||||
bool upload_status_ = false; // true if we're in the middle of a OTA firmware upload
|
||||
bool ethernet_connected_ = false;
|
||||
bool network_connected_ = false;
|
||||
uint16_t analog_;
|
||||
|
||||
// settings
|
||||
|
||||
Reference in New Issue
Block a user