From db717bf6eec149759082c00ecf2fca81faf94adf Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Tue, 16 Jul 2024 09:05:55 +0300 Subject: [PATCH] Version 2.0.4 Added support for error messages. --- include/zh_config.h | 6 ++++++ version.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/zh_config.h b/include/zh_config.h index 20ca30b..5805977 100644 --- a/include/zh_config.h +++ b/include/zh_config.h @@ -69,6 +69,7 @@ char *zh_get_device_type_value_name(zh_device_type_t value); DF(ZHPT_RGB, "rgb") \ DF(ZHPT_EFFECT, "effect") \ DF(ZHPT_HARDWARE, "hardware") \ + DF(ZHPT_ERROR, "") \ DF(ZHPT_MAX, "") typedef enum // Enumeration of payload types supported by the ESP-NOW gateway. @@ -604,6 +605,11 @@ typedef struct // Structure for data exchange between ESP-NOW devices. { ha_on_off_type_t status; // Status of the zh_espnow_switch. @note Example - ON / OFF. @attention Must be same with set on switch_config_message structure. } switch_status_message; + struct // Tertiary structure of ESP-NOW node error message. + { + char message[150]; // Error message. + } error_message; + } status_message; union // Secondary union of structures of any OTA update messages. @attention Not used in this view. Should be converted to the required tertiary structure. { diff --git a/version.txt b/version.txt index 6acdb44..26e3379 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.3 \ No newline at end of file +2.0.4 \ No newline at end of file