mirror of https://github.com/arendst/Tasmota.git
Zigbee fix sequence number for default response
This commit is contained in:
parent
49fa063c35
commit
643d16ae97
|
@ -1057,7 +1057,7 @@ void ZCLFrame::parseReportAttributes(JsonObject& json, uint8_t offset) {
|
|||
SBuffer buf(2);
|
||||
buf.add8(_cmd_id);
|
||||
buf.add8(0x00); // Status = OK
|
||||
ZigbeeZCLSend_Raw(_srcaddr, 0x0000, 0x0000 /*cluster*/, _srcendpoint, ZCL_DEFAULT_RESPONSE, false /* not cluster specific */, _manuf_code, buf.getBuffer(), buf.len(), false /* noresponse */, zigbee_devices.getNextSeqNumber(_srcaddr));
|
||||
ZigbeeZCLSend_Raw(_srcaddr, 0x0000, 0x0000 /*cluster*/, _srcendpoint, ZCL_DEFAULT_RESPONSE, false /* not cluster specific */, _manuf_code, buf.getBuffer(), buf.len(), false /* noresponse */, _transact_seq);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -792,7 +792,7 @@ void ZigbeeZCLSend_Raw(uint16_t shortaddr, uint16_t groupaddr, uint16_t clusterI
|
|||
if (manuf) {
|
||||
buf.add16(manuf); // add Manuf Id if not null
|
||||
}
|
||||
buf.add8(transacId); // Transaction Sequance Number
|
||||
buf.add8(transacId); // Transaction Sequence Number
|
||||
buf.add8(cmdId);
|
||||
if (len > 0) {
|
||||
buf.addBuffer(msg, len); // add the payload
|
||||
|
|
Loading…
Reference in New Issue