mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
render and parse multible text parameters, add thermostat wwmode, some watning messages
This commit is contained in:
@@ -43,6 +43,7 @@ class Helpers {
|
||||
static char * render_value(char * result, const char * value, uint8_t format);
|
||||
|
||||
static char * render_boolean(char * result, bool value);
|
||||
static char * render_enum(char * result, const std::vector<std::string> value, const int8_t no);
|
||||
|
||||
static char * smallitoa(char * result, const uint8_t value);
|
||||
static char * smallitoa(char * result, const uint16_t value);
|
||||
@@ -77,6 +78,9 @@ class Helpers {
|
||||
static bool value2bool(const char * v, bool & value);
|
||||
static bool value2string(const char * v, std::string & value);
|
||||
|
||||
static bool value2enum(const char * v, uint8_t & value, const std::vector<std::string> strs);
|
||||
|
||||
|
||||
private:
|
||||
static uint8_t bool_format_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user