This commit is contained in:
2025-10-07 00:42:03 -04:00
parent da2d30c508
commit f6a9acc228

View File

@@ -82,4 +82,7 @@ void mqttronix_start(void) {
esp_mqtt_client_start(client);
}
void mqttronix_update_temp (float temp) { temp_value = temp; }
void mqttronix_update_temp (float temp) {
temp_value = temp;
snprintf(temp_str, sizeof(temp_str), "%.02f", temp_value);
}