mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
auto formatting
This commit is contained in:
@@ -615,7 +615,7 @@ bool Thermostat::export_values_hc(uint8_t mqtt_format, JsonObject & rootThermost
|
|||||||
// the topic will have the hc number appended
|
// the topic will have the hc number appended
|
||||||
if (mqtt_format == Mqtt::Format::SINGLE) {
|
if (mqtt_format == Mqtt::Format::SINGLE) {
|
||||||
char topic[30];
|
char topic[30];
|
||||||
snprintf_P(topic, 30, PSTR("thermostat_data_hc%d"),hc->hc_num());
|
snprintf_P(topic, 30, PSTR("thermostat_data_hc%d"), hc->hc_num());
|
||||||
Mqtt::publish(topic, rootThermostat);
|
Mqtt::publish(topic, rootThermostat);
|
||||||
rootThermostat.clear(); // clear object
|
rootThermostat.clear(); // clear object
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user