mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
show mqtt disconnect error in log, on first connect only
This commit is contained in:
@@ -297,6 +297,8 @@ class Mqtt {
|
||||
uint32_t last_publish_heartbeat_ = 0;
|
||||
uint32_t last_publish_queue_ = 0;
|
||||
|
||||
bool first_connect_attempted_ = false;
|
||||
|
||||
static bool connecting_;
|
||||
static bool initialized_;
|
||||
static uint32_t mqtt_publish_fails_;
|
||||
|
||||
Reference in New Issue
Block a user