From 1161c62a9097b83f33ef3fb46c0d8d7d4778373e Mon Sep 17 00:00:00 2001 From: c3ma Date: Sat, 19 Feb 2022 02:51:36 +0100 Subject: [PATCH] print into mqtt the sensor mode --- esp32/src/PlantCtrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esp32/src/PlantCtrl.cpp b/esp32/src/PlantCtrl.cpp index 7cac4fe..4e50775 100644 --- a/esp32/src/PlantCtrl.cpp +++ b/esp32/src/PlantCtrl.cpp @@ -190,8 +190,6 @@ void Plant::postMQTTconnection(void) float pct = getCurrentMoisturePCT(); float raw = getCurrentMoistureRaw(); - Serial.println(pct); - Serial.println(".................."); if (equalish(raw, MISSING_SENSOR)) { pct = 0; @@ -206,6 +204,7 @@ void Plant::postMQTTconnection(void) } this->mPlant->setProperty("moist").send(String(pct)); + this->mPlant->setProperty("sensormode").send(getSensorModeString()); this->mPlant->setProperty("moistraw").send(String(raw)); this->mPlant->setProperty("moisttrigger").send(String(getTargetMoisturePCT())); }