all new inside comment and everything works

This commit is contained in:
c3ma 2020-10-14 20:19:27 +02:00
parent 1a4cddc366
commit 67d1aa55de

View File

@ -18,9 +18,10 @@ Plant::Plant(int pinSensor, int pinPump,int plantId) {
char plantIdChar = plantId+'0'; char plantIdChar = plantId+'0';
/*
{ {
char* name = "moistZdry"; char* name = "moistZdry";
name[6]= plantIdChar; name[5]= plantIdChar;
mSensorDry = new HomieSetting<long>(name, "Moist sensor dry threshold"); mSensorDry = new HomieSetting<long>(name, "Moist sensor dry threshold");
mSensorDry->setDefaultValue(4095); mSensorDry->setDefaultValue(4095);
mSensorDry->setValidator([] (long candidate) { mSensorDry->setValidator([] (long candidate) {
@ -69,6 +70,7 @@ Plant::Plant(int pinSensor, int pinPump,int plantId) {
return ((candidate >= 0) && (candidate <= 1024) ); return ((candidate >= 0) && (candidate <= 1024) );
}); });
} }
*/
} }
void Plant::addSenseValue(int analog) { void Plant::addSenseValue(int analog) {