mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 01:29:07 +03:00
send_info_mqtt called from main, not from ntp task
This commit is contained in:
@@ -79,7 +79,7 @@ class System {
|
||||
bool check_restore();
|
||||
bool heartbeat_json(JsonObject & output);
|
||||
void send_heartbeat();
|
||||
void send_info_mqtt(const char * event_str, bool send_ntp = false);
|
||||
void send_info_mqtt();
|
||||
|
||||
bool syslog_enabled() {
|
||||
return syslog_enabled_;
|
||||
@@ -181,6 +181,10 @@ class System {
|
||||
ethernet_connected_ = b;
|
||||
}
|
||||
|
||||
void has_ipv6(bool b) {
|
||||
has_ipv6_ = b;
|
||||
}
|
||||
|
||||
void ntp_connected(bool b);
|
||||
bool ntp_connected();
|
||||
|
||||
@@ -297,6 +301,7 @@ class System {
|
||||
|
||||
bool upload_status_ = false; // true if we're in the middle of a OTA firmware upload
|
||||
bool ethernet_connected_ = false;
|
||||
bool has_ipv6_ = false;
|
||||
|
||||
bool ntp_connected_ = false;
|
||||
uint32_t ntp_last_check_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user