code refactoring: use the defined states of header file

This commit is contained in:
Ollo
2022-08-21 11:59:50 +02:00
parent 5d24a51bd9
commit c444117853
4 changed files with 18 additions and 18 deletions

View File

@@ -209,11 +209,11 @@ void Plant::deactivatePump(void)
}
}
void Plant::publishState(String state)
void Plant::publishState(int stateNumber, String stateString)
{
if (this->mConnected)
{
this->mPlant->setProperty("state").send(state);
this->mPlant->setProperty("state").send(stateString);
}
}