print into mqtt the sensor mode
This commit is contained in:
parent
a0f8df7016
commit
1161c62a90
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user