mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-30 10:39:12 +03:00
nested mqtt mode - (ESP32) Bring back MQTT single topics for Thermostat (and possible others) #738
This commit is contained in:
16
src/mqtt.h
16
src/mqtt.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user