mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add mqtt base, fix mixer, fix masterthermostat, dallas fails, fix mult. roomctrl.
This commit is contained in:
@@ -88,7 +88,7 @@ class Mqtt {
|
||||
enum Dallas_Format : uint8_t { SENSORID = 1, NUMBER };
|
||||
enum HA_Climate_Format : uint8_t { CURRENT = 1, SETPOINT, ZERO };
|
||||
|
||||
static constexpr uint8_t MQTT_TOPIC_MAX_SIZE = 128; // note this should really match the user setting in mqttSettings.maxTopicLength
|
||||
static constexpr uint8_t MQTT_TOPIC_MAX_SIZE = FACTORY_MQTT_MAX_TOPIC_LENGTH; // note this should really match the user setting in mqttSettings.maxTopicLength
|
||||
|
||||
static void on_connect();
|
||||
|
||||
@@ -138,6 +138,10 @@ class Mqtt {
|
||||
return mqtt_enabled_;
|
||||
}
|
||||
|
||||
static std::string base() {
|
||||
return mqtt_base_;
|
||||
}
|
||||
|
||||
static uint32_t publish_fails() {
|
||||
return mqtt_publish_fails_;
|
||||
}
|
||||
@@ -249,7 +253,7 @@ class Mqtt {
|
||||
static uint8_t connectcount_;
|
||||
|
||||
// settings, copied over
|
||||
static std::string hostname_;
|
||||
static std::string mqtt_base_;
|
||||
static uint8_t mqtt_qos_;
|
||||
static bool mqtt_retain_;
|
||||
static uint32_t publish_time_;
|
||||
|
||||
Reference in New Issue
Block a user