Merge pull request #17126 from s-hadinger/zigbee_fix_autoresponder

Fix Zigbee auto-responder frame direction
This commit is contained in:
s-hadinger 2022-11-18 00:12:08 +01:00 committed by GitHub
commit 24126efc4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2307,6 +2307,9 @@ void ZCLFrame::autoResponder(const uint16_t *attr_list_ids, size_t attr_len) {
zcl.clusterSpecific = false; /* not cluster specific */
zcl.needResponse = false; /* noresponse */
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.payload.addBuffer(buf);
zigbeeZCLSendCmd(zcl);