added testmode, fixed formating

This commit is contained in:
Your Name
2021-05-26 21:46:33 +02:00
parent 2c70ff1ed3
commit 98799bd2d5
2 changed files with 108 additions and 70 deletions

View File

@@ -75,6 +75,8 @@ void Plant::postMQTTconnection(void)
void Plant::deactivatePump(void)
{
int plantId = this->mPlantId;
Serial << "deactivating pump " << plantId << endl;
digitalWrite(this->mPinPump, LOW);
if (this->mConnected)
{
@@ -85,6 +87,8 @@ void Plant::deactivatePump(void)
void Plant::activatePump(void)
{
int plantId = this->mPlantId;
Serial << "activating pump " << plantId << endl;
digitalWrite(this->mPinPump, HIGH);
if (this->mConnected)
{