@@ -71,10 +71,10 @@ struct __attribute__((packed)) DataVersionFilter
71
71
using OnReadAttributeDataCallback = void (*)(PyObject * appContext, chip::DataVersion version, chip::EndpointId endpointId,
72
72
chip::ClusterId clusterId, chip::AttributeId attributeId,
73
73
std::underlying_type_t <Protocols::InteractionModel::Status> imstatus, uint8_t * data,
74
- uint32_t dataLen);
74
+ size_t dataLen);
75
75
using OnReadEventDataCallback = void (*)(PyObject * appContext, chip::EndpointId endpointId, chip::ClusterId clusterId,
76
76
chip::EventId eventId, chip::EventNumber eventNumber, uint8_t priority, uint64_t timestamp,
77
- uint8_t timestampType, uint8_t * data, uint32_t dataLen,
77
+ uint8_t timestampType, uint8_t * data, size_t dataLen,
78
78
std::underlying_type_t <Protocols::InteractionModel::Status> imstatus);
79
79
using OnSubscriptionEstablishedCallback = void (*)(PyObject * appContext, SubscriptionId subscriptionId);
80
80
using OnResubscriptionAttemptedCallback = void (*)(PyObject * appContext, PyChipError aTerminationCause,
@@ -114,7 +114,7 @@ class ReadClientCallback : public ReadClient::Callback
114
114
VerifyOrDie (!aPath.IsListItemOperation ());
115
115
size_t bufferLen = (apData == nullptr ? 0 : apData->GetRemainingLength () + apData->GetLengthRead ());
116
116
std::unique_ptr<uint8_t []> buffer = std::unique_ptr<uint8_t []>(apData == nullptr ? nullptr : new uint8_t [bufferLen]);
117
- uint32_t size = 0 ;
117
+ size_t size = 0 ;
118
118
// When the apData is nullptr, means we did not receive a valid attribute data from server, status will be some error
119
119
// status.
120
120
if (apData != nullptr )
@@ -166,7 +166,7 @@ class ReadClientCallback : public ReadClient::Callback
166
166
void OnEventData (const EventHeader & aEventHeader, TLV::TLVReader * apData, const StatusIB * apStatus) override
167
167
{
168
168
uint8_t buffer[CHIP_CONFIG_DEFAULT_UDP_MTU_SIZE];
169
- uint32_t size = 0 ;
169
+ size_t size = 0 ;
170
170
CHIP_ERROR err = CHIP_NO_ERROR;
171
171
// When the apData is nullptr, means we did not receive a valid event data from server, status will be some error
172
172
// status.
0 commit comments