mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Merge pull request #17126 from s-hadinger/zigbee_fix_autoresponder
Fix Zigbee auto-responder frame direction
This commit is contained in:
commit
24126efc4d
@ -2307,6 +2307,9 @@ void ZCLFrame::autoResponder(const uint16_t *attr_list_ids, size_t attr_len) {
|
|||||||
zcl.clusterSpecific = false; /* not cluster specific */
|
zcl.clusterSpecific = false; /* not cluster specific */
|
||||||
zcl.needResponse = false; /* noresponse */
|
zcl.needResponse = false; /* noresponse */
|
||||||
zcl.direct = true; /* direct response */
|
zcl.direct = true; /* direct response */
|
||||||
|
if (localShortAddr == 0x0000) {
|
||||||
|
zcl.direction = 1; // if we are coordinator, then response is from client to server
|
||||||
|
}
|
||||||
zcl.setTransac(transactseq);
|
zcl.setTransac(transactseq);
|
||||||
zcl.payload.addBuffer(buf);
|
zcl.payload.addBuffer(buf);
|
||||||
zigbeeZCLSendCmd(zcl);
|
zigbeeZCLSendCmd(zcl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user