fix types

This commit is contained in:
Yurii
2023-11-16 10:34:25 +03:00
parent 76eaec10ea
commit 4b9ebeaa40
3 changed files with 26 additions and 15 deletions

View File

@@ -9,6 +9,17 @@ public:
}
};
class UnsignedIntParameter : public WiFiManagerParameter {
public:
UnsignedIntParameter(const char* id, const char* label, unsigned int value, const uint8_t length = 10) : WiFiManagerParameter("") {
init(id, label, String(value).c_str(), length, "", WFM_LABEL_DEFAULT);
}
unsigned int getValue() {
return (unsigned int) atoi(WiFiManagerParameter::getValue());
}
};
class CheckboxParameter : public WiFiManagerParameter {
public:
const char* checked = "type=\"checkbox\" checked";