Updated some comments
This commit is contained in:
@ -47,31 +47,18 @@
|
||||
#define get_app_description() esp_app_get_description()
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Frequency of transmission of keep alive messages to the gateway (in seconds).
|
||||
*/
|
||||
#define ZH_SENSOR_ATTRIBUTES_MESSAGE_FREQUENCY 60
|
||||
#define ZH_SENSOR_ATTRIBUTES_MESSAGE_FREQUENCY 60 // Frequency of transmission of keep alive messages to the gateway (in seconds).
|
||||
|
||||
/**
|
||||
* @brief Prioritize the task of sending messages to the gateway.
|
||||
*/
|
||||
#define ZH_MESSAGE_TASK_PRIORITY 2
|
||||
#define ZH_MESSAGE_TASK_PRIORITY 2 // Prioritize the task of sending messages to the gateway.
|
||||
#define ZH_MESSAGE_STACK_SIZE 2048 // The stack size of the task of sending messages to the gateway.
|
||||
|
||||
/**
|
||||
* @brief The stack size of the task of sending messages to the gateway.
|
||||
*/
|
||||
#define ZH_MESSAGE_STACK_SIZE 2048
|
||||
|
||||
/**
|
||||
* @brief Structure of data exchange between tasks, functions and event handlers.
|
||||
*/
|
||||
typedef struct
|
||||
typedef struct // Structure of data exchange between tasks, functions and event handlers.
|
||||
{
|
||||
zh_sensor_hardware_config_message_t hardware_config; // Storage structure of sensor hardware configuration data. @note
|
||||
zh_sensor_hardware_config_message_t hardware_config; // Storage structure of sensor hardware configuration data.
|
||||
volatile bool gateway_is_available; // Gateway availability status flag. @note Used to control the tasks when the gateway connection is established / lost. Used only when external powered.
|
||||
uint8_t gateway_mac[6]; // Gateway MAC address. @note Used only when external powered.
|
||||
uint8_t sent_message_quantity; // System counter for the number of sended messages. @note Used only when powered by battery.
|
||||
zh_dht_handle_t dht_handle; // Unique DTH11/22 sensor handle. @note
|
||||
zh_dht_handle_t dht_handle; // Unique DTH11/22 sensor handle.
|
||||
TaskHandle_t attributes_message_task; // Unique task handle for zh_send_sensor_attributes_message_task(). @note Used only when external powered.
|
||||
TaskHandle_t status_message_task; // Unique task handle for zh_send_sensor_status_message_task(). @note Used only when external powered.
|
||||
const esp_partition_t *update_partition; // Unique handle for next OTA update partition. @note Used only when external powered.
|
||||
|
Reference in New Issue
Block a user