mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Zigbee send ack to command (#10624)
* Zigbee send ack to command * Fix cluster Co-authored-by: Stephan Hadinger <stephan.hadinger@gmail.com>
This commit is contained in:
parent
d725664244
commit
cdc9d8dfc9
@ -1673,6 +1673,27 @@ void ZCLFrame::parseClusterSpecificCommand(Z_attribute_list& attr_list) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Send Default Response to acknowledge the attribute reporting
|
||||
if (0 == _frame_control.b.disable_def_resp) {
|
||||
// the device expects a default response
|
||||
SBuffer buf(2);
|
||||
buf.add8(_cmd_id);
|
||||
buf.add8(0x00); // Status = OK
|
||||
|
||||
ZigbeeZCLSend_Raw(ZigbeeZCLSendMessage({
|
||||
_srcaddr,
|
||||
0x0000,
|
||||
_cluster_id,
|
||||
_srcendpoint,
|
||||
ZCL_DEFAULT_RESPONSE,
|
||||
_manuf_code,
|
||||
false /* not cluster specific */,
|
||||
false /* noresponse */,
|
||||
true /* direct no retry */,
|
||||
_transact_seq, /* zcl transaction id */
|
||||
buf.getBuffer(), buf.len()
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user