HA MQTT changes

This commit is contained in:
proddy
2020-10-19 23:20:53 +02:00
parent 79f54935ac
commit d1f4e21a74
4 changed files with 75 additions and 51 deletions

View File

@@ -100,6 +100,7 @@ class Mqtt {
static void register_mqtt_ha_binary_sensor(const __FlashStringHelper * name, const uint8_t device_type, const char * entity);
static void register_mqtt_ha_sensor(const char * prefix,
const __FlashStringHelper * suffix,
const __FlashStringHelper * name,
const uint8_t device_type,
const char * entity,
@@ -145,6 +146,10 @@ class Mqtt {
return mqtt_format_;
}
static AsyncMqttClient * client() {
return mqttClient_;
}
private:
static uuid::log::Logger logger_;