scheduler async, command use string, lowercase

This commit is contained in:
MichaelDvP
2024-07-20 18:21:26 +02:00
parent d35dd1a9c4
commit c21c0b5dd1
9 changed files with 95 additions and 98 deletions

View File

@@ -51,8 +51,6 @@ enum CommandRet : uint8_t {
INVALID // 5 - invalid (tag)
};
MAKE_ENUM_FIXED(cmdRet, "fail", "ok", "not found", "error", "not allowed", "invalid")
using cmd_function_p = std::function<bool(const char * data, const int8_t id)>;
using cmd_json_function_p = std::function<bool(const char * data, const int8_t id, JsonObject output)>;
@@ -138,7 +136,7 @@ class Command {
static const char * parse_command_string(const char * command, int8_t & id);
static std::string return_code_string(const uint8_t return_code);
static const char * return_code_string(const uint8_t return_code);
private:
static uuid::log::Logger logger_;