Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions device.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021 dresden elektronik ingenieurtechnik gmbh.
* Copyright (c) 2021-2026 dresden elektronik ingenieurtechnik gmbh.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
Expand Down Expand Up @@ -690,7 +690,8 @@ bool DEV_ZclRead(Device *device, ResourceItem *item, deCONZ::ZclClusterId_t clus
ZCL_Param param{};
param.valid = 1;
param.endpoint = sd->endpoint();
param.clusterId = static_cast<quint16>(clusterId);
param.clusterIds[0] = static_cast<quint16>(clusterId);
param.clusterCount = 1;
param.attributes[0] = static_cast<quint16>(attrId);
param.attributeCount = 1;

Expand Down Expand Up @@ -1824,7 +1825,7 @@ static void DEV_UpdateReportTracker(Device *device, const ResourceItem *item)

for (size_t i = 0; i < zclParam.attributeCount && i < zclParam.attributes.size(); i++)
{
ReportTracker &tracker = DEV_GetOrCreateReportTracker(device, zclParam.clusterId, zclParam.attributes[i], zclParam.endpoint);
ReportTracker &tracker = DEV_GetOrCreateReportTracker(device, zclParam.clusterIds[0], zclParam.attributes[i], zclParam.endpoint);
tracker.lastReport = item->lastZclReport();
}
}
Expand Down
Loading