diff --git a/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c b/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c index 01394e6b4..f19bdc6aa 100644 --- a/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c +++ b/ESP32-IDF_Temperture-Node-v2/main/mqttronix.c @@ -142,4 +142,8 @@ void mqttronix_update_temp (float temp) { void mqttronix_update_humidity (float humidity) { humidity_value = humidity; snprintf(humidity_str, sizeof(humidity_str), "%.02f", humidity_value); +} +void mqttronix_update_pressure (float pressure) { + pressure_value = pressure; + snprintf(pressure_str, sizeof(pressure_str), "%.02f", pressure_str); } \ No newline at end of file