mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-04 17:18:44 +05:00
fix types
This commit is contained in:
1 parent
76eaec10ea
commit
4b9ebeaa40
3 files changed
+26
-15
No files matched your search
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user