Skip to content

Commit 442679d

Browse files
fix(Zigbee): Add missing direction to report commands (espressif#10623)
* fix(Zigbee): Add missing direction to report commands * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent d7b5bb1 commit 442679d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libraries/Zigbee/src/ZigbeeEP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ void ZigbeeEP::reportBatteryPercentage() {
104104
esp_zb_zcl_report_attr_cmd_t report_attr_cmd;
105105
report_attr_cmd.address_mode = ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT;
106106
report_attr_cmd.attributeID = ESP_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_PERCENTAGE_REMAINING_ID;
107+
report_attr_cmd.direction = ESP_ZB_ZCL_CMD_DIRECTION_TO_CLI;
107108
report_attr_cmd.clusterID = ESP_ZB_ZCL_CLUSTER_ID_POWER_CONFIG;
108109
report_attr_cmd.zcl_basic_cmd.src_endpoint = _endpoint;
109110

libraries/Zigbee/src/ep/ZigbeeTempSensor.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ void ZigbeeTempSensor::reportTemperature() {
8080
esp_zb_zcl_report_attr_cmd_t report_attr_cmd;
8181
report_attr_cmd.address_mode = ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT;
8282
report_attr_cmd.attributeID = ESP_ZB_ZCL_ATTR_TEMP_MEASUREMENT_VALUE_ID;
83+
report_attr_cmd.direction = ESP_ZB_ZCL_CMD_DIRECTION_TO_CLI;
8384
report_attr_cmd.clusterID = ESP_ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT;
8485
report_attr_cmd.zcl_basic_cmd.src_endpoint = _endpoint;
8586

@@ -120,6 +121,7 @@ void ZigbeeTempSensor::reportHumidity() {
120121
esp_zb_zcl_report_attr_cmd_t report_attr_cmd;
121122
report_attr_cmd.address_mode = ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT;
122123
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;
123125
report_attr_cmd.clusterID = ESP_ZB_ZCL_CLUSTER_ID_REL_HUMIDITY_MEASUREMENT;
124126
report_attr_cmd.zcl_basic_cmd.src_endpoint = _endpoint;
125127

0 commit comments

Comments
 (0)