fix(zigbee): Use correct attributeID in setAnalogInputReporting · espressif/arduino-esp32@137e293 (original) (raw)

Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ void ZigbeeAnalog::setAnalogInputReporting(uint16_t min_interval, uint16_t max_i
107 107 reporting_info.ep = _endpoint;
108 108 reporting_info.cluster_id = ESP_ZB_ZCL_CLUSTER_ID_ANALOG_INPUT;
109 109 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;
111 111 reporting_info.u.send_info.min_interval = min_interval;
112 112 reporting_info.u.send_info.max_interval = max_interval;
113 113 reporting_info.u.send_info.def_min_interval = min_interval;