Fix Zigbee auto-responder frame direction

This commit is contained in:
Stephan Hadinger 2022-11-18 00:04:54 +01:00
parent 50565f4e65
commit d1c71ca91b
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);