From a6d8ba93056c1a4e243d56da447e241b2504fae2 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 10 Jun 2023 23:20:37 +0300 Subject: move files again --- platformio/common/libs/config/homekit/config.h | 37 -------------------------- 1 file changed, 37 deletions(-) delete mode 100644 platformio/common/libs/config/homekit/config.h (limited to 'platformio/common/libs/config/homekit/config.h') diff --git a/platformio/common/libs/config/homekit/config.h b/platformio/common/libs/config/homekit/config.h deleted file mode 100644 index 28f01fb..0000000 --- a/platformio/common/libs/config/homekit/config.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef COMMON_HOMEKIT_CONFIG_H -#define COMMON_HOMEKIT_CONFIG_H - -#include - -namespace homekit::config { - -struct ConfigFlags { - uint8_t wifi_configured: 1; - uint8_t node_configured: 1; - uint8_t reserved: 6; -} __attribute__((packed)); - -struct ConfigData { - // helpers - uint32_t crc = 0; - uint32_t magic = 0; - char node_id[16] = {0}; - char wifi_ssid[32] = {0}; - char wifi_psk[63] = {0}; - ConfigFlags flags {0}; - - // helper methods - char* escapeHomeId(char* buf, size_t len); -} __attribute__((packed)); - - -ConfigData read(); -void write(ConfigData& data); -void erase(); -void erase(ConfigData& data); -bool isValid(ConfigData& data); -bool isDirty(ConfigData& data); - -} - -#endif //COMMON_HOMEKIT_CONFIG_H \ No newline at end of file -- cgit v1.2.3