@@ -20,7 +20,7 @@ void ZigbeeTempSensor::setMinMaxValue(float min, float max) {
20
20
int16_t zb_min = zb_float_to_s16 (min);
21
21
int16_t zb_max = zb_float_to_s16 (max);
22
22
esp_zb_attribute_list_t *temp_measure_cluster =
23
- esp_zb_cluster_list_get_cluster (_cluster_list, ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE);
23
+ esp_zb_cluster_list_get_cluster (_cluster_list, ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE);
24
24
esp_zb_cluster_update_attr (temp_measure_cluster, ESP_ZB_ZCL_ATTR_TEMP_MEASUREMENT_MIN_VALUE_ID, (void *)&zb_min);
25
25
esp_zb_cluster_update_attr (temp_measure_cluster, ESP_ZB_ZCL_ATTR_TEMP_MEASUREMENT_MAX_VALUE_ID, (void *)&zb_max);
26
26
}
@@ -80,6 +80,7 @@ void ZigbeeTempSensor::reportTemperature() {
80
80
esp_zb_zcl_report_attr_cmd_t report_attr_cmd;
81
81
report_attr_cmd.address_mode = ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT;
82
82
report_attr_cmd.attributeID = ESP_ZB_ZCL_ATTR_TEMP_MEASUREMENT_VALUE_ID;
83
+ report_attr_cmd.direction = ESP_ZB_ZCL_CMD_DIRECTION_TO_CLI;
83
84
report_attr_cmd.clusterID = ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT;
84
85
report_attr_cmd.zcl_basic_cmd .src_endpoint = _endpoint;
85
86
@@ -120,6 +121,7 @@ void ZigbeeTempSensor::reportHumidity() {
120
121
esp_zb_zcl_report_attr_cmd_t report_attr_cmd;
121
122
report_attr_cmd.address_mode = ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT;
122
123
report_attr_cmd.attributeID = ESP_ZB_ZCL_ATTR_REL_HUMIDITY_MEASUREMENT_VALUE_ID;
124
+ report_attr_cmd.direction = ESP_ZB_ZCL_CMD_DIRECTION_TO_CLI;
123
125
report_attr_cmd.clusterID = ESP_ZB_ZCL_CLUSTER_ID_REL_HUMIDITY_MEASUREMENT;
124
126
report_attr_cmd.zcl_basic_cmd .src_endpoint = _endpoint;
125
127
0 commit comments