added external pump control

This commit is contained in:
Yurii
2023-12-07 01:01:19 +03:00
parent 412740c5d2
commit dd293e9802
14 changed files with 299 additions and 112 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include <WiFiManager.h>
class IntParameter : public WiFiManagerParameter {
public:
IntParameter(const char* id, const char* label, int value, const uint8_t length = 10) : WiFiManagerParameter("") {
init(id, label, String(value).c_str(), length, "", WFM_LABEL_DEFAULT);
}
int getValue() {
return atoi(WiFiManagerParameter::getValue());
}
void setValue(int value, int length) {
WiFiManagerParameter::setValue(String(value).c_str(), length);
}
void setValue(int value) {
setValue(value, getValueLength());
}
};