mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-19 04:13:25 +00:00
mqtt
This commit is contained in:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user