prevent double subscriptions when mqtt connecting

This commit is contained in:
proddy
2020-11-15 17:51:18 +01:00
parent 6ae61d742f
commit 4bfdb017b9
2 changed files with 27 additions and 18 deletions

View File

@@ -218,6 +218,7 @@ class Mqtt {
static bool connecting_;
static uint16_t mqtt_publish_fails_;
static uint8_t connectcount_;
// settings, copied over
static std::string hostname_;