nested mqtt mode - (ESP32) Bring back MQTT single topics for Thermostat (and possible others) #738

This commit is contained in:
proddy
2021-03-09 23:44:48 +01:00
parent 39336eecd6
commit 438c2ba223
8 changed files with 34 additions and 25 deletions

View File

@@ -156,6 +156,10 @@ class Mqtt {
return bool_format_;
}
static bool nested_format() {
return nested_format_;
}
static bool ha_enabled() {
return ha_enabled_;
}
@@ -181,18 +185,9 @@ class Mqtt {
}
static bool is_empty() {
return mqtt_messages_.empty();
return mqtt_messages_.empty();
}
/*
struct QueuedMqttMessage {
uint16_t id_;
std::shared_ptr<const MqttMessage> content_;
uint8_t retry_count_;
uint16_t packet_id_;
};
*/
struct QueuedMqttMessage {
const uint16_t id_;
const std::shared_ptr<const MqttMessage> content_;
@@ -270,6 +265,7 @@ class Mqtt {
static uint8_t bool_format_;
static uint8_t ha_climate_format_;
static bool ha_enabled_;
static bool nested_format_;
};
} // namespace emsesp