Zigbee disable autoresponder for broadcast messages from self

This commit is contained in:
Stephan Hadinger 2022-05-15 18:42:08 +02:00
parent 55618c0c7b
commit 0a33024719

View File

@ -1489,8 +1489,10 @@ void ZCLFrame::parseReadAttributes(Z_attribute_list& attr_list) {
attr_list.addAttributePMEM(PSTR("Read")).setStrRaw(attr_numbers.toString().c_str()); attr_list.addAttributePMEM(PSTR("Read")).setStrRaw(attr_numbers.toString().c_str());
attr_list.addAttributePMEM(PSTR("ReadNames")).setStrRaw(attr_names.toString(true).c_str()); attr_list.addAttributePMEM(PSTR("ReadNames")).setStrRaw(attr_names.toString(true).c_str());
// call auto-responder // call auto-responder only if src address if different from ourselves and it was a broadcast
autoResponder(read_attr_ids, len/2); if (_srcaddr != localShortAddr || !_wasbroadcast) {
autoResponder(read_attr_ids, len/2);
}
} }
// ZCL_CONFIGURE_REPORTING_RESPONSE // ZCL_CONFIGURE_REPORTING_RESPONSE