mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 07:17:16 +00:00
Merge pull request #15632 from s-hadinger/zigbee_auto_responder_broadcast
Zigbee disable autoresponder for broadcast messages from self
This commit is contained in:
commit
498fb650ef
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user