mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Merge pull request #6705 from s-hadinger/zigbee_revert_key
Fix Revert key as shortaddr for ZigbeeReveived
This commit is contained in:
commit
3212d563f2
@ -385,8 +385,9 @@ int32_t Z_ReceiveAfIncomingMessage(int32_t res, const class SBuffer &buf) {
|
||||
|
||||
DynamicJsonBuffer jsonBuffer;
|
||||
JsonObject& json_root = jsonBuffer.createObject();
|
||||
JsonObject& json = json_root.createNestedObject(F(D_CMND_ZIGBEE_RECEIVED));
|
||||
json[F(D_JSON_ZIGBEE_DEVICE)] = shortaddr;
|
||||
JsonObject& json1 = json_root.createNestedObject(F(D_CMND_ZIGBEE_RECEIVED));
|
||||
JsonObject& json = json1.createNestedObject(shortaddr);
|
||||
|
||||
// TODO add name field if it is known
|
||||
if ( (!zcl_received.isClusterSpecificCommand()) && (ZCL_REPORT_ATTRIBUTES == zcl_received.getCmdId())) {
|
||||
zcl_received.parseRawAttributes(json);
|
||||
|
Loading…
x
Reference in New Issue
Block a user