diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-03 14:56:09 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-03 14:56:09 +0100 |
commit | b2c10c7e3871e10d1862ae409fbc2826d2fdaa74 (patch) | |
tree | a121be8bc9316a1850d71dc66d62dae920269219 /confui/mesh_connector.h | |
parent | 652450629442677317fc45c3f5cfb8ab1cfac6f2 (diff) |
ui node widget prototype
Diffstat (limited to 'confui/mesh_connector.h')
-rw-r--r-- | confui/mesh_connector.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/confui/mesh_connector.h b/confui/mesh_connector.h index 070a83c..b248e27 100644 --- a/confui/mesh_connector.h +++ b/confui/mesh_connector.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <vector> #include <map> +#include <string> typedef uint32_t cd_link_t; typedef uint8_t cd_mac_addr_t[6]; @@ -10,6 +11,7 @@ typedef uint8_t cd_mac_addr_t[6]; using std::size_t; using std::vector; using std::map; +using std::string; enum cd_e_automation_type { CD_AUTOMATION_TYPE_TOGGLE, @@ -20,7 +22,7 @@ enum cd_e_automation_type { typedef struct { cd_mac_addr_t address; size_t name_len; - char* name; + const char* name; bool light_on; bool provisioned; } cd_s_node; @@ -49,3 +51,5 @@ public: virtual void node_join_network(cd_s_node* node_ptr); virtual void node_remove_network(cd_s_node* node_ptr); }; + +string cd_node_mac_string(cd_mac_addr_t mac); |