setting of mqtt-format without reboot

This commit is contained in:
MichaelDvP
2020-10-16 11:49:15 +02:00
parent ad77828c0f
commit 87d49be7b3
3 changed files with 9 additions and 0 deletions

View File

@@ -454,6 +454,10 @@ void Mqtt::set_retain(bool mqtt_retain) {
mqtt_retain_ = mqtt_retain;
}
void Mqtt::set_format(uint8_t mqtt_format) {
mqtt_format_ = mqtt_format;
}
// MQTT onConnect - when a connect is established
void Mqtt::on_connect() {
// send info topic appended with the version information as JSON