Skip to content

Commit 137e293

Browse files
committed
fix(zigbee): Use correct attributeID in setAnalogInputReporting
1 parent 4677ea6 commit 137e293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Zigbee/src/ep/ZigbeeAnalog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void ZigbeeAnalog::setAnalogInputReporting(uint16_t min_interval, uint16_t max_i
107107
reporting_info.ep = _endpoint;
108108
reporting_info.cluster_id = ESP_ZB_ZCL_CLUSTER_ID_ANALOG_INPUT;
109109
reporting_info.cluster_role = ESP_ZB_ZCL_CLUSTER_SERVER_ROLE;
110-
reporting_info.attr_id = ESP_ZB_ZCL_ATTR_TEMP_MEASUREMENT_VALUE_ID;
110+
reporting_info.attr_id = ESP_ZB_ZCL_ATTR_ANALOG_INPUT_PRESENT_VALUE_ID;
111111
reporting_info.u.send_info.min_interval = min_interval;
112112
reporting_info.u.send_info.max_interval = max_interval;
113113
reporting_info.u.send_info.def_min_interval = min_interval;

0 commit comments

Comments
 (0)