From 81156724eeb7fa2211ab62e140a3707e1a791b3a Mon Sep 17 00:00:00 2001 From: Lazar Kovacic Date: Wed, 15 Dec 2021 23:47:47 +0100 Subject: [PATCH] Zap Regen zbog conflicts --- .../zap-generated/cluster-objects.h | 37 +- .../zap-generated/reporting/Commands.h | 3524 ----------------- .../zap-generated/CHIPClusters.cpp | 307 -- .../zap-generated/CHIPClusters.h | 24 - .../zap-generated/CHIPClusters.cpp | 125 + .../lighting-app/zap-generated/CHIPClusters.h | 7 + .../zap-generated/IMClusterCommandHandler.cpp | 27 - .../tv-app/zap-generated/attribute-size.cpp | 1022 ----- .../zap-generated/attribute-size.cpp | 1158 ------ 9 files changed, 141 insertions(+), 6090 deletions(-) delete mode 100644 zzz_generated/chip-tool/zap-generated/reporting/Commands.h delete mode 100644 zzz_generated/tv-app/zap-generated/attribute-size.cpp delete mode 100644 zzz_generated/tv-casting-app/zap-generated/attribute-size.cpp diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index f1915951f86c25..0fab6898fedfb5 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -30205,17 +30205,10 @@ namespace Attributes { namespace ChannelList { struct TypeInfo { -<<<<<<< HEAD - using Type = chip::app::DataModel::List; - using DecodableType = - chip::app::DataModel::DecodableList; + using Type = chip::app::DataModel::List; + using DecodableType = chip::app::DataModel::DecodableList; using DecodableArgType = - const chip::app::DataModel::DecodableList &; -======= - using Type = DataModel::List; - using DecodableType = DataModel::DecodableList; - using DecodableArgType = const DataModel::DecodableList &; ->>>>>>> 5e91ccb80 (Zap regen) + const chip::app::DataModel::DecodableList &; static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ChannelList::Id; } @@ -30225,15 +30218,9 @@ struct TypeInfo namespace ChannelLineup { struct TypeInfo { -<<<<<<< HEAD - using Type = chip::app::Clusters::TvChannel::Structs::TvChannelLineupInfo::Type; - using DecodableType = chip::app::Clusters::TvChannel::Structs::TvChannelLineupInfo::DecodableType; - using DecodableArgType = const chip::app::Clusters::TvChannel::Structs::TvChannelLineupInfo::DecodableType &; -======= - using Type = Structs::ChannelLineupInfo::Type; - using DecodableType = Structs::ChannelLineupInfo::DecodableType; - using DecodableArgType = const Structs::ChannelLineupInfo::DecodableType &; ->>>>>>> 5e91ccb80 (Zap regen) + using Type = chip::app::Clusters::Channel::Structs::ChannelLineupInfo::Type; + using DecodableType = chip::app::Clusters::Channel::Structs::ChannelLineupInfo::DecodableType; + using DecodableArgType = const chip::app::Clusters::Channel::Structs::ChannelLineupInfo::DecodableType &; static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ChannelLineup::Id; } @@ -30243,15 +30230,9 @@ struct TypeInfo namespace CurrentChannel { struct TypeInfo { -<<<<<<< HEAD - using Type = chip::app::Clusters::TvChannel::Structs::TvChannelInfo::Type; - using DecodableType = chip::app::Clusters::TvChannel::Structs::TvChannelInfo::DecodableType; - using DecodableArgType = const chip::app::Clusters::TvChannel::Structs::TvChannelInfo::DecodableType &; -======= - using Type = Structs::ChannelInfo::Type; - using DecodableType = Structs::ChannelInfo::DecodableType; - using DecodableArgType = const Structs::ChannelInfo::DecodableType &; ->>>>>>> 5e91ccb80 (Zap regen) + using Type = chip::app::Clusters::Channel::Structs::ChannelInfo::Type; + using DecodableType = chip::app::Clusters::Channel::Structs::ChannelInfo::DecodableType; + using DecodableArgType = const chip::app::Clusters::Channel::Structs::ChannelInfo::DecodableType &; static constexpr ClusterId GetClusterId() { return Clusters::Channel::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::CurrentChannel::Id; } diff --git a/zzz_generated/chip-tool/zap-generated/reporting/Commands.h b/zzz_generated/chip-tool/zap-generated/reporting/Commands.h deleted file mode 100644 index dc0a0be74161cd..00000000000000 --- a/zzz_generated/chip-tool/zap-generated/reporting/Commands.h +++ /dev/null @@ -1,3524 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#pragma once - -#include "../cluster/Commands.h" // For the LogValue bits and read callbacks -#include - -typedef void (*UnsupportedAttributeCallback)(void * context); - -class Listen : public ReportingCommand -{ -public: - Listen() : ReportingCommand("listen") {} - - ~Listen() - { - delete onReportAccountLoginClusterRevisionCallback; - delete onReportAdministratorCommissioningClusterRevisionCallback; - delete onReportApplicationBasicVendorNameCallback; - delete onReportApplicationBasicVendorIdCallback; - delete onReportApplicationBasicApplicationNameCallback; - delete onReportApplicationBasicProductIdCallback; - delete onReportApplicationBasicApplicationStatusCallback; - delete onReportApplicationBasicApplicationVersionCallback; - delete onReportApplicationBasicClusterRevisionCallback; - delete onReportApplicationLauncherClusterRevisionCallback; - delete onReportAudioOutputCurrentAudioOutputCallback; - delete onReportAudioOutputClusterRevisionCallback; - delete onReportBarrierControlBarrierMovingStateCallback; - delete onReportBarrierControlBarrierSafetyStatusCallback; - delete onReportBarrierControlBarrierCapabilitiesCallback; - delete onReportBarrierControlBarrierPositionCallback; - delete onReportBarrierControlClusterRevisionCallback; - delete onReportBasicInteractionModelVersionCallback; - delete onReportBasicVendorNameCallback; - delete onReportBasicVendorIDCallback; - delete onReportBasicProductNameCallback; - delete onReportBasicProductIDCallback; - delete onReportBasicNodeLabelCallback; - delete onReportBasicLocationCallback; - delete onReportBasicHardwareVersionCallback; - delete onReportBasicHardwareVersionStringCallback; - delete onReportBasicSoftwareVersionCallback; - delete onReportBasicSoftwareVersionStringCallback; - delete onReportBasicManufacturingDateCallback; - delete onReportBasicPartNumberCallback; - delete onReportBasicProductURLCallback; - delete onReportBasicProductLabelCallback; - delete onReportBasicSerialNumberCallback; - delete onReportBasicLocalConfigDisabledCallback; - delete onReportBasicReachableCallback; - delete onReportBasicClusterRevisionCallback; - delete onReportBinaryInputBasicOutOfServiceCallback; - delete onReportBinaryInputBasicPresentValueCallback; - delete onReportBinaryInputBasicStatusFlagsCallback; - delete onReportBinaryInputBasicClusterRevisionCallback; - delete onReportBindingClusterRevisionCallback; - delete onReportBooleanStateStateValueCallback; - delete onReportBooleanStateClusterRevisionCallback; - delete onReportBridgedActionsSetupUrlCallback; - delete onReportBridgedActionsClusterRevisionCallback; - delete onReportBridgedDeviceBasicClusterRevisionCallback; -<<<<<<< HEAD -======= - delete onReportChannelClusterRevisionCallback; ->>>>>>> 5fcfb9c5f (Zap regen) - delete onReportColorControlCurrentHueCallback; - delete onReportColorControlCurrentSaturationCallback; - delete onReportColorControlRemainingTimeCallback; - delete onReportColorControlCurrentXCallback; - delete onReportColorControlCurrentYCallback; - delete onReportColorControlDriftCompensationCallback; - delete onReportColorControlCompensationTextCallback; - delete onReportColorControlColorTemperatureCallback; - delete onReportColorControlColorModeCallback; - delete onReportColorControlColorControlOptionsCallback; - delete onReportColorControlNumberOfPrimariesCallback; - delete onReportColorControlPrimary1XCallback; - delete onReportColorControlPrimary1YCallback; - delete onReportColorControlPrimary1IntensityCallback; - delete onReportColorControlPrimary2XCallback; - delete onReportColorControlPrimary2YCallback; - delete onReportColorControlPrimary2IntensityCallback; - delete onReportColorControlPrimary3XCallback; - delete onReportColorControlPrimary3YCallback; - delete onReportColorControlPrimary3IntensityCallback; - delete onReportColorControlPrimary4XCallback; - delete onReportColorControlPrimary4YCallback; - delete onReportColorControlPrimary4IntensityCallback; - delete onReportColorControlPrimary5XCallback; - delete onReportColorControlPrimary5YCallback; - delete onReportColorControlPrimary5IntensityCallback; - delete onReportColorControlPrimary6XCallback; - delete onReportColorControlPrimary6YCallback; - delete onReportColorControlPrimary6IntensityCallback; - delete onReportColorControlWhitePointXCallback; - delete onReportColorControlWhitePointYCallback; - delete onReportColorControlColorPointRXCallback; - delete onReportColorControlColorPointRYCallback; - delete onReportColorControlColorPointRIntensityCallback; - delete onReportColorControlColorPointGXCallback; - delete onReportColorControlColorPointGYCallback; - delete onReportColorControlColorPointGIntensityCallback; - delete onReportColorControlColorPointBXCallback; - delete onReportColorControlColorPointBYCallback; - delete onReportColorControlColorPointBIntensityCallback; - delete onReportColorControlEnhancedCurrentHueCallback; - delete onReportColorControlEnhancedColorModeCallback; - delete onReportColorControlColorLoopActiveCallback; - delete onReportColorControlColorLoopDirectionCallback; - delete onReportColorControlColorLoopTimeCallback; - delete onReportColorControlColorLoopStartEnhancedHueCallback; - delete onReportColorControlColorLoopStoredEnhancedHueCallback; - delete onReportColorControlColorCapabilitiesCallback; - delete onReportColorControlColorTempPhysicalMinCallback; - delete onReportColorControlColorTempPhysicalMaxCallback; - delete onReportColorControlCoupleColorTempToLevelMinMiredsCallback; - delete onReportColorControlStartUpColorTemperatureMiredsCallback; - delete onReportColorControlClusterRevisionCallback; - delete onReportContentLauncherSupportedStreamingProtocolsCallback; - delete onReportContentLauncherClusterRevisionCallback; - delete onReportDescriptorClusterRevisionCallback; - delete onReportDoorLockLockStateCallback; - delete onReportDoorLockLockTypeCallback; - delete onReportDoorLockActuatorEnabledCallback; - delete onReportDoorLockDoorStateCallback; - delete onReportDoorLockLanguageCallback; - delete onReportDoorLockAutoRelockTimeCallback; - delete onReportDoorLockSoundVolumeCallback; - delete onReportDoorLockOperatingModeCallback; - delete onReportDoorLockEnableOneTouchLockingCallback; - delete onReportDoorLockEnablePrivacyModeButtonCallback; - delete onReportDoorLockWrongCodeEntryLimitCallback; - delete onReportDoorLockClusterRevisionCallback; - delete onReportElectricalMeasurementMeasurementTypeCallback; - delete onReportElectricalMeasurementTotalActivePowerCallback; - delete onReportElectricalMeasurementRmsVoltageCallback; - delete onReportElectricalMeasurementRmsVoltageMinCallback; - delete onReportElectricalMeasurementRmsVoltageMaxCallback; - delete onReportElectricalMeasurementRmsCurrentCallback; - delete onReportElectricalMeasurementRmsCurrentMinCallback; - delete onReportElectricalMeasurementRmsCurrentMaxCallback; - delete onReportElectricalMeasurementActivePowerCallback; - delete onReportElectricalMeasurementActivePowerMinCallback; - delete onReportElectricalMeasurementActivePowerMaxCallback; - delete onReportElectricalMeasurementClusterRevisionCallback; - delete onReportEthernetNetworkDiagnosticsPHYRateCallback; - delete onReportEthernetNetworkDiagnosticsFullDuplexCallback; - delete onReportEthernetNetworkDiagnosticsPacketRxCountCallback; - delete onReportEthernetNetworkDiagnosticsPacketTxCountCallback; - delete onReportEthernetNetworkDiagnosticsTxErrCountCallback; - delete onReportEthernetNetworkDiagnosticsCollisionCountCallback; - delete onReportEthernetNetworkDiagnosticsOverrunCountCallback; - delete onReportEthernetNetworkDiagnosticsCarrierDetectCallback; - delete onReportEthernetNetworkDiagnosticsTimeSinceResetCallback; - delete onReportEthernetNetworkDiagnosticsClusterRevisionCallback; - delete onReportFixedLabelClusterRevisionCallback; - delete onReportFlowMeasurementMeasuredValueCallback; - delete onReportFlowMeasurementMinMeasuredValueCallback; - delete onReportFlowMeasurementMaxMeasuredValueCallback; - delete onReportFlowMeasurementToleranceCallback; - delete onReportFlowMeasurementClusterRevisionCallback; - delete onReportGeneralCommissioningBreadcrumbCallback; - delete onReportGeneralCommissioningClusterRevisionCallback; - delete onReportGeneralDiagnosticsRebootCountCallback; - delete onReportGeneralDiagnosticsUpTimeCallback; - delete onReportGeneralDiagnosticsTotalOperationalHoursCallback; - delete onReportGeneralDiagnosticsBootReasonsCallback; - delete onReportGeneralDiagnosticsClusterRevisionCallback; - delete onReportGroupKeyManagementClusterRevisionCallback; - delete onReportGroupsNameSupportCallback; - delete onReportGroupsClusterRevisionCallback; - delete onReportIdentifyIdentifyTimeCallback; - delete onReportIdentifyIdentifyTypeCallback; - delete onReportIdentifyClusterRevisionCallback; - delete onReportIlluminanceMeasurementMeasuredValueCallback; - delete onReportIlluminanceMeasurementMinMeasuredValueCallback; - delete onReportIlluminanceMeasurementMaxMeasuredValueCallback; - delete onReportIlluminanceMeasurementToleranceCallback; - delete onReportIlluminanceMeasurementLightSensorTypeCallback; - delete onReportIlluminanceMeasurementClusterRevisionCallback; - delete onReportKeypadInputClusterRevisionCallback; - delete onReportLevelControlCurrentLevelCallback; - delete onReportLevelControlRemainingTimeCallback; - delete onReportLevelControlMinLevelCallback; - delete onReportLevelControlMaxLevelCallback; - delete onReportLevelControlCurrentFrequencyCallback; - delete onReportLevelControlMinFrequencyCallback; - delete onReportLevelControlMaxFrequencyCallback; - delete onReportLevelControlOptionsCallback; - delete onReportLevelControlOnOffTransitionTimeCallback; - delete onReportLevelControlOnLevelCallback; - delete onReportLevelControlOnTransitionTimeCallback; - delete onReportLevelControlOffTransitionTimeCallback; - delete onReportLevelControlDefaultMoveRateCallback; - delete onReportLevelControlStartUpCurrentLevelCallback; - delete onReportLevelControlClusterRevisionCallback; - delete onReportLowPowerClusterRevisionCallback; - delete onReportMediaInputCurrentMediaInputCallback; - delete onReportMediaInputClusterRevisionCallback; - delete onReportMediaPlaybackPlaybackStateCallback; - delete onReportMediaPlaybackStartTimeCallback; - delete onReportMediaPlaybackDurationCallback; - delete onReportMediaPlaybackSeekRangeEndCallback; - delete onReportMediaPlaybackSeekRangeStartCallback; - delete onReportMediaPlaybackClusterRevisionCallback; - delete onReportModeSelectCurrentModeCallback; - delete onReportModeSelectOnModeCallback; - delete onReportModeSelectStartUpModeCallback; - delete onReportModeSelectDescriptionCallback; - delete onReportModeSelectClusterRevisionCallback; - delete onReportNetworkCommissioningFeatureMapCallback; - delete onReportNetworkCommissioningClusterRevisionCallback; - delete onReportOtaSoftwareUpdateProviderClusterRevisionCallback; - delete onReportOtaSoftwareUpdateRequestorDefaultOtaProviderCallback; - delete onReportOtaSoftwareUpdateRequestorUpdatePossibleCallback; - delete onReportOtaSoftwareUpdateRequestorClusterRevisionCallback; - delete onReportOccupancySensingOccupancyCallback; - delete onReportOccupancySensingOccupancySensorTypeCallback; - delete onReportOccupancySensingOccupancySensorTypeBitmapCallback; - delete onReportOccupancySensingClusterRevisionCallback; - delete onReportOnOffOnOffCallback; - delete onReportOnOffGlobalSceneControlCallback; - delete onReportOnOffOnTimeCallback; - delete onReportOnOffOffWaitTimeCallback; - delete onReportOnOffStartUpOnOffCallback; - delete onReportOnOffFeatureMapCallback; - delete onReportOnOffClusterRevisionCallback; - delete onReportOnOffSwitchConfigurationSwitchTypeCallback; - delete onReportOnOffSwitchConfigurationSwitchActionsCallback; - delete onReportOnOffSwitchConfigurationClusterRevisionCallback; - delete onReportOperationalCredentialsSupportedFabricsCallback; - delete onReportOperationalCredentialsCommissionedFabricsCallback; - delete onReportOperationalCredentialsCurrentFabricIndexCallback; - delete onReportOperationalCredentialsClusterRevisionCallback; - delete onReportPowerSourceStatusCallback; - delete onReportPowerSourceOrderCallback; - delete onReportPowerSourceDescriptionCallback; - delete onReportPowerSourceBatteryVoltageCallback; - delete onReportPowerSourceBatteryPercentRemainingCallback; - delete onReportPowerSourceBatteryTimeRemainingCallback; - delete onReportPowerSourceBatteryChargeLevelCallback; - delete onReportPowerSourceBatteryChargeStateCallback; - delete onReportPowerSourceFeatureMapCallback; - delete onReportPowerSourceClusterRevisionCallback; - delete onReportPressureMeasurementMeasuredValueCallback; - delete onReportPressureMeasurementMinMeasuredValueCallback; - delete onReportPressureMeasurementMaxMeasuredValueCallback; - delete onReportPressureMeasurementClusterRevisionCallback; - delete onReportPumpConfigurationAndControlMaxPressureCallback; - delete onReportPumpConfigurationAndControlMaxSpeedCallback; - delete onReportPumpConfigurationAndControlMaxFlowCallback; - delete onReportPumpConfigurationAndControlMinConstPressureCallback; - delete onReportPumpConfigurationAndControlMaxConstPressureCallback; - delete onReportPumpConfigurationAndControlMinCompPressureCallback; - delete onReportPumpConfigurationAndControlMaxCompPressureCallback; - delete onReportPumpConfigurationAndControlMinConstSpeedCallback; - delete onReportPumpConfigurationAndControlMaxConstSpeedCallback; - delete onReportPumpConfigurationAndControlMinConstFlowCallback; - delete onReportPumpConfigurationAndControlMaxConstFlowCallback; - delete onReportPumpConfigurationAndControlMinConstTempCallback; - delete onReportPumpConfigurationAndControlMaxConstTempCallback; - delete onReportPumpConfigurationAndControlPumpStatusCallback; - delete onReportPumpConfigurationAndControlEffectiveOperationModeCallback; - delete onReportPumpConfigurationAndControlEffectiveControlModeCallback; - delete onReportPumpConfigurationAndControlCapacityCallback; - delete onReportPumpConfigurationAndControlSpeedCallback; - delete onReportPumpConfigurationAndControlLifetimeRunningHoursCallback; - delete onReportPumpConfigurationAndControlPowerCallback; - delete onReportPumpConfigurationAndControlLifetimeEnergyConsumedCallback; - delete onReportPumpConfigurationAndControlOperationModeCallback; - delete onReportPumpConfigurationAndControlControlModeCallback; - delete onReportPumpConfigurationAndControlAlarmMaskCallback; - delete onReportPumpConfigurationAndControlFeatureMapCallback; - delete onReportPumpConfigurationAndControlClusterRevisionCallback; - delete onReportRelativeHumidityMeasurementMeasuredValueCallback; - delete onReportRelativeHumidityMeasurementMinMeasuredValueCallback; - delete onReportRelativeHumidityMeasurementMaxMeasuredValueCallback; - delete onReportRelativeHumidityMeasurementToleranceCallback; - delete onReportRelativeHumidityMeasurementClusterRevisionCallback; - delete onReportScenesSceneCountCallback; - delete onReportScenesCurrentSceneCallback; - delete onReportScenesCurrentGroupCallback; - delete onReportScenesSceneValidCallback; - delete onReportScenesNameSupportCallback; - delete onReportScenesClusterRevisionCallback; - delete onReportSoftwareDiagnosticsCurrentHeapFreeCallback; - delete onReportSoftwareDiagnosticsCurrentHeapUsedCallback; - delete onReportSoftwareDiagnosticsCurrentHeapHighWatermarkCallback; - delete onReportSoftwareDiagnosticsClusterRevisionCallback; - delete onReportSwitchNumberOfPositionsCallback; - delete onReportSwitchCurrentPositionCallback; - delete onReportSwitchMultiPressMaxCallback; - delete onReportSwitchFeatureMapCallback; - delete onReportSwitchClusterRevisionCallback; -<<<<<<< HEAD - delete onReportTvChannelClusterRevisionCallback; -======= ->>>>>>> 5fcfb9c5f (Zap regen) - delete onReportTargetNavigatorClusterRevisionCallback; - delete onReportTemperatureMeasurementMeasuredValueCallback; - delete onReportTemperatureMeasurementMinMeasuredValueCallback; - delete onReportTemperatureMeasurementMaxMeasuredValueCallback; - delete onReportTemperatureMeasurementToleranceCallback; - delete onReportTemperatureMeasurementClusterRevisionCallback; - delete onReportTestClusterBooleanCallback; - delete onReportTestClusterBitmap8Callback; - delete onReportTestClusterBitmap16Callback; - delete onReportTestClusterBitmap32Callback; - delete onReportTestClusterBitmap64Callback; - delete onReportTestClusterInt8uCallback; - delete onReportTestClusterInt16uCallback; - delete onReportTestClusterInt24uCallback; - delete onReportTestClusterInt32uCallback; - delete onReportTestClusterInt40uCallback; - delete onReportTestClusterInt48uCallback; - delete onReportTestClusterInt56uCallback; - delete onReportTestClusterInt64uCallback; - delete onReportTestClusterInt8sCallback; - delete onReportTestClusterInt16sCallback; - delete onReportTestClusterInt24sCallback; - delete onReportTestClusterInt32sCallback; - delete onReportTestClusterInt40sCallback; - delete onReportTestClusterInt48sCallback; - delete onReportTestClusterInt56sCallback; - delete onReportTestClusterInt64sCallback; - delete onReportTestClusterEnum8Callback; - delete onReportTestClusterEnum16Callback; - delete onReportTestClusterFloatSingleCallback; - delete onReportTestClusterFloatDoubleCallback; - delete onReportTestClusterOctetStringCallback; - delete onReportTestClusterLongOctetStringCallback; - delete onReportTestClusterCharStringCallback; - delete onReportTestClusterLongCharStringCallback; - delete onReportTestClusterEpochUsCallback; - delete onReportTestClusterEpochSCallback; - delete onReportTestClusterVendorIdCallback; - delete onReportTestClusterEnumAttrCallback; - delete onReportTestClusterRangeRestrictedInt8uCallback; - delete onReportTestClusterRangeRestrictedInt8sCallback; - delete onReportTestClusterRangeRestrictedInt16uCallback; - delete onReportTestClusterRangeRestrictedInt16sCallback; - delete onReportTestClusterUnsupportedCallback; - delete onReportTestClusterNullableBooleanCallback; - delete onReportTestClusterNullableBitmap8Callback; - delete onReportTestClusterNullableBitmap16Callback; - delete onReportTestClusterNullableBitmap32Callback; - delete onReportTestClusterNullableBitmap64Callback; - delete onReportTestClusterNullableInt8uCallback; - delete onReportTestClusterNullableInt16uCallback; - delete onReportTestClusterNullableInt24uCallback; - delete onReportTestClusterNullableInt32uCallback; - delete onReportTestClusterNullableInt40uCallback; - delete onReportTestClusterNullableInt48uCallback; - delete onReportTestClusterNullableInt56uCallback; - delete onReportTestClusterNullableInt64uCallback; - delete onReportTestClusterNullableInt8sCallback; - delete onReportTestClusterNullableInt16sCallback; - delete onReportTestClusterNullableInt24sCallback; - delete onReportTestClusterNullableInt32sCallback; - delete onReportTestClusterNullableInt40sCallback; - delete onReportTestClusterNullableInt48sCallback; - delete onReportTestClusterNullableInt56sCallback; - delete onReportTestClusterNullableInt64sCallback; - delete onReportTestClusterNullableEnum8Callback; - delete onReportTestClusterNullableEnum16Callback; - delete onReportTestClusterNullableFloatSingleCallback; - delete onReportTestClusterNullableFloatDoubleCallback; - delete onReportTestClusterNullableOctetStringCallback; - delete onReportTestClusterNullableCharStringCallback; - delete onReportTestClusterNullableEnumAttrCallback; - delete onReportTestClusterNullableRangeRestrictedInt8uCallback; - delete onReportTestClusterNullableRangeRestrictedInt8sCallback; - delete onReportTestClusterNullableRangeRestrictedInt16uCallback; - delete onReportTestClusterNullableRangeRestrictedInt16sCallback; - delete onReportTestClusterClusterRevisionCallback; - delete onReportThermostatLocalTemperatureCallback; - delete onReportThermostatAbsMinHeatSetpointLimitCallback; - delete onReportThermostatAbsMaxHeatSetpointLimitCallback; - delete onReportThermostatAbsMinCoolSetpointLimitCallback; - delete onReportThermostatAbsMaxCoolSetpointLimitCallback; - delete onReportThermostatOccupiedCoolingSetpointCallback; - delete onReportThermostatOccupiedHeatingSetpointCallback; - delete onReportThermostatMinHeatSetpointLimitCallback; - delete onReportThermostatMaxHeatSetpointLimitCallback; - delete onReportThermostatMinCoolSetpointLimitCallback; - delete onReportThermostatMaxCoolSetpointLimitCallback; - delete onReportThermostatMinSetpointDeadBandCallback; - delete onReportThermostatControlSequenceOfOperationCallback; - delete onReportThermostatSystemModeCallback; - delete onReportThermostatStartOfWeekCallback; - delete onReportThermostatNumberOfWeeklyTransitionsCallback; - delete onReportThermostatNumberOfDailyTransitionsCallback; - delete onReportThermostatFeatureMapCallback; - delete onReportThermostatClusterRevisionCallback; - delete onReportThermostatUserInterfaceConfigurationTemperatureDisplayModeCallback; - delete onReportThermostatUserInterfaceConfigurationKeypadLockoutCallback; - delete onReportThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCallback; - delete onReportThermostatUserInterfaceConfigurationClusterRevisionCallback; - delete onReportThreadNetworkDiagnosticsChannelCallback; - delete onReportThreadNetworkDiagnosticsRoutingRoleCallback; - delete onReportThreadNetworkDiagnosticsNetworkNameCallback; - delete onReportThreadNetworkDiagnosticsPanIdCallback; - delete onReportThreadNetworkDiagnosticsExtendedPanIdCallback; - delete onReportThreadNetworkDiagnosticsMeshLocalPrefixCallback; - delete onReportThreadNetworkDiagnosticsOverrunCountCallback; - delete onReportThreadNetworkDiagnosticsPartitionIdCallback; - delete onReportThreadNetworkDiagnosticsWeightingCallback; - delete onReportThreadNetworkDiagnosticsDataVersionCallback; - delete onReportThreadNetworkDiagnosticsStableDataVersionCallback; - delete onReportThreadNetworkDiagnosticsLeaderRouterIdCallback; - delete onReportThreadNetworkDiagnosticsDetachedRoleCountCallback; - delete onReportThreadNetworkDiagnosticsChildRoleCountCallback; - delete onReportThreadNetworkDiagnosticsRouterRoleCountCallback; - delete onReportThreadNetworkDiagnosticsLeaderRoleCountCallback; - delete onReportThreadNetworkDiagnosticsAttachAttemptCountCallback; - delete onReportThreadNetworkDiagnosticsPartitionIdChangeCountCallback; - delete onReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCallback; - delete onReportThreadNetworkDiagnosticsParentChangeCountCallback; - delete onReportThreadNetworkDiagnosticsTxTotalCountCallback; - delete onReportThreadNetworkDiagnosticsTxUnicastCountCallback; - delete onReportThreadNetworkDiagnosticsTxBroadcastCountCallback; - delete onReportThreadNetworkDiagnosticsTxAckRequestedCountCallback; - delete onReportThreadNetworkDiagnosticsTxAckedCountCallback; - delete onReportThreadNetworkDiagnosticsTxNoAckRequestedCountCallback; - delete onReportThreadNetworkDiagnosticsTxDataCountCallback; - delete onReportThreadNetworkDiagnosticsTxDataPollCountCallback; - delete onReportThreadNetworkDiagnosticsTxBeaconCountCallback; - delete onReportThreadNetworkDiagnosticsTxBeaconRequestCountCallback; - delete onReportThreadNetworkDiagnosticsTxOtherCountCallback; - delete onReportThreadNetworkDiagnosticsTxRetryCountCallback; - delete onReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCallback; - delete onReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCallback; - delete onReportThreadNetworkDiagnosticsTxErrCcaCountCallback; - delete onReportThreadNetworkDiagnosticsTxErrAbortCountCallback; - delete onReportThreadNetworkDiagnosticsTxErrBusyChannelCountCallback; - delete onReportThreadNetworkDiagnosticsRxTotalCountCallback; - delete onReportThreadNetworkDiagnosticsRxUnicastCountCallback; - delete onReportThreadNetworkDiagnosticsRxBroadcastCountCallback; - delete onReportThreadNetworkDiagnosticsRxDataCountCallback; - delete onReportThreadNetworkDiagnosticsRxDataPollCountCallback; - delete onReportThreadNetworkDiagnosticsRxBeaconCountCallback; - delete onReportThreadNetworkDiagnosticsRxBeaconRequestCountCallback; - delete onReportThreadNetworkDiagnosticsRxOtherCountCallback; - delete onReportThreadNetworkDiagnosticsRxAddressFilteredCountCallback; - delete onReportThreadNetworkDiagnosticsRxDestAddrFilteredCountCallback; - delete onReportThreadNetworkDiagnosticsRxDuplicatedCountCallback; - delete onReportThreadNetworkDiagnosticsRxErrNoFrameCountCallback; - delete onReportThreadNetworkDiagnosticsRxErrUnknownNeighborCountCallback; - delete onReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCallback; - delete onReportThreadNetworkDiagnosticsRxErrSecCountCallback; - delete onReportThreadNetworkDiagnosticsRxErrFcsCountCallback; - delete onReportThreadNetworkDiagnosticsRxErrOtherCountCallback; - delete onReportThreadNetworkDiagnosticsActiveTimestampCallback; - delete onReportThreadNetworkDiagnosticsPendingTimestampCallback; - delete onReportThreadNetworkDiagnosticsDelayCallback; - delete onReportThreadNetworkDiagnosticsChannelMaskCallback; - delete onReportThreadNetworkDiagnosticsClusterRevisionCallback; - delete onReportWakeOnLanWakeOnLanMacAddressCallback; - delete onReportWakeOnLanClusterRevisionCallback; - delete onReportWiFiNetworkDiagnosticsBssidCallback; - delete onReportWiFiNetworkDiagnosticsSecurityTypeCallback; - delete onReportWiFiNetworkDiagnosticsWiFiVersionCallback; - delete onReportWiFiNetworkDiagnosticsChannelNumberCallback; - delete onReportWiFiNetworkDiagnosticsRssiCallback; - delete onReportWiFiNetworkDiagnosticsBeaconLostCountCallback; - delete onReportWiFiNetworkDiagnosticsBeaconRxCountCallback; - delete onReportWiFiNetworkDiagnosticsPacketMulticastRxCountCallback; - delete onReportWiFiNetworkDiagnosticsPacketMulticastTxCountCallback; - delete onReportWiFiNetworkDiagnosticsPacketUnicastRxCountCallback; - delete onReportWiFiNetworkDiagnosticsPacketUnicastTxCountCallback; - delete onReportWiFiNetworkDiagnosticsCurrentMaxRateCallback; - delete onReportWiFiNetworkDiagnosticsOverrunCountCallback; - delete onReportWiFiNetworkDiagnosticsClusterRevisionCallback; - delete onReportWindowCoveringTypeCallback; - delete onReportWindowCoveringCurrentPositionLiftCallback; - delete onReportWindowCoveringCurrentPositionTiltCallback; - delete onReportWindowCoveringConfigStatusCallback; - delete onReportWindowCoveringCurrentPositionLiftPercentageCallback; - delete onReportWindowCoveringCurrentPositionTiltPercentageCallback; - delete onReportWindowCoveringOperationalStatusCallback; - delete onReportWindowCoveringTargetPositionLiftPercent100thsCallback; - delete onReportWindowCoveringTargetPositionTiltPercent100thsCallback; - delete onReportWindowCoveringEndProductTypeCallback; - delete onReportWindowCoveringCurrentPositionLiftPercent100thsCallback; - delete onReportWindowCoveringCurrentPositionTiltPercent100thsCallback; - delete onReportWindowCoveringInstalledOpenLimitLiftCallback; - delete onReportWindowCoveringInstalledClosedLimitLiftCallback; - delete onReportWindowCoveringInstalledOpenLimitTiltCallback; - delete onReportWindowCoveringInstalledClosedLimitTiltCallback; - delete onReportWindowCoveringModeCallback; - delete onReportWindowCoveringSafetyStatusCallback; - delete onReportWindowCoveringFeatureMapCallback; - delete onReportWindowCoveringClusterRevisionCallback; - } - - void AddReportCallbacks(NodeId remoteId, uint8_t endpointId) override - { - chip::app::CHIPDeviceCallbacksMgr & callbacksMgr = chip::app::CHIPDeviceCallbacksMgr::GetInstance(); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050E, 0xFFFD, onReportAccountLoginClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003C, 0xFFFD, - onReportAdministratorCommissioningClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0x0000, onReportApplicationBasicVendorNameCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0x0001, onReportApplicationBasicVendorIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0x0002, - onReportApplicationBasicApplicationNameCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0x0003, onReportApplicationBasicProductIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0x0005, - onReportApplicationBasicApplicationStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0x0006, - onReportApplicationBasicApplicationVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050D, 0xFFFD, - onReportApplicationBasicClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050C, 0xFFFD, - onReportApplicationLauncherClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050B, 0x0001, - onReportAudioOutputCurrentAudioOutputCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050B, 0xFFFD, onReportAudioOutputClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0103, 0x0001, - onReportBarrierControlBarrierMovingStateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0103, 0x0002, - onReportBarrierControlBarrierSafetyStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0103, 0x0003, - onReportBarrierControlBarrierCapabilitiesCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0103, 0x000A, - onReportBarrierControlBarrierPositionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0103, 0xFFFD, - onReportBarrierControlClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0000, onReportBasicInteractionModelVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0001, onReportBasicVendorNameCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0002, onReportBasicVendorIDCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0003, onReportBasicProductNameCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0004, onReportBasicProductIDCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0005, onReportBasicNodeLabelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0006, onReportBasicLocationCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0007, onReportBasicHardwareVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0008, onReportBasicHardwareVersionStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0009, onReportBasicSoftwareVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x000A, onReportBasicSoftwareVersionStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x000B, onReportBasicManufacturingDateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x000C, onReportBasicPartNumberCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x000D, onReportBasicProductURLCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x000E, onReportBasicProductLabelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x000F, onReportBasicSerialNumberCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0010, onReportBasicLocalConfigDisabledCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0x0011, onReportBasicReachableCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0028, 0xFFFD, onReportBasicClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x000F, 0x0051, onReportBinaryInputBasicOutOfServiceCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x000F, 0x0055, onReportBinaryInputBasicPresentValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x000F, 0x006F, onReportBinaryInputBasicStatusFlagsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x000F, 0xFFFD, - onReportBinaryInputBasicClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x001E, 0xFFFD, onReportBindingClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0045, 0x0000, onReportBooleanStateStateValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0045, 0xFFFD, onReportBooleanStateClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0025, 0x0002, onReportBridgedActionsSetupUrlCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0025, 0xFFFD, - onReportBridgedActionsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0039, 0xFFFD, - onReportBridgedDeviceBasicClusterRevisionCallback->Cancel(), - BasicAttributeFilter); -<<<<<<< HEAD -======= - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0504, 0xFFFD, onReportChannelClusterRevisionCallback->Cancel(), - BasicAttributeFilter); ->>>>>>> 5fcfb9c5f (Zap regen) - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0000, onReportColorControlCurrentHueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0001, - onReportColorControlCurrentSaturationCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0002, onReportColorControlRemainingTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0003, onReportColorControlCurrentXCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0004, onReportColorControlCurrentYCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0005, - onReportColorControlDriftCompensationCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0006, onReportColorControlCompensationTextCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0007, onReportColorControlColorTemperatureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0008, onReportColorControlColorModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x000F, - onReportColorControlColorControlOptionsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0010, - onReportColorControlNumberOfPrimariesCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0011, onReportColorControlPrimary1XCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0012, onReportColorControlPrimary1YCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0013, - onReportColorControlPrimary1IntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0015, onReportColorControlPrimary2XCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0016, onReportColorControlPrimary2YCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0017, - onReportColorControlPrimary2IntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0019, onReportColorControlPrimary3XCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x001A, onReportColorControlPrimary3YCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x001B, - onReportColorControlPrimary3IntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0020, onReportColorControlPrimary4XCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0021, onReportColorControlPrimary4YCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0022, - onReportColorControlPrimary4IntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0024, onReportColorControlPrimary5XCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0025, onReportColorControlPrimary5YCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0026, - onReportColorControlPrimary5IntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0028, onReportColorControlPrimary6XCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0029, onReportColorControlPrimary6YCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x002A, - onReportColorControlPrimary6IntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0030, onReportColorControlWhitePointXCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0031, onReportColorControlWhitePointYCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0032, onReportColorControlColorPointRXCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0033, onReportColorControlColorPointRYCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0034, - onReportColorControlColorPointRIntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0036, onReportColorControlColorPointGXCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0037, onReportColorControlColorPointGYCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x0038, - onReportColorControlColorPointGIntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x003A, onReportColorControlColorPointBXCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x003B, onReportColorControlColorPointBYCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x003C, - onReportColorControlColorPointBIntensityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4000, - onReportColorControlEnhancedCurrentHueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4001, - onReportColorControlEnhancedColorModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4002, onReportColorControlColorLoopActiveCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4003, - onReportColorControlColorLoopDirectionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4004, onReportColorControlColorLoopTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4005, - onReportColorControlColorLoopStartEnhancedHueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4006, - onReportColorControlColorLoopStoredEnhancedHueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x400A, - onReportColorControlColorCapabilitiesCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x400B, - onReportColorControlColorTempPhysicalMinCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x400C, - onReportColorControlColorTempPhysicalMaxCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x400D, - onReportColorControlCoupleColorTempToLevelMinMiredsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0x4010, - onReportColorControlStartUpColorTemperatureMiredsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0300, 0xFFFD, onReportColorControlClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050A, 0x0001, - onReportContentLauncherSupportedStreamingProtocolsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050A, 0xFFFD, - onReportContentLauncherClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x001D, 0xFFFD, onReportDescriptorClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0000, onReportDoorLockLockStateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0001, onReportDoorLockLockTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0002, onReportDoorLockActuatorEnabledCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0003, onReportDoorLockDoorStateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0021, onReportDoorLockLanguageCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0023, onReportDoorLockAutoRelockTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0024, onReportDoorLockSoundVolumeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0025, onReportDoorLockOperatingModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0029, - onReportDoorLockEnableOneTouchLockingCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x002B, - onReportDoorLockEnablePrivacyModeButtonCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0x0030, onReportDoorLockWrongCodeEntryLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0101, 0xFFFD, onReportDoorLockClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0000, - onReportElectricalMeasurementMeasurementTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0304, - onReportElectricalMeasurementTotalActivePowerCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0505, - onReportElectricalMeasurementRmsVoltageCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0506, - onReportElectricalMeasurementRmsVoltageMinCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0507, - onReportElectricalMeasurementRmsVoltageMaxCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0508, - onReportElectricalMeasurementRmsCurrentCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x0509, - onReportElectricalMeasurementRmsCurrentMinCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x050A, - onReportElectricalMeasurementRmsCurrentMaxCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x050B, - onReportElectricalMeasurementActivePowerCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x050C, - onReportElectricalMeasurementActivePowerMinCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0x050D, - onReportElectricalMeasurementActivePowerMaxCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0B04, 0xFFFD, - onReportElectricalMeasurementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0000, - onReportEthernetNetworkDiagnosticsPHYRateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0001, - onReportEthernetNetworkDiagnosticsFullDuplexCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0002, - onReportEthernetNetworkDiagnosticsPacketRxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0003, - onReportEthernetNetworkDiagnosticsPacketTxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0004, - onReportEthernetNetworkDiagnosticsTxErrCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0005, - onReportEthernetNetworkDiagnosticsCollisionCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0006, - onReportEthernetNetworkDiagnosticsOverrunCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0007, - onReportEthernetNetworkDiagnosticsCarrierDetectCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0x0008, - onReportEthernetNetworkDiagnosticsTimeSinceResetCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0037, 0xFFFD, - onReportEthernetNetworkDiagnosticsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0040, 0xFFFD, onReportFixedLabelClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0404, 0x0000, onReportFlowMeasurementMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0404, 0x0001, - onReportFlowMeasurementMinMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0404, 0x0002, - onReportFlowMeasurementMaxMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0404, 0x0003, onReportFlowMeasurementToleranceCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0404, 0xFFFD, - onReportFlowMeasurementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0030, 0x0000, - onReportGeneralCommissioningBreadcrumbCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0030, 0xFFFD, - onReportGeneralCommissioningClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0033, 0x0001, - onReportGeneralDiagnosticsRebootCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0033, 0x0002, onReportGeneralDiagnosticsUpTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0033, 0x0003, - onReportGeneralDiagnosticsTotalOperationalHoursCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0033, 0x0004, - onReportGeneralDiagnosticsBootReasonsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0033, 0xFFFD, - onReportGeneralDiagnosticsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003F, 0xFFFD, - onReportGroupKeyManagementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0004, 0x0000, onReportGroupsNameSupportCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0004, 0xFFFD, onReportGroupsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0003, 0x0000, onReportIdentifyIdentifyTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0003, 0x0001, onReportIdentifyIdentifyTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0003, 0xFFFD, onReportIdentifyClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0400, 0x0000, - onReportIlluminanceMeasurementMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0400, 0x0001, - onReportIlluminanceMeasurementMinMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0400, 0x0002, - onReportIlluminanceMeasurementMaxMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0400, 0x0003, - onReportIlluminanceMeasurementToleranceCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0400, 0x0004, - onReportIlluminanceMeasurementLightSensorTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0400, 0xFFFD, - onReportIlluminanceMeasurementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0509, 0xFFFD, onReportKeypadInputClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0000, onReportLevelControlCurrentLevelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0001, onReportLevelControlRemainingTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0002, onReportLevelControlMinLevelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0003, onReportLevelControlMaxLevelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0004, onReportLevelControlCurrentFrequencyCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0005, onReportLevelControlMinFrequencyCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0006, onReportLevelControlMaxFrequencyCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x000F, onReportLevelControlOptionsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0010, - onReportLevelControlOnOffTransitionTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0011, onReportLevelControlOnLevelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0012, onReportLevelControlOnTransitionTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0013, - onReportLevelControlOffTransitionTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x0014, onReportLevelControlDefaultMoveRateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0x4000, - onReportLevelControlStartUpCurrentLevelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0008, 0xFFFD, onReportLevelControlClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0508, 0xFFFD, onReportLowPowerClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0507, 0x0001, onReportMediaInputCurrentMediaInputCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0507, 0xFFFD, onReportMediaInputClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0506, 0x0000, onReportMediaPlaybackPlaybackStateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0506, 0x0001, onReportMediaPlaybackStartTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0506, 0x0002, onReportMediaPlaybackDurationCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0506, 0x0005, onReportMediaPlaybackSeekRangeEndCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0506, 0x0006, onReportMediaPlaybackSeekRangeStartCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0506, 0xFFFD, onReportMediaPlaybackClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0050, 0x0000, onReportModeSelectCurrentModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0050, 0x0002, onReportModeSelectOnModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0050, 0x0003, onReportModeSelectStartUpModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0050, 0x0004, onReportModeSelectDescriptionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0050, 0xFFFD, onReportModeSelectClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0031, 0xFFFC, - onReportNetworkCommissioningFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0031, 0xFFFD, - onReportNetworkCommissioningClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0029, 0xFFFD, - onReportOtaSoftwareUpdateProviderClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002A, 0x0001, - onReportOtaSoftwareUpdateRequestorDefaultOtaProviderCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002A, 0x0002, - onReportOtaSoftwareUpdateRequestorUpdatePossibleCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002A, 0xFFFD, - onReportOtaSoftwareUpdateRequestorClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0406, 0x0000, onReportOccupancySensingOccupancyCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0406, 0x0001, - onReportOccupancySensingOccupancySensorTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0406, 0x0002, - onReportOccupancySensingOccupancySensorTypeBitmapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0406, 0xFFFD, - onReportOccupancySensingClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0x0000, onReportOnOffOnOffCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0x4000, onReportOnOffGlobalSceneControlCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0x4001, onReportOnOffOnTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0x4002, onReportOnOffOffWaitTimeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0x4003, onReportOnOffStartUpOnOffCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0xFFFC, onReportOnOffFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0006, 0xFFFD, onReportOnOffClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0007, 0x0000, - onReportOnOffSwitchConfigurationSwitchTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0007, 0x0010, - onReportOnOffSwitchConfigurationSwitchActionsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0007, 0xFFFD, - onReportOnOffSwitchConfigurationClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003E, 0x0002, - onReportOperationalCredentialsSupportedFabricsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003E, 0x0003, - onReportOperationalCredentialsCommissionedFabricsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003E, 0x0005, - onReportOperationalCredentialsCurrentFabricIndexCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003E, 0xFFFD, - onReportOperationalCredentialsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x0000, onReportPowerSourceStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x0001, onReportPowerSourceOrderCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x0002, onReportPowerSourceDescriptionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x000B, onReportPowerSourceBatteryVoltageCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x000C, - onReportPowerSourceBatteryPercentRemainingCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x000D, - onReportPowerSourceBatteryTimeRemainingCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x000E, - onReportPowerSourceBatteryChargeLevelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0x001A, - onReportPowerSourceBatteryChargeStateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0xFFFC, onReportPowerSourceFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x002F, 0xFFFD, onReportPowerSourceClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0403, 0x0000, - onReportPressureMeasurementMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0403, 0x0001, - onReportPressureMeasurementMinMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0403, 0x0002, - onReportPressureMeasurementMaxMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0403, 0xFFFD, - onReportPressureMeasurementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0000, - onReportPumpConfigurationAndControlMaxPressureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0001, - onReportPumpConfigurationAndControlMaxSpeedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0002, - onReportPumpConfigurationAndControlMaxFlowCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0003, - onReportPumpConfigurationAndControlMinConstPressureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0004, - onReportPumpConfigurationAndControlMaxConstPressureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0005, - onReportPumpConfigurationAndControlMinCompPressureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0006, - onReportPumpConfigurationAndControlMaxCompPressureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0007, - onReportPumpConfigurationAndControlMinConstSpeedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0008, - onReportPumpConfigurationAndControlMaxConstSpeedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0009, - onReportPumpConfigurationAndControlMinConstFlowCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x000A, - onReportPumpConfigurationAndControlMaxConstFlowCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x000B, - onReportPumpConfigurationAndControlMinConstTempCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x000C, - onReportPumpConfigurationAndControlMaxConstTempCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0010, - onReportPumpConfigurationAndControlPumpStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0011, - onReportPumpConfigurationAndControlEffectiveOperationModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0012, - onReportPumpConfigurationAndControlEffectiveControlModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0013, - onReportPumpConfigurationAndControlCapacityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0014, - onReportPumpConfigurationAndControlSpeedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0015, - onReportPumpConfigurationAndControlLifetimeRunningHoursCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0016, - onReportPumpConfigurationAndControlPowerCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0017, - onReportPumpConfigurationAndControlLifetimeEnergyConsumedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0020, - onReportPumpConfigurationAndControlOperationModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0021, - onReportPumpConfigurationAndControlControlModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0x0022, - onReportPumpConfigurationAndControlAlarmMaskCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0xFFFC, - onReportPumpConfigurationAndControlFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0200, 0xFFFD, - onReportPumpConfigurationAndControlClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0405, 0x0000, - onReportRelativeHumidityMeasurementMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0405, 0x0001, - onReportRelativeHumidityMeasurementMinMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0405, 0x0002, - onReportRelativeHumidityMeasurementMaxMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0405, 0x0003, - onReportRelativeHumidityMeasurementToleranceCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0405, 0xFFFD, - onReportRelativeHumidityMeasurementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0005, 0x0000, onReportScenesSceneCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0005, 0x0001, onReportScenesCurrentSceneCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0005, 0x0002, onReportScenesCurrentGroupCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0005, 0x0003, onReportScenesSceneValidCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0005, 0x0004, onReportScenesNameSupportCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0005, 0xFFFD, onReportScenesClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0034, 0x0001, - onReportSoftwareDiagnosticsCurrentHeapFreeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0034, 0x0002, - onReportSoftwareDiagnosticsCurrentHeapUsedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0034, 0x0003, - onReportSoftwareDiagnosticsCurrentHeapHighWatermarkCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0034, 0xFFFD, - onReportSoftwareDiagnosticsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003B, 0x0000, onReportSwitchNumberOfPositionsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003B, 0x0001, onReportSwitchCurrentPositionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003B, 0x0002, onReportSwitchMultiPressMaxCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003B, 0xFFFC, onReportSwitchFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x003B, 0xFFFD, onReportSwitchClusterRevisionCallback->Cancel(), - BasicAttributeFilter); -<<<<<<< HEAD - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0504, 0xFFFD, onReportTvChannelClusterRevisionCallback->Cancel(), - BasicAttributeFilter); -======= ->>>>>>> 5fcfb9c5f (Zap regen) - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0505, 0xFFFD, - onReportTargetNavigatorClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0402, 0x0000, - onReportTemperatureMeasurementMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0402, 0x0001, - onReportTemperatureMeasurementMinMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0402, 0x0002, - onReportTemperatureMeasurementMaxMeasuredValueCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0402, 0x0003, - onReportTemperatureMeasurementToleranceCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0402, 0xFFFD, - onReportTemperatureMeasurementClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0000, onReportTestClusterBooleanCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0001, onReportTestClusterBitmap8Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0002, onReportTestClusterBitmap16Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0003, onReportTestClusterBitmap32Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0004, onReportTestClusterBitmap64Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0005, onReportTestClusterInt8uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0006, onReportTestClusterInt16uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0007, onReportTestClusterInt24uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0008, onReportTestClusterInt32uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0009, onReportTestClusterInt40uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x000A, onReportTestClusterInt48uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x000B, onReportTestClusterInt56uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x000C, onReportTestClusterInt64uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x000D, onReportTestClusterInt8sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x000E, onReportTestClusterInt16sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x000F, onReportTestClusterInt24sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0010, onReportTestClusterInt32sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0011, onReportTestClusterInt40sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0012, onReportTestClusterInt48sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0013, onReportTestClusterInt56sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0014, onReportTestClusterInt64sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0015, onReportTestClusterEnum8Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0016, onReportTestClusterEnum16Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0017, onReportTestClusterFloatSingleCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0018, onReportTestClusterFloatDoubleCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0019, onReportTestClusterOctetStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x001D, onReportTestClusterLongOctetStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x001E, onReportTestClusterCharStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x001F, onReportTestClusterLongCharStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0020, onReportTestClusterEpochUsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0021, onReportTestClusterEpochSCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0022, onReportTestClusterVendorIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0024, onReportTestClusterEnumAttrCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0026, - onReportTestClusterRangeRestrictedInt8uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0027, - onReportTestClusterRangeRestrictedInt8sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0028, - onReportTestClusterRangeRestrictedInt16uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x0029, - onReportTestClusterRangeRestrictedInt16sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x00FF, onReportTestClusterUnsupportedCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8000, onReportTestClusterNullableBooleanCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8001, onReportTestClusterNullableBitmap8Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8002, onReportTestClusterNullableBitmap16Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8003, onReportTestClusterNullableBitmap32Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8004, onReportTestClusterNullableBitmap64Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8005, onReportTestClusterNullableInt8uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8006, onReportTestClusterNullableInt16uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8007, onReportTestClusterNullableInt24uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8008, onReportTestClusterNullableInt32uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8009, onReportTestClusterNullableInt40uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x800A, onReportTestClusterNullableInt48uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x800B, onReportTestClusterNullableInt56uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x800C, onReportTestClusterNullableInt64uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x800D, onReportTestClusterNullableInt8sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x800E, onReportTestClusterNullableInt16sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x800F, onReportTestClusterNullableInt24sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8010, onReportTestClusterNullableInt32sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8011, onReportTestClusterNullableInt40sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8012, onReportTestClusterNullableInt48sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8013, onReportTestClusterNullableInt56sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8014, onReportTestClusterNullableInt64sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8015, onReportTestClusterNullableEnum8Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8016, onReportTestClusterNullableEnum16Callback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8017, - onReportTestClusterNullableFloatSingleCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8018, - onReportTestClusterNullableFloatDoubleCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8019, - onReportTestClusterNullableOctetStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x801E, - onReportTestClusterNullableCharStringCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8024, onReportTestClusterNullableEnumAttrCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8026, - onReportTestClusterNullableRangeRestrictedInt8uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8027, - onReportTestClusterNullableRangeRestrictedInt8sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8028, - onReportTestClusterNullableRangeRestrictedInt16uCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0x8029, - onReportTestClusterNullableRangeRestrictedInt16sCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x050F, 0xFFFD, onReportTestClusterClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0000, onReportThermostatLocalTemperatureCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0003, - onReportThermostatAbsMinHeatSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0004, - onReportThermostatAbsMaxHeatSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0005, - onReportThermostatAbsMinCoolSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0006, - onReportThermostatAbsMaxCoolSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0011, - onReportThermostatOccupiedCoolingSetpointCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0012, - onReportThermostatOccupiedHeatingSetpointCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0015, - onReportThermostatMinHeatSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0016, - onReportThermostatMaxHeatSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0017, - onReportThermostatMinCoolSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0018, - onReportThermostatMaxCoolSetpointLimitCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0019, - onReportThermostatMinSetpointDeadBandCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x001B, - onReportThermostatControlSequenceOfOperationCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x001C, onReportThermostatSystemModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0020, onReportThermostatStartOfWeekCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0021, - onReportThermostatNumberOfWeeklyTransitionsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0x0022, - onReportThermostatNumberOfDailyTransitionsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0xFFFC, onReportThermostatFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0201, 0xFFFD, onReportThermostatClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0204, 0x0000, - onReportThermostatUserInterfaceConfigurationTemperatureDisplayModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0204, 0x0001, - onReportThermostatUserInterfaceConfigurationKeypadLockoutCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0204, 0x0002, - onReportThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0204, 0xFFFD, - onReportThermostatUserInterfaceConfigurationClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0000, - onReportThreadNetworkDiagnosticsChannelCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0001, - onReportThreadNetworkDiagnosticsRoutingRoleCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0002, - onReportThreadNetworkDiagnosticsNetworkNameCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0003, - onReportThreadNetworkDiagnosticsPanIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0004, - onReportThreadNetworkDiagnosticsExtendedPanIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0005, - onReportThreadNetworkDiagnosticsMeshLocalPrefixCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0006, - onReportThreadNetworkDiagnosticsOverrunCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0009, - onReportThreadNetworkDiagnosticsPartitionIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x000A, - onReportThreadNetworkDiagnosticsWeightingCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x000B, - onReportThreadNetworkDiagnosticsDataVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x000C, - onReportThreadNetworkDiagnosticsStableDataVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x000D, - onReportThreadNetworkDiagnosticsLeaderRouterIdCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x000E, - onReportThreadNetworkDiagnosticsDetachedRoleCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x000F, - onReportThreadNetworkDiagnosticsChildRoleCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0010, - onReportThreadNetworkDiagnosticsRouterRoleCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0011, - onReportThreadNetworkDiagnosticsLeaderRoleCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0012, - onReportThreadNetworkDiagnosticsAttachAttemptCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0013, - onReportThreadNetworkDiagnosticsPartitionIdChangeCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0014, - onReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0015, - onReportThreadNetworkDiagnosticsParentChangeCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0016, - onReportThreadNetworkDiagnosticsTxTotalCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0017, - onReportThreadNetworkDiagnosticsTxUnicastCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0018, - onReportThreadNetworkDiagnosticsTxBroadcastCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0019, - onReportThreadNetworkDiagnosticsTxAckRequestedCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x001A, - onReportThreadNetworkDiagnosticsTxAckedCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x001B, - onReportThreadNetworkDiagnosticsTxNoAckRequestedCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x001C, - onReportThreadNetworkDiagnosticsTxDataCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x001D, - onReportThreadNetworkDiagnosticsTxDataPollCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x001E, - onReportThreadNetworkDiagnosticsTxBeaconCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x001F, - onReportThreadNetworkDiagnosticsTxBeaconRequestCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0020, - onReportThreadNetworkDiagnosticsTxOtherCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0021, - onReportThreadNetworkDiagnosticsTxRetryCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0022, - onReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0023, - onReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0024, - onReportThreadNetworkDiagnosticsTxErrCcaCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0025, - onReportThreadNetworkDiagnosticsTxErrAbortCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0026, - onReportThreadNetworkDiagnosticsTxErrBusyChannelCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0027, - onReportThreadNetworkDiagnosticsRxTotalCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0028, - onReportThreadNetworkDiagnosticsRxUnicastCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0029, - onReportThreadNetworkDiagnosticsRxBroadcastCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x002A, - onReportThreadNetworkDiagnosticsRxDataCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x002B, - onReportThreadNetworkDiagnosticsRxDataPollCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x002C, - onReportThreadNetworkDiagnosticsRxBeaconCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x002D, - onReportThreadNetworkDiagnosticsRxBeaconRequestCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x002E, - onReportThreadNetworkDiagnosticsRxOtherCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x002F, - onReportThreadNetworkDiagnosticsRxAddressFilteredCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0030, - onReportThreadNetworkDiagnosticsRxDestAddrFilteredCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0031, - onReportThreadNetworkDiagnosticsRxDuplicatedCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0032, - onReportThreadNetworkDiagnosticsRxErrNoFrameCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0033, - onReportThreadNetworkDiagnosticsRxErrUnknownNeighborCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0034, - onReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0035, - onReportThreadNetworkDiagnosticsRxErrSecCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0036, - onReportThreadNetworkDiagnosticsRxErrFcsCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0037, - onReportThreadNetworkDiagnosticsRxErrOtherCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0038, - onReportThreadNetworkDiagnosticsActiveTimestampCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x0039, - onReportThreadNetworkDiagnosticsPendingTimestampCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x003A, - onReportThreadNetworkDiagnosticsDelayCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0x003C, - onReportThreadNetworkDiagnosticsChannelMaskCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0035, 0xFFFD, - onReportThreadNetworkDiagnosticsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0503, 0x0000, onReportWakeOnLanWakeOnLanMacAddressCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0503, 0xFFFD, onReportWakeOnLanClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0000, onReportWiFiNetworkDiagnosticsBssidCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0001, - onReportWiFiNetworkDiagnosticsSecurityTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0002, - onReportWiFiNetworkDiagnosticsWiFiVersionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0003, - onReportWiFiNetworkDiagnosticsChannelNumberCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0004, onReportWiFiNetworkDiagnosticsRssiCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0005, - onReportWiFiNetworkDiagnosticsBeaconLostCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0006, - onReportWiFiNetworkDiagnosticsBeaconRxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0007, - onReportWiFiNetworkDiagnosticsPacketMulticastRxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0008, - onReportWiFiNetworkDiagnosticsPacketMulticastTxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x0009, - onReportWiFiNetworkDiagnosticsPacketUnicastRxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x000A, - onReportWiFiNetworkDiagnosticsPacketUnicastTxCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x000B, - onReportWiFiNetworkDiagnosticsCurrentMaxRateCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0x000C, - onReportWiFiNetworkDiagnosticsOverrunCountCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0036, 0xFFFD, - onReportWiFiNetworkDiagnosticsClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0000, onReportWindowCoveringTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0003, - onReportWindowCoveringCurrentPositionLiftCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0004, - onReportWindowCoveringCurrentPositionTiltCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0007, onReportWindowCoveringConfigStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0008, - onReportWindowCoveringCurrentPositionLiftPercentageCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0009, - onReportWindowCoveringCurrentPositionTiltPercentageCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x000A, - onReportWindowCoveringOperationalStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x000B, - onReportWindowCoveringTargetPositionLiftPercent100thsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x000C, - onReportWindowCoveringTargetPositionTiltPercent100thsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x000D, onReportWindowCoveringEndProductTypeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x000E, - onReportWindowCoveringCurrentPositionLiftPercent100thsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x000F, - onReportWindowCoveringCurrentPositionTiltPercent100thsCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0010, - onReportWindowCoveringInstalledOpenLimitLiftCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0011, - onReportWindowCoveringInstalledClosedLimitLiftCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0012, - onReportWindowCoveringInstalledOpenLimitTiltCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0013, - onReportWindowCoveringInstalledClosedLimitTiltCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x0017, onReportWindowCoveringModeCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0x001A, onReportWindowCoveringSafetyStatusCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0xFFFC, onReportWindowCoveringFeatureMapCallback->Cancel(), - BasicAttributeFilter); - callbacksMgr.AddReportCallback(remoteId, endpointId, 0x0102, 0xFFFD, - onReportWindowCoveringClusterRevisionCallback->Cancel(), - BasicAttributeFilter); - } - -private: - chip::Callback::Callback * - onReportAccountLoginClusterRevisionCallback = - new chip::Callback::Callback( - ReadAccountLoginClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportAdministratorCommissioningClusterRevisionCallback = - new chip::Callback::Callback( - ReadAdministratorCommissioningClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicVendorNameCallback = - new chip::Callback::Callback( - ReadApplicationBasicVendorName::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicVendorIdCallback = - new chip::Callback::Callback( - ReadApplicationBasicVendorId::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicApplicationNameCallback = - new chip::Callback::Callback( - ReadApplicationBasicApplicationName::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicProductIdCallback = - new chip::Callback::Callback( - ReadApplicationBasicProductId::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicApplicationStatusCallback = - new chip::Callback::Callback( - ReadApplicationBasicApplicationStatus::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicApplicationVersionCallback = - new chip::Callback::Callback( - ReadApplicationBasicApplicationVersion::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationBasicClusterRevisionCallback = - new chip::Callback::Callback( - ReadApplicationBasicClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportApplicationLauncherClusterRevisionCallback = - new chip::Callback::Callback( - ReadApplicationLauncherClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportAudioOutputCurrentAudioOutputCallback = - new chip::Callback::Callback( - ReadAudioOutputCurrentAudioOutput::OnAttributeResponse, this); - chip::Callback::Callback * - onReportAudioOutputClusterRevisionCallback = - new chip::Callback::Callback( - ReadAudioOutputClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBarrierControlBarrierMovingStateCallback = - new chip::Callback::Callback( - ReadBarrierControlBarrierMovingState::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBarrierControlBarrierSafetyStatusCallback = - new chip::Callback::Callback( - ReadBarrierControlBarrierSafetyStatus::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBarrierControlBarrierCapabilitiesCallback = - new chip::Callback::Callback( - ReadBarrierControlBarrierCapabilities::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBarrierControlBarrierPositionCallback = - new chip::Callback::Callback( - ReadBarrierControlBarrierPosition::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBarrierControlClusterRevisionCallback = - new chip::Callback::Callback( - ReadBarrierControlClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBasicInteractionModelVersionCallback = - new chip::Callback::Callback( - ReadBasicInteractionModelVersion::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicVendorNameCallback = - new chip::Callback::Callback(ReadBasicVendorName::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicVendorIDCallback = - new chip::Callback::Callback(ReadBasicVendorID::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicProductNameCallback = - new chip::Callback::Callback( - ReadBasicProductName::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicProductIDCallback = - new chip::Callback::Callback(ReadBasicProductID::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicNodeLabelCallback = - new chip::Callback::Callback(ReadBasicNodeLabel::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicLocationCallback = - new chip::Callback::Callback(ReadBasicLocation::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicHardwareVersionCallback = - new chip::Callback::Callback( - ReadBasicHardwareVersion::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBasicHardwareVersionStringCallback = - new chip::Callback::Callback( - ReadBasicHardwareVersionString::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicSoftwareVersionCallback = - new chip::Callback::Callback( - ReadBasicSoftwareVersion::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBasicSoftwareVersionStringCallback = - new chip::Callback::Callback( - ReadBasicSoftwareVersionString::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicManufacturingDateCallback = - new chip::Callback::Callback( - ReadBasicManufacturingDate::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicPartNumberCallback = - new chip::Callback::Callback(ReadBasicPartNumber::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicProductURLCallback = - new chip::Callback::Callback(ReadBasicProductURL::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicProductLabelCallback = - new chip::Callback::Callback( - ReadBasicProductLabel::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicSerialNumberCallback = - new chip::Callback::Callback( - ReadBasicSerialNumber::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBasicLocalConfigDisabledCallback = - new chip::Callback::Callback( - ReadBasicLocalConfigDisabled::OnAttributeResponse, this); - chip::Callback::Callback * onReportBasicReachableCallback = - new chip::Callback::Callback(ReadBasicReachable::OnAttributeResponse, - this); - chip::Callback::Callback * onReportBasicClusterRevisionCallback = - new chip::Callback::Callback( - ReadBasicClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBinaryInputBasicOutOfServiceCallback = - new chip::Callback::Callback( - ReadBinaryInputBasicOutOfService::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBinaryInputBasicPresentValueCallback = - new chip::Callback::Callback( - ReadBinaryInputBasicPresentValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBinaryInputBasicStatusFlagsCallback = - new chip::Callback::Callback( - ReadBinaryInputBasicStatusFlags::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBinaryInputBasicClusterRevisionCallback = - new chip::Callback::Callback( - ReadBinaryInputBasicClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportBindingClusterRevisionCallback = - new chip::Callback::Callback( - ReadBindingClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportBooleanStateStateValueCallback = - new chip::Callback::Callback( - ReadBooleanStateStateValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBooleanStateClusterRevisionCallback = - new chip::Callback::Callback( - ReadBooleanStateClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportBridgedActionsSetupUrlCallback = - new chip::Callback::Callback( - ReadBridgedActionsSetupUrl::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBridgedActionsClusterRevisionCallback = - new chip::Callback::Callback( - ReadBridgedActionsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportBridgedDeviceBasicClusterRevisionCallback = - new chip::Callback::Callback( - ReadBridgedDeviceBasicClusterRevision::OnAttributeResponse, this); -<<<<<<< HEAD -======= - chip::Callback::Callback * onReportChannelClusterRevisionCallback = - new chip::Callback::Callback( - ReadChannelClusterRevision::OnAttributeResponse, this); ->>>>>>> 5fcfb9c5f (Zap regen) - chip::Callback::Callback * onReportColorControlCurrentHueCallback = - new chip::Callback::Callback( - ReadColorControlCurrentHue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlCurrentSaturationCallback = - new chip::Callback::Callback( - ReadColorControlCurrentSaturation::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlRemainingTimeCallback = - new chip::Callback::Callback( - ReadColorControlRemainingTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCurrentXCallback = - new chip::Callback::Callback( - ReadColorControlCurrentX::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlCurrentYCallback = - new chip::Callback::Callback( - ReadColorControlCurrentY::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlDriftCompensationCallback = - new chip::Callback::Callback( - ReadColorControlDriftCompensation::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlCompensationTextCallback = - new chip::Callback::Callback( - ReadColorControlCompensationText::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorTemperatureCallback = - new chip::Callback::Callback( - ReadColorControlColorTemperature::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlColorModeCallback = - new chip::Callback::Callback( - ReadColorControlColorMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorControlOptionsCallback = - new chip::Callback::Callback( - ReadColorControlColorControlOptions::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlNumberOfPrimariesCallback = - new chip::Callback::Callback( - ReadColorControlNumberOfPrimaries::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary1XCallback = - new chip::Callback::Callback( - ReadColorControlPrimary1X::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary1YCallback = - new chip::Callback::Callback( - ReadColorControlPrimary1Y::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlPrimary1IntensityCallback = - new chip::Callback::Callback( - ReadColorControlPrimary1Intensity::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary2XCallback = - new chip::Callback::Callback( - ReadColorControlPrimary2X::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary2YCallback = - new chip::Callback::Callback( - ReadColorControlPrimary2Y::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlPrimary2IntensityCallback = - new chip::Callback::Callback( - ReadColorControlPrimary2Intensity::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary3XCallback = - new chip::Callback::Callback( - ReadColorControlPrimary3X::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary3YCallback = - new chip::Callback::Callback( - ReadColorControlPrimary3Y::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlPrimary3IntensityCallback = - new chip::Callback::Callback( - ReadColorControlPrimary3Intensity::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary4XCallback = - new chip::Callback::Callback( - ReadColorControlPrimary4X::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary4YCallback = - new chip::Callback::Callback( - ReadColorControlPrimary4Y::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlPrimary4IntensityCallback = - new chip::Callback::Callback( - ReadColorControlPrimary4Intensity::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary5XCallback = - new chip::Callback::Callback( - ReadColorControlPrimary5X::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary5YCallback = - new chip::Callback::Callback( - ReadColorControlPrimary5Y::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlPrimary5IntensityCallback = - new chip::Callback::Callback( - ReadColorControlPrimary5Intensity::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary6XCallback = - new chip::Callback::Callback( - ReadColorControlPrimary6X::OnAttributeResponse, this); - chip::Callback::Callback * onReportColorControlPrimary6YCallback = - new chip::Callback::Callback( - ReadColorControlPrimary6Y::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlPrimary6IntensityCallback = - new chip::Callback::Callback( - ReadColorControlPrimary6Intensity::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlWhitePointXCallback = - new chip::Callback::Callback( - ReadColorControlWhitePointX::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlWhitePointYCallback = - new chip::Callback::Callback( - ReadColorControlWhitePointY::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointRXCallback = - new chip::Callback::Callback( - ReadColorControlColorPointRX::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointRYCallback = - new chip::Callback::Callback( - ReadColorControlColorPointRY::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointRIntensityCallback = - new chip::Callback::Callback( - ReadColorControlColorPointRIntensity::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointGXCallback = - new chip::Callback::Callback( - ReadColorControlColorPointGX::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointGYCallback = - new chip::Callback::Callback( - ReadColorControlColorPointGY::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointGIntensityCallback = - new chip::Callback::Callback( - ReadColorControlColorPointGIntensity::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointBXCallback = - new chip::Callback::Callback( - ReadColorControlColorPointBX::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointBYCallback = - new chip::Callback::Callback( - ReadColorControlColorPointBY::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorPointBIntensityCallback = - new chip::Callback::Callback( - ReadColorControlColorPointBIntensity::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlEnhancedCurrentHueCallback = - new chip::Callback::Callback( - ReadColorControlEnhancedCurrentHue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlEnhancedColorModeCallback = - new chip::Callback::Callback( - ReadColorControlEnhancedColorMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorLoopActiveCallback = - new chip::Callback::Callback( - ReadColorControlColorLoopActive::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorLoopDirectionCallback = - new chip::Callback::Callback( - ReadColorControlColorLoopDirection::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorLoopTimeCallback = - new chip::Callback::Callback( - ReadColorControlColorLoopTime::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorLoopStartEnhancedHueCallback = - new chip::Callback::Callback( - ReadColorControlColorLoopStartEnhancedHue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorLoopStoredEnhancedHueCallback = - new chip::Callback::Callback( - ReadColorControlColorLoopStoredEnhancedHue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorCapabilitiesCallback = - new chip::Callback::Callback( - ReadColorControlColorCapabilities::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorTempPhysicalMinCallback = - new chip::Callback::Callback( - ReadColorControlColorTempPhysicalMin::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlColorTempPhysicalMaxCallback = - new chip::Callback::Callback( - ReadColorControlColorTempPhysicalMax::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlCoupleColorTempToLevelMinMiredsCallback = - new chip::Callback::Callback( - ReadColorControlCoupleColorTempToLevelMinMireds::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlStartUpColorTemperatureMiredsCallback = - new chip::Callback::Callback( - ReadColorControlStartUpColorTemperatureMireds::OnAttributeResponse, this); - chip::Callback::Callback * - onReportColorControlClusterRevisionCallback = - new chip::Callback::Callback( - ReadColorControlClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportContentLauncherSupportedStreamingProtocolsCallback = - new chip::Callback::Callback( - ReadContentLauncherSupportedStreamingProtocols::OnAttributeResponse, this); - chip::Callback::Callback * - onReportContentLauncherClusterRevisionCallback = - new chip::Callback::Callback( - ReadContentLauncherClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportDescriptorClusterRevisionCallback = - new chip::Callback::Callback( - ReadDescriptorClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockLockStateCallback = - new chip::Callback::Callback( - ReadDoorLockLockState::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockLockTypeCallback = - new chip::Callback::Callback( - ReadDoorLockLockType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportDoorLockActuatorEnabledCallback = - new chip::Callback::Callback( - ReadDoorLockActuatorEnabled::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockDoorStateCallback = - new chip::Callback::Callback( - ReadDoorLockDoorState::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockLanguageCallback = - new chip::Callback::Callback( - ReadDoorLockLanguage::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockAutoRelockTimeCallback = - new chip::Callback::Callback( - ReadDoorLockAutoRelockTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockSoundVolumeCallback = - new chip::Callback::Callback( - ReadDoorLockSoundVolume::OnAttributeResponse, this); - chip::Callback::Callback * onReportDoorLockOperatingModeCallback = - new chip::Callback::Callback( - ReadDoorLockOperatingMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportDoorLockEnableOneTouchLockingCallback = - new chip::Callback::Callback( - ReadDoorLockEnableOneTouchLocking::OnAttributeResponse, this); - chip::Callback::Callback * - onReportDoorLockEnablePrivacyModeButtonCallback = - new chip::Callback::Callback( - ReadDoorLockEnablePrivacyModeButton::OnAttributeResponse, this); - chip::Callback::Callback * - onReportDoorLockWrongCodeEntryLimitCallback = - new chip::Callback::Callback( - ReadDoorLockWrongCodeEntryLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportDoorLockClusterRevisionCallback = - new chip::Callback::Callback( - ReadDoorLockClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementMeasurementTypeCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementMeasurementType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementTotalActivePowerCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementTotalActivePower::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementRmsVoltageCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementRmsVoltage::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementRmsVoltageMinCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementRmsVoltageMin::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementRmsVoltageMaxCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementRmsVoltageMax::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementRmsCurrentCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementRmsCurrent::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementRmsCurrentMinCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementRmsCurrentMin::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementRmsCurrentMaxCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementRmsCurrentMax::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementActivePowerCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementActivePower::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementActivePowerMinCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementActivePowerMin::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementActivePowerMaxCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementActivePowerMax::OnAttributeResponse, this); - chip::Callback::Callback * - onReportElectricalMeasurementClusterRevisionCallback = - new chip::Callback::Callback( - ReadElectricalMeasurementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsPHYRateCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsPHYRate::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsFullDuplexCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsFullDuplex::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsPacketRxCountCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsPacketRxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsPacketTxCountCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsPacketTxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsTxErrCountCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsTxErrCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsCollisionCountCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsCollisionCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsOverrunCountCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsOverrunCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsCarrierDetectCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsCarrierDetect::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsTimeSinceResetCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsTimeSinceReset::OnAttributeResponse, this); - chip::Callback::Callback * - onReportEthernetNetworkDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback( - ReadEthernetNetworkDiagnosticsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportFixedLabelClusterRevisionCallback = - new chip::Callback::Callback( - ReadFixedLabelClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportFlowMeasurementMeasuredValueCallback = - new chip::Callback::Callback( - ReadFlowMeasurementMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportFlowMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback( - ReadFlowMeasurementMinMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportFlowMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback( - ReadFlowMeasurementMaxMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportFlowMeasurementToleranceCallback = - new chip::Callback::Callback( - ReadFlowMeasurementTolerance::OnAttributeResponse, this); - chip::Callback::Callback * - onReportFlowMeasurementClusterRevisionCallback = - new chip::Callback::Callback( - ReadFlowMeasurementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralCommissioningBreadcrumbCallback = - new chip::Callback::Callback( - ReadGeneralCommissioningBreadcrumb::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralCommissioningClusterRevisionCallback = - new chip::Callback::Callback( - ReadGeneralCommissioningClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralDiagnosticsRebootCountCallback = - new chip::Callback::Callback( - ReadGeneralDiagnosticsRebootCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralDiagnosticsUpTimeCallback = - new chip::Callback::Callback( - ReadGeneralDiagnosticsUpTime::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralDiagnosticsTotalOperationalHoursCallback = - new chip::Callback::Callback( - ReadGeneralDiagnosticsTotalOperationalHours::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralDiagnosticsBootReasonsCallback = - new chip::Callback::Callback( - ReadGeneralDiagnosticsBootReasons::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGeneralDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback( - ReadGeneralDiagnosticsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportGroupKeyManagementClusterRevisionCallback = - new chip::Callback::Callback( - ReadGroupKeyManagementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportGroupsNameSupportCallback = - new chip::Callback::Callback( - ReadGroupsNameSupport::OnAttributeResponse, this); - chip::Callback::Callback * onReportGroupsClusterRevisionCallback = - new chip::Callback::Callback( - ReadGroupsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportIdentifyIdentifyTimeCallback = - new chip::Callback::Callback( - ReadIdentifyIdentifyTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportIdentifyIdentifyTypeCallback = - new chip::Callback::Callback( - ReadIdentifyIdentifyType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIdentifyClusterRevisionCallback = - new chip::Callback::Callback( - ReadIdentifyClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIlluminanceMeasurementMeasuredValueCallback = - new chip::Callback::Callback( - ReadIlluminanceMeasurementMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIlluminanceMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback( - ReadIlluminanceMeasurementMinMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIlluminanceMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback( - ReadIlluminanceMeasurementMaxMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIlluminanceMeasurementToleranceCallback = - new chip::Callback::Callback( - ReadIlluminanceMeasurementTolerance::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIlluminanceMeasurementLightSensorTypeCallback = - new chip::Callback::Callback( - ReadIlluminanceMeasurementLightSensorType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportIlluminanceMeasurementClusterRevisionCallback = - new chip::Callback::Callback( - ReadIlluminanceMeasurementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportKeypadInputClusterRevisionCallback = - new chip::Callback::Callback( - ReadKeypadInputClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlCurrentLevelCallback = - new chip::Callback::Callback( - ReadLevelControlCurrentLevel::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlRemainingTimeCallback = - new chip::Callback::Callback( - ReadLevelControlRemainingTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlMinLevelCallback = - new chip::Callback::Callback( - ReadLevelControlMinLevel::OnAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlMaxLevelCallback = - new chip::Callback::Callback( - ReadLevelControlMaxLevel::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlCurrentFrequencyCallback = - new chip::Callback::Callback( - ReadLevelControlCurrentFrequency::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlMinFrequencyCallback = - new chip::Callback::Callback( - ReadLevelControlMinFrequency::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlMaxFrequencyCallback = - new chip::Callback::Callback( - ReadLevelControlMaxFrequency::OnAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOptionsCallback = - new chip::Callback::Callback( - ReadLevelControlOptions::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlOnOffTransitionTimeCallback = - new chip::Callback::Callback( - ReadLevelControlOnOffTransitionTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportLevelControlOnLevelCallback = - new chip::Callback::Callback( - ReadLevelControlOnLevel::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlOnTransitionTimeCallback = - new chip::Callback::Callback( - ReadLevelControlOnTransitionTime::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlOffTransitionTimeCallback = - new chip::Callback::Callback( - ReadLevelControlOffTransitionTime::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlDefaultMoveRateCallback = - new chip::Callback::Callback( - ReadLevelControlDefaultMoveRate::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlStartUpCurrentLevelCallback = - new chip::Callback::Callback( - ReadLevelControlStartUpCurrentLevel::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLevelControlClusterRevisionCallback = - new chip::Callback::Callback( - ReadLevelControlClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportLowPowerClusterRevisionCallback = - new chip::Callback::Callback( - ReadLowPowerClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportMediaInputCurrentMediaInputCallback = - new chip::Callback::Callback( - ReadMediaInputCurrentMediaInput::OnAttributeResponse, this); - chip::Callback::Callback * - onReportMediaInputClusterRevisionCallback = - new chip::Callback::Callback( - ReadMediaInputClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportMediaPlaybackPlaybackStateCallback = - new chip::Callback::Callback( - ReadMediaPlaybackPlaybackState::OnAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackStartTimeCallback = - new chip::Callback::Callback( - ReadMediaPlaybackStartTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportMediaPlaybackDurationCallback = - new chip::Callback::Callback( - ReadMediaPlaybackDuration::OnAttributeResponse, this); - chip::Callback::Callback * - onReportMediaPlaybackSeekRangeEndCallback = - new chip::Callback::Callback( - ReadMediaPlaybackSeekRangeEnd::OnAttributeResponse, this); - chip::Callback::Callback * - onReportMediaPlaybackSeekRangeStartCallback = - new chip::Callback::Callback( - ReadMediaPlaybackSeekRangeStart::OnAttributeResponse, this); - chip::Callback::Callback * - onReportMediaPlaybackClusterRevisionCallback = - new chip::Callback::Callback( - ReadMediaPlaybackClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectCurrentModeCallback = - new chip::Callback::Callback( - ReadModeSelectCurrentMode::OnAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectOnModeCallback = - new chip::Callback::Callback( - ReadModeSelectOnMode::OnAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectStartUpModeCallback = - new chip::Callback::Callback( - ReadModeSelectStartUpMode::OnAttributeResponse, this); - chip::Callback::Callback * onReportModeSelectDescriptionCallback = - new chip::Callback::Callback( - ReadModeSelectDescription::OnAttributeResponse, this); - chip::Callback::Callback * - onReportModeSelectClusterRevisionCallback = - new chip::Callback::Callback( - ReadModeSelectClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportNetworkCommissioningFeatureMapCallback = - new chip::Callback::Callback( - ReadNetworkCommissioningFeatureMap::OnAttributeResponse, this); - chip::Callback::Callback * - onReportNetworkCommissioningClusterRevisionCallback = - new chip::Callback::Callback( - ReadNetworkCommissioningClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOtaSoftwareUpdateProviderClusterRevisionCallback = - new chip::Callback::Callback( - ReadOtaSoftwareUpdateProviderClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOtaSoftwareUpdateRequestorDefaultOtaProviderCallback = - new chip::Callback::Callback( - ReadOtaSoftwareUpdateRequestorDefaultOtaProvider::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOtaSoftwareUpdateRequestorUpdatePossibleCallback = - new chip::Callback::Callback( - ReadOtaSoftwareUpdateRequestorUpdatePossible::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOtaSoftwareUpdateRequestorClusterRevisionCallback = - new chip::Callback::Callback( - ReadOtaSoftwareUpdateRequestorClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOccupancySensingOccupancyCallback = - new chip::Callback::Callback( - ReadOccupancySensingOccupancy::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOccupancySensingOccupancySensorTypeCallback = - new chip::Callback::Callback( - ReadOccupancySensingOccupancySensorType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOccupancySensingOccupancySensorTypeBitmapCallback = - new chip::Callback::Callback( - ReadOccupancySensingOccupancySensorTypeBitmap::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOccupancySensingClusterRevisionCallback = - new chip::Callback::Callback( - ReadOccupancySensingClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportOnOffOnOffCallback = - new chip::Callback::Callback(ReadOnOffOnOff::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOnOffGlobalSceneControlCallback = - new chip::Callback::Callback( - ReadOnOffGlobalSceneControl::OnAttributeResponse, this); - chip::Callback::Callback * onReportOnOffOnTimeCallback = - new chip::Callback::Callback(ReadOnOffOnTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportOnOffOffWaitTimeCallback = - new chip::Callback::Callback( - ReadOnOffOffWaitTime::OnAttributeResponse, this); - chip::Callback::Callback * onReportOnOffStartUpOnOffCallback = - new chip::Callback::Callback( - ReadOnOffStartUpOnOff::OnAttributeResponse, this); - chip::Callback::Callback * onReportOnOffFeatureMapCallback = - new chip::Callback::Callback(ReadOnOffFeatureMap::OnAttributeResponse, - this); - chip::Callback::Callback * onReportOnOffClusterRevisionCallback = - new chip::Callback::Callback( - ReadOnOffClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOnOffSwitchConfigurationSwitchTypeCallback = - new chip::Callback::Callback( - ReadOnOffSwitchConfigurationSwitchType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOnOffSwitchConfigurationSwitchActionsCallback = - new chip::Callback::Callback( - ReadOnOffSwitchConfigurationSwitchActions::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOnOffSwitchConfigurationClusterRevisionCallback = - new chip::Callback::Callback( - ReadOnOffSwitchConfigurationClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOperationalCredentialsSupportedFabricsCallback = - new chip::Callback::Callback( - ReadOperationalCredentialsSupportedFabrics::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOperationalCredentialsCommissionedFabricsCallback = - new chip::Callback::Callback( - ReadOperationalCredentialsCommissionedFabrics::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOperationalCredentialsCurrentFabricIndexCallback = - new chip::Callback::Callback( - ReadOperationalCredentialsCurrentFabricIndex::OnAttributeResponse, this); - chip::Callback::Callback * - onReportOperationalCredentialsClusterRevisionCallback = - new chip::Callback::Callback( - ReadOperationalCredentialsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceStatusCallback = - new chip::Callback::Callback( - ReadPowerSourceStatus::OnAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceOrderCallback = - new chip::Callback::Callback( - ReadPowerSourceOrder::OnAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceDescriptionCallback = - new chip::Callback::Callback( - ReadPowerSourceDescription::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPowerSourceBatteryVoltageCallback = - new chip::Callback::Callback( - ReadPowerSourceBatteryVoltage::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPowerSourceBatteryPercentRemainingCallback = - new chip::Callback::Callback( - ReadPowerSourceBatteryPercentRemaining::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPowerSourceBatteryTimeRemainingCallback = - new chip::Callback::Callback( - ReadPowerSourceBatteryTimeRemaining::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPowerSourceBatteryChargeLevelCallback = - new chip::Callback::Callback( - ReadPowerSourceBatteryChargeLevel::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPowerSourceBatteryChargeStateCallback = - new chip::Callback::Callback( - ReadPowerSourceBatteryChargeState::OnAttributeResponse, this); - chip::Callback::Callback * onReportPowerSourceFeatureMapCallback = - new chip::Callback::Callback( - ReadPowerSourceFeatureMap::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPowerSourceClusterRevisionCallback = - new chip::Callback::Callback( - ReadPowerSourceClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPressureMeasurementMeasuredValueCallback = - new chip::Callback::Callback( - ReadPressureMeasurementMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPressureMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback( - ReadPressureMeasurementMinMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPressureMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback( - ReadPressureMeasurementMaxMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPressureMeasurementClusterRevisionCallback = - new chip::Callback::Callback( - ReadPressureMeasurementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxPressureCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxPressure::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxSpeedCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxSpeed::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxFlowCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxFlow::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMinConstPressureCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMinConstPressure::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxConstPressureCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxConstPressure::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMinCompPressureCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMinCompPressure::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxCompPressureCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxCompPressure::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMinConstSpeedCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMinConstSpeed::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxConstSpeedCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxConstSpeed::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMinConstFlowCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMinConstFlow::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxConstFlowCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxConstFlow::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMinConstTempCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMinConstTemp::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlMaxConstTempCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlMaxConstTemp::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlPumpStatusCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlPumpStatus::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlEffectiveOperationModeCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlEffectiveOperationMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlEffectiveControlModeCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlEffectiveControlMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlCapacityCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlCapacity::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlSpeedCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlSpeed::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlLifetimeRunningHoursCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlLifetimeRunningHours::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlPowerCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlPower::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlLifetimeEnergyConsumedCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlLifetimeEnergyConsumed::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlOperationModeCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlOperationMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlControlModeCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlControlMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlAlarmMaskCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlAlarmMask::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlFeatureMapCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlFeatureMap::OnAttributeResponse, this); - chip::Callback::Callback * - onReportPumpConfigurationAndControlClusterRevisionCallback = - new chip::Callback::Callback( - ReadPumpConfigurationAndControlClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportRelativeHumidityMeasurementMeasuredValueCallback = - new chip::Callback::Callback( - ReadRelativeHumidityMeasurementMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportRelativeHumidityMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback( - ReadRelativeHumidityMeasurementMinMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportRelativeHumidityMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback( - ReadRelativeHumidityMeasurementMaxMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportRelativeHumidityMeasurementToleranceCallback = - new chip::Callback::Callback( - ReadRelativeHumidityMeasurementTolerance::OnAttributeResponse, this); - chip::Callback::Callback * - onReportRelativeHumidityMeasurementClusterRevisionCallback = - new chip::Callback::Callback( - ReadRelativeHumidityMeasurementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportScenesSceneCountCallback = - new chip::Callback::Callback( - ReadScenesSceneCount::OnAttributeResponse, this); - chip::Callback::Callback * onReportScenesCurrentSceneCallback = - new chip::Callback::Callback( - ReadScenesCurrentScene::OnAttributeResponse, this); - chip::Callback::Callback * onReportScenesCurrentGroupCallback = - new chip::Callback::Callback( - ReadScenesCurrentGroup::OnAttributeResponse, this); - chip::Callback::Callback * onReportScenesSceneValidCallback = - new chip::Callback::Callback( - ReadScenesSceneValid::OnAttributeResponse, this); - chip::Callback::Callback * onReportScenesNameSupportCallback = - new chip::Callback::Callback( - ReadScenesNameSupport::OnAttributeResponse, this); - chip::Callback::Callback * onReportScenesClusterRevisionCallback = - new chip::Callback::Callback( - ReadScenesClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportSoftwareDiagnosticsCurrentHeapFreeCallback = - new chip::Callback::Callback( - ReadSoftwareDiagnosticsCurrentHeapFree::OnAttributeResponse, this); - chip::Callback::Callback * - onReportSoftwareDiagnosticsCurrentHeapUsedCallback = - new chip::Callback::Callback( - ReadSoftwareDiagnosticsCurrentHeapUsed::OnAttributeResponse, this); - chip::Callback::Callback * - onReportSoftwareDiagnosticsCurrentHeapHighWatermarkCallback = - new chip::Callback::Callback( - ReadSoftwareDiagnosticsCurrentHeapHighWatermark::OnAttributeResponse, this); - chip::Callback::Callback * - onReportSoftwareDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback( - ReadSoftwareDiagnosticsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportSwitchNumberOfPositionsCallback = - new chip::Callback::Callback( - ReadSwitchNumberOfPositions::OnAttributeResponse, this); - chip::Callback::Callback * onReportSwitchCurrentPositionCallback = - new chip::Callback::Callback( - ReadSwitchCurrentPosition::OnAttributeResponse, this); - chip::Callback::Callback * onReportSwitchMultiPressMaxCallback = - new chip::Callback::Callback( - ReadSwitchMultiPressMax::OnAttributeResponse, this); - chip::Callback::Callback * onReportSwitchFeatureMapCallback = - new chip::Callback::Callback( - ReadSwitchFeatureMap::OnAttributeResponse, this); - chip::Callback::Callback * onReportSwitchClusterRevisionCallback = - new chip::Callback::Callback( - ReadSwitchClusterRevision::OnAttributeResponse, this); -<<<<<<< HEAD - chip::Callback::Callback * - onReportTvChannelClusterRevisionCallback = - new chip::Callback::Callback( - ReadTvChannelClusterRevision::OnAttributeResponse, this); -======= ->>>>>>> 5fcfb9c5f (Zap regen) - chip::Callback::Callback * - onReportTargetNavigatorClusterRevisionCallback = - new chip::Callback::Callback( - ReadTargetNavigatorClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTemperatureMeasurementMeasuredValueCallback = - new chip::Callback::Callback( - ReadTemperatureMeasurementMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTemperatureMeasurementMinMeasuredValueCallback = - new chip::Callback::Callback( - ReadTemperatureMeasurementMinMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTemperatureMeasurementMaxMeasuredValueCallback = - new chip::Callback::Callback( - ReadTemperatureMeasurementMaxMeasuredValue::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTemperatureMeasurementToleranceCallback = - new chip::Callback::Callback( - ReadTemperatureMeasurementTolerance::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTemperatureMeasurementClusterRevisionCallback = - new chip::Callback::Callback( - ReadTemperatureMeasurementClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBooleanCallback = - new chip::Callback::Callback( - ReadTestClusterBoolean::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap8Callback = - new chip::Callback::Callback( - ReadTestClusterBitmap8::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap16Callback = - new chip::Callback::Callback( - ReadTestClusterBitmap16::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap32Callback = - new chip::Callback::Callback( - ReadTestClusterBitmap32::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterBitmap64Callback = - new chip::Callback::Callback( - ReadTestClusterBitmap64::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt8uCallback = - new chip::Callback::Callback( - ReadTestClusterInt8u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt16uCallback = - new chip::Callback::Callback( - ReadTestClusterInt16u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt24uCallback = - new chip::Callback::Callback( - ReadTestClusterInt24u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt32uCallback = - new chip::Callback::Callback( - ReadTestClusterInt32u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt40uCallback = - new chip::Callback::Callback( - ReadTestClusterInt40u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt48uCallback = - new chip::Callback::Callback( - ReadTestClusterInt48u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt56uCallback = - new chip::Callback::Callback( - ReadTestClusterInt56u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt64uCallback = - new chip::Callback::Callback( - ReadTestClusterInt64u::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt8sCallback = - new chip::Callback::Callback( - ReadTestClusterInt8s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt16sCallback = - new chip::Callback::Callback( - ReadTestClusterInt16s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt24sCallback = - new chip::Callback::Callback( - ReadTestClusterInt24s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt32sCallback = - new chip::Callback::Callback( - ReadTestClusterInt32s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt40sCallback = - new chip::Callback::Callback( - ReadTestClusterInt40s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt48sCallback = - new chip::Callback::Callback( - ReadTestClusterInt48s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt56sCallback = - new chip::Callback::Callback( - ReadTestClusterInt56s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterInt64sCallback = - new chip::Callback::Callback( - ReadTestClusterInt64s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEnum8Callback = - new chip::Callback::Callback( - ReadTestClusterEnum8::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEnum16Callback = - new chip::Callback::Callback( - ReadTestClusterEnum16::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterFloatSingleCallback = - new chip::Callback::Callback( - ReadTestClusterFloatSingle::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterFloatDoubleCallback = - new chip::Callback::Callback( - ReadTestClusterFloatDouble::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterOctetStringCallback = - new chip::Callback::Callback( - ReadTestClusterOctetString::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterLongOctetStringCallback = - new chip::Callback::Callback( - ReadTestClusterLongOctetString::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterCharStringCallback = - new chip::Callback::Callback( - ReadTestClusterCharString::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterLongCharStringCallback = - new chip::Callback::Callback( - ReadTestClusterLongCharString::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEpochUsCallback = - new chip::Callback::Callback( - ReadTestClusterEpochUs::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEpochSCallback = - new chip::Callback::Callback( - ReadTestClusterEpochS::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterVendorIdCallback = - new chip::Callback::Callback( - ReadTestClusterVendorId::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterEnumAttrCallback = - new chip::Callback::Callback( - ReadTestClusterEnumAttr::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterRangeRestrictedInt8uCallback = - new chip::Callback::Callback( - ReadTestClusterRangeRestrictedInt8u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterRangeRestrictedInt8sCallback = - new chip::Callback::Callback( - ReadTestClusterRangeRestrictedInt8s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterRangeRestrictedInt16uCallback = - new chip::Callback::Callback( - ReadTestClusterRangeRestrictedInt16u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterRangeRestrictedInt16sCallback = - new chip::Callback::Callback( - ReadTestClusterRangeRestrictedInt16s::OnAttributeResponse, this); - chip::Callback::Callback * onReportTestClusterUnsupportedCallback = - new chip::Callback::Callback( - ReadTestClusterUnsupported::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableBooleanCallback = - new chip::Callback::Callback( - ReadTestClusterNullableBoolean::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableBitmap8Callback = - new chip::Callback::Callback( - ReadTestClusterNullableBitmap8::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableBitmap16Callback = - new chip::Callback::Callback( - ReadTestClusterNullableBitmap16::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableBitmap32Callback = - new chip::Callback::Callback( - ReadTestClusterNullableBitmap32::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableBitmap64Callback = - new chip::Callback::Callback( - ReadTestClusterNullableBitmap64::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt8uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt8u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt16uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt16u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt24uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt24u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt32uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt32u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt40uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt40u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt48uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt48u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt56uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt56u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt64uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt64u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt8sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt8s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt16sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt16s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt24sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt24s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt32sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt32s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt40sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt40s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt48sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt48s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt56sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt56s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableInt64sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableInt64s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableEnum8Callback = - new chip::Callback::Callback( - ReadTestClusterNullableEnum8::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableEnum16Callback = - new chip::Callback::Callback( - ReadTestClusterNullableEnum16::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableFloatSingleCallback = - new chip::Callback::Callback( - ReadTestClusterNullableFloatSingle::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableFloatDoubleCallback = - new chip::Callback::Callback( - ReadTestClusterNullableFloatDouble::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableOctetStringCallback = - new chip::Callback::Callback( - ReadTestClusterNullableOctetString::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableCharStringCallback = - new chip::Callback::Callback( - ReadTestClusterNullableCharString::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableEnumAttrCallback = - new chip::Callback::Callback( - ReadTestClusterNullableEnumAttr::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableRangeRestrictedInt8uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableRangeRestrictedInt8u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableRangeRestrictedInt8sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableRangeRestrictedInt8s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableRangeRestrictedInt16uCallback = - new chip::Callback::Callback( - ReadTestClusterNullableRangeRestrictedInt16u::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterNullableRangeRestrictedInt16sCallback = - new chip::Callback::Callback( - ReadTestClusterNullableRangeRestrictedInt16s::OnAttributeResponse, this); - chip::Callback::Callback * - onReportTestClusterClusterRevisionCallback = - new chip::Callback::Callback( - ReadTestClusterClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatLocalTemperatureCallback = - new chip::Callback::Callback( - ReadThermostatLocalTemperature::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatAbsMinHeatSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatAbsMinHeatSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatAbsMaxHeatSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatAbsMaxHeatSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatAbsMinCoolSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatAbsMinCoolSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatAbsMaxCoolSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatAbsMaxCoolSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatOccupiedCoolingSetpointCallback = - new chip::Callback::Callback( - ReadThermostatOccupiedCoolingSetpoint::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatOccupiedHeatingSetpointCallback = - new chip::Callback::Callback( - ReadThermostatOccupiedHeatingSetpoint::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatMinHeatSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatMinHeatSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatMaxHeatSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatMaxHeatSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatMinCoolSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatMinCoolSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatMaxCoolSetpointLimitCallback = - new chip::Callback::Callback( - ReadThermostatMaxCoolSetpointLimit::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatMinSetpointDeadBandCallback = - new chip::Callback::Callback( - ReadThermostatMinSetpointDeadBand::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatControlSequenceOfOperationCallback = - new chip::Callback::Callback( - ReadThermostatControlSequenceOfOperation::OnAttributeResponse, this); - chip::Callback::Callback * onReportThermostatSystemModeCallback = - new chip::Callback::Callback( - ReadThermostatSystemMode::OnAttributeResponse, this); - chip::Callback::Callback * onReportThermostatStartOfWeekCallback = - new chip::Callback::Callback( - ReadThermostatStartOfWeek::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatNumberOfWeeklyTransitionsCallback = - new chip::Callback::Callback( - ReadThermostatNumberOfWeeklyTransitions::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatNumberOfDailyTransitionsCallback = - new chip::Callback::Callback( - ReadThermostatNumberOfDailyTransitions::OnAttributeResponse, this); - chip::Callback::Callback * onReportThermostatFeatureMapCallback = - new chip::Callback::Callback( - ReadThermostatFeatureMap::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatClusterRevisionCallback = - new chip::Callback::Callback( - ReadThermostatClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatUserInterfaceConfigurationTemperatureDisplayModeCallback = new chip::Callback::Callback( - ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatUserInterfaceConfigurationKeypadLockoutCallback = - new chip::Callback::Callback( - ReadThermostatUserInterfaceConfigurationKeypadLockout::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatUserInterfaceConfigurationScheduleProgrammingVisibilityCallback = new chip::Callback::Callback( - ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThermostatUserInterfaceConfigurationClusterRevisionCallback = - new chip::Callback::Callback( - ReadThermostatUserInterfaceConfigurationClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsChannelCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsChannel::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRoutingRoleCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRoutingRole::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsNetworkNameCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsNetworkName::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsPanIdCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsPanId::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsExtendedPanIdCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsExtendedPanId::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsMeshLocalPrefixCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsMeshLocalPrefix::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsOverrunCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsOverrunCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsPartitionIdCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsPartitionId::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsWeightingCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsWeighting::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsDataVersionCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsDataVersion::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsStableDataVersionCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsStableDataVersion::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsLeaderRouterIdCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsLeaderRouterId::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsDetachedRoleCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsDetachedRoleCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsChildRoleCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsChildRoleCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRouterRoleCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRouterRoleCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsLeaderRoleCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsLeaderRoleCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsAttachAttemptCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsAttachAttemptCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsPartitionIdChangeCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsPartitionIdChangeCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCountCallback = new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsParentChangeCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsParentChangeCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxTotalCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxTotalCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxUnicastCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxUnicastCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxBroadcastCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxBroadcastCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxAckRequestedCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxAckRequestedCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxAckedCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxAckedCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxNoAckRequestedCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxNoAckRequestedCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxDataCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxDataCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxDataPollCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxDataPollCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxBeaconCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxBeaconCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxBeaconRequestCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxBeaconRequestCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxOtherCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxOtherCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxRetryCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxRetryCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxErrCcaCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxErrCcaCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxErrAbortCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxErrAbortCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsTxErrBusyChannelCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsTxErrBusyChannelCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxTotalCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxTotalCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxUnicastCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxUnicastCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxBroadcastCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxBroadcastCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxDataCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxDataCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxDataPollCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxDataPollCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxBeaconCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxBeaconCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxBeaconRequestCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxBeaconRequestCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxOtherCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxOtherCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxAddressFilteredCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxAddressFilteredCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxDestAddrFilteredCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxDuplicatedCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxDuplicatedCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxErrNoFrameCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxErrNoFrameCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxErrUnknownNeighborCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxErrSecCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxErrSecCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxErrFcsCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxErrFcsCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsRxErrOtherCountCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsRxErrOtherCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsActiveTimestampCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsActiveTimestamp::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsPendingTimestampCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsPendingTimestamp::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsDelayCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsDelay::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsChannelMaskCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsChannelMask::OnAttributeResponse, this); - chip::Callback::Callback * - onReportThreadNetworkDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback( - ReadThreadNetworkDiagnosticsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWakeOnLanWakeOnLanMacAddressCallback = - new chip::Callback::Callback( - ReadWakeOnLanWakeOnLanMacAddress::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWakeOnLanClusterRevisionCallback = - new chip::Callback::Callback( - ReadWakeOnLanClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsBssidCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsBssid::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsSecurityTypeCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsSecurityType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsWiFiVersionCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsWiFiVersion::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsChannelNumberCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsChannelNumber::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsRssiCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsRssi::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsBeaconLostCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsBeaconLostCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsBeaconRxCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsBeaconRxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsPacketMulticastRxCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsPacketMulticastRxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsPacketMulticastTxCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsPacketMulticastTxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsPacketUnicastRxCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsPacketUnicastRxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsPacketUnicastTxCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsPacketUnicastTxCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsCurrentMaxRateCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsCurrentMaxRate::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsOverrunCountCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsOverrunCount::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWiFiNetworkDiagnosticsClusterRevisionCallback = - new chip::Callback::Callback( - ReadWiFiNetworkDiagnosticsClusterRevision::OnAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringTypeCallback = - new chip::Callback::Callback( - ReadWindowCoveringType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringCurrentPositionLiftCallback = - new chip::Callback::Callback( - ReadWindowCoveringCurrentPositionLift::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringCurrentPositionTiltCallback = - new chip::Callback::Callback( - ReadWindowCoveringCurrentPositionTilt::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringConfigStatusCallback = - new chip::Callback::Callback( - ReadWindowCoveringConfigStatus::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringCurrentPositionLiftPercentageCallback = - new chip::Callback::Callback( - ReadWindowCoveringCurrentPositionLiftPercentage::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringCurrentPositionTiltPercentageCallback = - new chip::Callback::Callback( - ReadWindowCoveringCurrentPositionTiltPercentage::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringOperationalStatusCallback = - new chip::Callback::Callback( - ReadWindowCoveringOperationalStatus::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringTargetPositionLiftPercent100thsCallback = - new chip::Callback::Callback( - ReadWindowCoveringTargetPositionLiftPercent100ths::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringTargetPositionTiltPercent100thsCallback = - new chip::Callback::Callback( - ReadWindowCoveringTargetPositionTiltPercent100ths::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringEndProductTypeCallback = - new chip::Callback::Callback( - ReadWindowCoveringEndProductType::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringCurrentPositionLiftPercent100thsCallback = - new chip::Callback::Callback( - ReadWindowCoveringCurrentPositionLiftPercent100ths::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringCurrentPositionTiltPercent100thsCallback = - new chip::Callback::Callback( - ReadWindowCoveringCurrentPositionTiltPercent100ths::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringInstalledOpenLimitLiftCallback = - new chip::Callback::Callback( - ReadWindowCoveringInstalledOpenLimitLift::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringInstalledClosedLimitLiftCallback = - new chip::Callback::Callback( - ReadWindowCoveringInstalledClosedLimitLift::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringInstalledOpenLimitTiltCallback = - new chip::Callback::Callback( - ReadWindowCoveringInstalledOpenLimitTilt::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringInstalledClosedLimitTiltCallback = - new chip::Callback::Callback( - ReadWindowCoveringInstalledClosedLimitTilt::OnAttributeResponse, this); - chip::Callback::Callback * onReportWindowCoveringModeCallback = - new chip::Callback::Callback( - ReadWindowCoveringMode::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringSafetyStatusCallback = - new chip::Callback::Callback( - ReadWindowCoveringSafetyStatus::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringFeatureMapCallback = - new chip::Callback::Callback( - ReadWindowCoveringFeatureMap::OnAttributeResponse, this); - chip::Callback::Callback * - onReportWindowCoveringClusterRevisionCallback = - new chip::Callback::Callback( - ReadWindowCoveringClusterRevision::OnAttributeResponse, this); -}; - -void registerCommandsReporting(Commands & commands) -{ - const char * clusterName = "Reporting"; - - commands_list clusterCommands = { - make_unique(), - }; - - commands.Register(clusterName, clusterCommands); -} diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp index 9b962a3e455680..9ec6e07c5e802c 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.cpp @@ -1443,24 +1443,6 @@ CHIP_ERROR ChannelCluster::SkipChannel(Callback::Cancelable * onSuccessCallback, return err; } -// Channel Cluster Attributes -CHIP_ERROR ChannelCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Globals::Attributes::ClusterRevision::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR ChannelCluster::ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Globals::Attributes::ClusterRevision::Id, onReportCallback, - BasicAttributeFilter); -} - // ColorControl Cluster Commands CHIP_ERROR ColorControlCluster::ColorLoopSet(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t updateFlags, uint8_t action, uint8_t direction, uint16_t time, @@ -6010,133 +5992,6 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ResetWatermarks(Callback::Cancelable * on // Switch Cluster Commands -// TvChannel Cluster Commands -CHIP_ERROR TvChannelCluster::ChangeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, - chip::CharSpan match) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVWriter * writer = nullptr; - uint8_t argSeqNumber = 0; - - // Used when encoding non-empty command. Suppress error message when encoding empty commands. - (void) writer; - (void) argSeqNumber; - - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TvChannel::Commands::ChangeChannel::Id, - (app::CommandPathFlags::kEndpointIdValid) }; - - CommandSenderHandle sender( - Platform::New(mDevice->GetInteractionModelDelegate(), mDevice->GetExchangeManager())); - - VerifyOrReturnError(sender != nullptr, CHIP_ERROR_NO_MEMORY); - - SuccessOrExit(err = sender->PrepareCommand(cmdParams)); - - VerifyOrExit((writer = sender->GetCommandDataIBTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE); - // match: charString - SuccessOrExit(err = writer->PutString(TLV::ContextTag(argSeqNumber++), match)); - - SuccessOrExit(err = sender->FinishCommand()); - - // #6308: This is a temporary solution before we fully support IM on application side and should be replaced by IMDelegate. - mDevice->AddIMResponseHandler(sender.get(), onSuccessCallback, onFailureCallback); - - SuccessOrExit(err = mDevice->SendCommands(sender.get())); - - // We have successfully sent the command, and the callback handler will be responsible to free the object, release the object - // now. - sender.release(); -exit: - return err; -} - -CHIP_ERROR TvChannelCluster::ChangeChannelByNumber(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t majorNumber, - uint16_t minorNumber) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVWriter * writer = nullptr; - uint8_t argSeqNumber = 0; - - // Used when encoding non-empty command. Suppress error message when encoding empty commands. - (void) writer; - (void) argSeqNumber; - - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TvChannel::Commands::ChangeChannelByNumber::Id, - (app::CommandPathFlags::kEndpointIdValid) }; - - CommandSenderHandle sender( - Platform::New(mDevice->GetInteractionModelDelegate(), mDevice->GetExchangeManager())); - - VerifyOrReturnError(sender != nullptr, CHIP_ERROR_NO_MEMORY); - - SuccessOrExit(err = sender->PrepareCommand(cmdParams)); - - VerifyOrExit((writer = sender->GetCommandDataIBTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE); - // majorNumber: int16u - SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), majorNumber)); - // minorNumber: int16u - SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), minorNumber)); - - SuccessOrExit(err = sender->FinishCommand()); - - // #6308: This is a temporary solution before we fully support IM on application side and should be replaced by IMDelegate. - mDevice->AddIMResponseHandler(sender.get(), onSuccessCallback, onFailureCallback); - - SuccessOrExit(err = mDevice->SendCommands(sender.get())); - - // We have successfully sent the command, and the callback handler will be responsible to free the object, release the object - // now. - sender.release(); -exit: - return err; -} - -CHIP_ERROR TvChannelCluster::SkipChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, - uint16_t count) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVWriter * writer = nullptr; - uint8_t argSeqNumber = 0; - - // Used when encoding non-empty command. Suppress error message when encoding empty commands. - (void) writer; - (void) argSeqNumber; - - VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - - app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TvChannel::Commands::SkipChannel::Id, - (app::CommandPathFlags::kEndpointIdValid) }; - - CommandSenderHandle sender( - Platform::New(mDevice->GetInteractionModelDelegate(), mDevice->GetExchangeManager())); - - VerifyOrReturnError(sender != nullptr, CHIP_ERROR_NO_MEMORY); - - SuccessOrExit(err = sender->PrepareCommand(cmdParams)); - - VerifyOrExit((writer = sender->GetCommandDataIBTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE); - // count: int16u - SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), count)); - - SuccessOrExit(err = sender->FinishCommand()); - - // #6308: This is a temporary solution before we fully support IM on application side and should be replaced by IMDelegate. - mDevice->AddIMResponseHandler(sender.get(), onSuccessCallback, onFailureCallback); - - SuccessOrExit(err = mDevice->SendCommands(sender.get())); - - // We have successfully sent the command, and the callback handler will be responsible to free the object, release the object - // now. - sender.release(); -exit: - return err; -} - // TargetNavigator Cluster Commands CHIP_ERROR TargetNavigatorCluster::NavigateTarget(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t target, chip::CharSpan data) @@ -6774,7 +6629,6 @@ CHIP_ERROR TestClusterCluster::TestSimpleOptionalArgumentRequest(Callback::Cance return err; } -<<<<<<< HEAD CHIP_ERROR TestClusterCluster::TestSpecific(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { CHIP_ERROR err = CHIP_NO_ERROR; @@ -6911,167 +6765,6 @@ CHIP_ERROR TestClusterCluster::TestUnknownCommand(Callback::Cancelable * onSucce CHIP_ERROR TestClusterCluster::TimedInvokeRequest(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) -======= -// SoftwareDiagnostics Cluster Attributes -CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeCurrentHeapFree(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, - uint16_t minInterval, uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = SoftwareDiagnostics::Attributes::CurrentHeapFree::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeCurrentHeapFree(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(SoftwareDiagnostics::Attributes::CurrentHeapFree::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeCurrentHeapUsed(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, - uint16_t minInterval, uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = SoftwareDiagnostics::Attributes::CurrentHeapUsed::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeCurrentHeapUsed(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(SoftwareDiagnostics::Attributes::CurrentHeapUsed::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, - uint16_t minInterval, uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeCurrentHeapHighWatermark(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, - uint16_t minInterval, uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Globals::Attributes::ClusterRevision::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SoftwareDiagnosticsCluster::ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Globals::Attributes::ClusterRevision::Id, onReportCallback, - BasicAttributeFilter); -} - -// Switch Cluster Commands -// Switch Cluster Attributes -CHIP_ERROR SwitchCluster::SubscribeAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Switch::Attributes::NumberOfPositions::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SwitchCluster::ReportAttributeNumberOfPositions(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Switch::Attributes::NumberOfPositions::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SwitchCluster::SubscribeAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Switch::Attributes::CurrentPosition::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SwitchCluster::ReportAttributeCurrentPosition(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Switch::Attributes::CurrentPosition::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SwitchCluster::SubscribeAttributeMultiPressMax(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Switch::Attributes::MultiPressMax::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SwitchCluster::ReportAttributeMultiPressMax(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Switch::Attributes::MultiPressMax::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SwitchCluster::SubscribeAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Globals::Attributes::FeatureMap::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SwitchCluster::ReportAttributeFeatureMap(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Globals::Attributes::FeatureMap::Id, onReportCallback, - BasicAttributeFilter); -} - -CHIP_ERROR SwitchCluster::SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint16_t minInterval, - uint16_t maxInterval) -{ - chip::app::AttributePathParams attributePath; - attributePath.mEndpointId = mEndpoint; - attributePath.mClusterId = mClusterId; - attributePath.mAttributeId = Globals::Attributes::ClusterRevision::Id; - return mDevice->SendSubscribeAttributeRequest(attributePath, minInterval, maxInterval, onSuccessCallback, onFailureCallback); -} - -CHIP_ERROR SwitchCluster::ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback) -{ - return RequestAttributeReporting(Globals::Attributes::ClusterRevision::Id, onReportCallback, - BasicAttributeFilter); -} - -// TargetNavigator Cluster Commands -CHIP_ERROR TargetNavigatorCluster::NavigateTarget(Callback::Cancelable * onSuccessCallback, - Callback::Cancelable * onFailureCallback, uint8_t target, chip::CharSpan data) ->>>>>>> 5e91ccb80 (Zap regen) { CHIP_ERROR err = CHIP_NO_ERROR; TLV::TLVWriter * writer = nullptr; diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h index 3a6cc55b09aef2..9deb174f1d33fb 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClusters.h @@ -204,13 +204,6 @@ class DLL_EXPORT ChannelCluster : public ClusterBase CHIP_ERROR ChangeChannelByNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t majorNumber, uint16_t minorNumber); CHIP_ERROR SkipChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t count); - - // Cluster Attributes - CHIP_ERROR SubscribeAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, - uint16_t minInterval, uint16_t maxInterval); - CHIP_ERROR ReportAttributeClusterRevision(Callback::Cancelable * onReportCallback); - -private: }; class DLL_EXPORT ColorControlCluster : public ClusterBase @@ -693,23 +686,6 @@ class DLL_EXPORT SwitchCluster : public ClusterBase ~SwitchCluster() {} }; -<<<<<<< HEAD -class DLL_EXPORT TvChannelCluster : public ClusterBase -{ -public: - TvChannelCluster() : ClusterBase(app::Clusters::TvChannel::Id) {} - ~TvChannelCluster() {} - - // Cluster Commands - CHIP_ERROR ChangeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, - chip::CharSpan match); - CHIP_ERROR ChangeChannelByNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, - uint16_t majorNumber, uint16_t minorNumber); - CHIP_ERROR SkipChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint16_t count); -}; - -======= ->>>>>>> 5e91ccb80 (Zap regen) class DLL_EXPORT TargetNavigatorCluster : public ClusterBase { public: diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp index e4f1af2542fbd8..f20414c861613b 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp +++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.cpp @@ -185,6 +185,131 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * o } // OnOff Cluster Commands +CHIP_ERROR OnOffCluster::OffWithEffect(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, + uint8_t effectId, uint8_t effectVariant) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVWriter * writer = nullptr; + uint8_t argSeqNumber = 0; + + // Used when encoding non-empty command. Suppress error message when encoding empty commands. + (void) writer; + (void) argSeqNumber; + + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + + app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::OffWithEffect::Id, + (app::CommandPathFlags::kEndpointIdValid) }; + + CommandSenderHandle sender( + Platform::New(mDevice->GetInteractionModelDelegate(), mDevice->GetExchangeManager())); + + VerifyOrReturnError(sender != nullptr, CHIP_ERROR_NO_MEMORY); + + SuccessOrExit(err = sender->PrepareCommand(cmdParams)); + + VerifyOrExit((writer = sender->GetCommandDataIBTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE); + // effectId: onOffEffectIdentifier + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), effectId)); + // effectVariant: onOffDelayedAllOffEffectVariant + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), effectVariant)); + + SuccessOrExit(err = sender->FinishCommand()); + + // #6308: This is a temporary solution before we fully support IM on application side and should be replaced by IMDelegate. + mDevice->AddIMResponseHandler(sender.get(), onSuccessCallback, onFailureCallback); + + SuccessOrExit(err = mDevice->SendCommands(sender.get())); + + // We have successfully sent the command, and the callback handler will be responsible to free the object, release the object + // now. + sender.release(); +exit: + return err; +} + +CHIP_ERROR OnOffCluster::OnWithRecallGlobalScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVWriter * writer = nullptr; + uint8_t argSeqNumber = 0; + + // Used when encoding non-empty command. Suppress error message when encoding empty commands. + (void) writer; + (void) argSeqNumber; + + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + + app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::OnWithRecallGlobalScene::Id, + (app::CommandPathFlags::kEndpointIdValid) }; + + CommandSenderHandle sender( + Platform::New(mDevice->GetInteractionModelDelegate(), mDevice->GetExchangeManager())); + + VerifyOrReturnError(sender != nullptr, CHIP_ERROR_NO_MEMORY); + + SuccessOrExit(err = sender->PrepareCommand(cmdParams)); + + // Command takes no arguments. + + SuccessOrExit(err = sender->FinishCommand()); + + // #6308: This is a temporary solution before we fully support IM on application side and should be replaced by IMDelegate. + mDevice->AddIMResponseHandler(sender.get(), onSuccessCallback, onFailureCallback); + + SuccessOrExit(err = mDevice->SendCommands(sender.get())); + + // We have successfully sent the command, and the callback handler will be responsible to free the object, release the object + // now. + sender.release(); +exit: + return err; +} + +CHIP_ERROR OnOffCluster::OnWithTimedOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, + uint8_t onOffControl, uint16_t onTime, uint16_t offWaitTime) +{ + CHIP_ERROR err = CHIP_NO_ERROR; + TLV::TLVWriter * writer = nullptr; + uint8_t argSeqNumber = 0; + + // Used when encoding non-empty command. Suppress error message when encoding empty commands. + (void) writer; + (void) argSeqNumber; + + VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); + + app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::OnWithTimedOff::Id, + (app::CommandPathFlags::kEndpointIdValid) }; + + CommandSenderHandle sender( + Platform::New(mDevice->GetInteractionModelDelegate(), mDevice->GetExchangeManager())); + + VerifyOrReturnError(sender != nullptr, CHIP_ERROR_NO_MEMORY); + + SuccessOrExit(err = sender->PrepareCommand(cmdParams)); + + VerifyOrExit((writer = sender->GetCommandDataIBTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE); + // onOffControl: onOffControl + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), onOffControl)); + // onTime: int16u + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), onTime)); + // offWaitTime: int16u + SuccessOrExit(err = writer->Put(TLV::ContextTag(argSeqNumber++), offWaitTime)); + + SuccessOrExit(err = sender->FinishCommand()); + + // #6308: This is a temporary solution before we fully support IM on application side and should be replaced by IMDelegate. + mDevice->AddIMResponseHandler(sender.get(), onSuccessCallback, onFailureCallback); + + SuccessOrExit(err = mDevice->SendCommands(sender.get())); + + // We have successfully sent the command, and the callback handler will be responsible to free the object, release the object + // now. + sender.release(); +exit: + return err; +} } // namespace Controller } // namespace chip diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClusters.h b/zzz_generated/lighting-app/zap-generated/CHIPClusters.h index b676e14c0d9747..8e38f388090ab8 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClusters.h +++ b/zzz_generated/lighting-app/zap-generated/CHIPClusters.h @@ -52,6 +52,13 @@ class DLL_EXPORT OnOffCluster : public ClusterBase public: OnOffCluster() : ClusterBase(app::Clusters::OnOff::Id) {} ~OnOffCluster() {} + + // Cluster Commands + CHIP_ERROR OffWithEffect(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, uint8_t effectId, + uint8_t effectVariant); + CHIP_ERROR OnWithRecallGlobalScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback); + CHIP_ERROR OnWithTimedOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback, + uint8_t onOffControl, uint16_t onTime, uint16_t offWaitTime); }; } // namespace Controller diff --git a/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp b/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp index b12fb475dacee5..6885f0b059775a 100644 --- a/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp +++ b/zzz_generated/lighting-app/zap-generated/IMClusterCommandHandler.cpp @@ -911,15 +911,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OffWithEffect::Id: { - Commands::OffWithEffect::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOnOffClusterOffWithEffectCallback(apCommandObj, aCommandPath, commandData); - } - break; - } case Commands::On::Id: { Commands::On::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); @@ -929,24 +920,6 @@ void DispatchServerCommand(CommandHandler * apCommandObj, const ConcreteCommandP } break; } - case Commands::OnWithRecallGlobalScene::Id: { - Commands::OnWithRecallGlobalScene::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOnOffClusterOnWithRecallGlobalSceneCallback(apCommandObj, aCommandPath, commandData); - } - break; - } - case Commands::OnWithTimedOff::Id: { - Commands::OnWithTimedOff::DecodableType commandData; - TLVError = DataModel::Decode(aDataTlv, commandData); - if (TLVError == CHIP_NO_ERROR) - { - wasHandled = emberAfOnOffClusterOnWithTimedOffCallback(apCommandObj, aCommandPath, commandData); - } - break; - } case Commands::Toggle::Id: { Commands::Toggle::DecodableType commandData; TLVError = DataModel::Decode(aDataTlv, commandData); diff --git a/zzz_generated/tv-app/zap-generated/attribute-size.cpp b/zzz_generated/tv-app/zap-generated/attribute-size.cpp deleted file mode 100644 index 6007186b1d689f..00000000000000 --- a/zzz_generated/tv-app/zap-generated/attribute-size.cpp +++ /dev/null @@ -1,1022 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include -#include -#include -#include -#include -#include -#include - -using namespace chip; -using namespace chip::app::List; - -// The first 2 bytes specify the number of entries. A value of 0xFFFF means the list in invalid -// and data is undefined. -constexpr uint16_t kSizeLengthInBytes = 2u; - -void copyListMember(uint8_t * dest, uint8_t * src, bool write, uint16_t * offset, uint16_t length) -{ - if (write) - { - memmove(dest + *offset, src, length); - } - else - { - memmove(dest, src + *offset, length); - } - - *offset = static_cast(*offset + length); -} - -uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, bool write, uint8_t * dest, uint8_t * src, - int32_t index) -{ - if (index == -1) - { - memmove(dest, src, am->size); - return am->size; - } - - if (index == 0) - { - if (write) - { - // src is a pointer to native-endian uint16_t, dest is pointer to buffer that should hold little-endian value - emberAfCopyInt16u(dest, 0, *reinterpret_cast(src)); - } - else - { - // src is pointer to buffer holding little-endian value, dest is a pointer to native-endian uint16_t - *reinterpret_cast(dest) = emberAfGetInt16u(src, 0, kSizeLengthInBytes); - } - return kSizeLengthInBytes; - } - - if (!CanCastTo(index)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); - return 0; - } - - uint16_t entryLength = 0; - switch (clusterId) - { - case 0x050D: // Application Basic Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0007: // allowed vendor list - { - entryLength = 2; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // INT16U - break; - } - } - break; - } - case 0x050C: // Application Launcher Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // application launcher list - { - entryLength = 2; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // INT16U - break; - } - } - break; - } - case 0x050B: // Audio Output Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // audio output list - { - entryLength = 36; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _AudioOutputInfo - _AudioOutputInfo * entry = reinterpret_cast<_AudioOutputInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->index, write ? (uint8_t *) &entry->index : src, write, &entryOffset, - sizeof(entry->index)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->outputType, write ? (uint8_t *) &entry->outputType : src, write, - &entryOffset, sizeof(entry->outputType)); // AudioOutputType - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x050A: // Content Launcher Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // accept header list - { - entryOffset = GetByteSpanOffsetFromIndex(write ? dest : src, am->size, static_cast(index - 1)); - if (entryOffset == 0) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - - ByteSpan * acceptHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING - uint16_t acceptHeaderListRemainingSpace = static_cast(am->size - entryOffset); - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, acceptHeaderListRemainingSpace, acceptHeaderListSpan) - : ReadByteSpan(src + entryOffset, acceptHeaderListRemainingSpace, acceptHeaderListSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - - if (!CanCastTo(acceptHeaderListSpan->size())) - { - ChipLogError(Zcl, "Span size %zu is too large", acceptHeaderListSpan->size()); - return 0; - } - entryLength = static_cast(acceptHeaderListSpan->size()); - break; - } - } - break; - } - case 0x001D: // Descriptor Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // device list - { - entryLength = 6; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _DeviceType - _DeviceType * entry = reinterpret_cast<_DeviceType *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->type, write ? (uint8_t *) &entry->type : src, write, &entryOffset, - sizeof(entry->type)); // DEVTYPE_ID - copyListMember(write ? dest : (uint8_t *) &entry->revision, write ? (uint8_t *) &entry->revision : src, write, - &entryOffset, sizeof(entry->revision)); // INT16U - break; - } - case 0x0001: // server list - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // CLUSTER_ID - break; - } - case 0x0002: // client list - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // CLUSTER_ID - break; - } - case 0x0003: // parts list - { - entryLength = 2; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENDPOINT_NO - break; - } - } - break; - } - case 0x0030: // General Commissioning Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0001: // BasicCommissioningInfoList - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _BasicCommissioningInfoType - _BasicCommissioningInfoType * entry = reinterpret_cast<_BasicCommissioningInfoType *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->FailSafeExpiryLengthMs, - write ? (uint8_t *) &entry->FailSafeExpiryLengthMs : src, write, &entryOffset, - sizeof(entry->FailSafeExpiryLengthMs)); // INT32U - break; - } - } - break; - } - case 0x0033: // General Diagnostics Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // NetworkInterfaces - { - entryLength = 48; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _NetworkInterfaceType - _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - ByteSpan NameSpanStorage(Uint8::from_const_char(entry->Name.data()), entry->Name.size()); // CHAR_STRING - ByteSpan * NameSpan = &NameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - copyListMember(write ? dest : (uint8_t *) &entry->FabricConnected, write ? (uint8_t *) &entry->FabricConnected : src, - write, &entryOffset, sizeof(entry->FabricConnected)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv4, - write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv4 : src, write, &entryOffset, - sizeof(entry->OffPremiseServicesReachableIPv4)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, - write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, - sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) - : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 10); - copyListMember(write ? dest : (uint8_t *) &entry->Type, write ? (uint8_t *) &entry->Type : src, write, &entryOffset, - sizeof(entry->Type)); // InterfaceType - break; - } - case 0x0005: // ActiveHardwareFaults - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENUM8 - break; - } - case 0x0006: // ActiveRadioFaults - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENUM8 - break; - } - case 0x0007: // ActiveNetworkFaults - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENUM8 - break; - } - } - break; - } - case 0x003F: // Group Key Management Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // groups - { - entryLength = 6; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _GroupState - _GroupState * entry = reinterpret_cast<_GroupState *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, - &entryOffset, sizeof(entry->VendorId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->VendorGroupId, write ? (uint8_t *) &entry->VendorGroupId : src, write, - &entryOffset, sizeof(entry->VendorGroupId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeySetIndex, write ? (uint8_t *) &entry->GroupKeySetIndex : src, - write, &entryOffset, sizeof(entry->GroupKeySetIndex)); // INT16U - break; - } - case 0x0001: // group keys - { - entryLength = 31; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _GroupKey - _GroupKey * entry = reinterpret_cast<_GroupKey *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, - &entryOffset, sizeof(entry->VendorId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyIndex, write ? (uint8_t *) &entry->GroupKeyIndex : src, write, - &entryOffset, sizeof(entry->GroupKeyIndex)); // INT16U - ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 18, GroupKeyRootSpan) - : ReadByteSpan(src + entryOffset, 18, GroupKeyRootSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 18); - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyEpochStartTime, - write ? (uint8_t *) &entry->GroupKeyEpochStartTime : src, write, &entryOffset, - sizeof(entry->GroupKeyEpochStartTime)); // INT64U - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeySecurityPolicy, - write ? (uint8_t *) &entry->GroupKeySecurityPolicy : src, write, &entryOffset, - sizeof(entry->GroupKeySecurityPolicy)); // GroupKeySecurityPolicy - break; - } - } - break; - } - case 0x0507: // Media Input Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // media input list - { - entryLength = 70; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _MediaInputInfo - _MediaInputInfo * entry = reinterpret_cast<_MediaInputInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->index, write ? (uint8_t *) &entry->index : src, write, &entryOffset, - sizeof(entry->index)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->inputType, write ? (uint8_t *) &entry->inputType : src, write, - &entryOffset, sizeof(entry->inputType)); // MediaInputType - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - ByteSpan descriptionSpanStorage(Uint8::from_const_char(entry->description.data()), - entry->description.size()); // CHAR_STRING - ByteSpan * descriptionSpan = &descriptionSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, descriptionSpan) - : ReadByteSpan(src + entryOffset, 34, descriptionSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x003E: // Operational Credentials Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0001: // fabrics list - { - entryLength = 120; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _FabricDescriptor - _FabricDescriptor * entry = reinterpret_cast<_FabricDescriptor *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->FabricIndex, write ? (uint8_t *) &entry->FabricIndex : src, write, - &entryOffset, sizeof(entry->FabricIndex)); // INT8U - ByteSpan * RootPublicKeySpan = &entry->RootPublicKey; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 67, RootPublicKeySpan) - : ReadByteSpan(src + entryOffset, 67, RootPublicKeySpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 67); - copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, - &entryOffset, sizeof(entry->VendorId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->FabricId, write ? (uint8_t *) &entry->FabricId : src, write, - &entryOffset, sizeof(entry->FabricId)); // FABRIC_ID - copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - ByteSpan LabelSpanStorage(Uint8::from_const_char(entry->Label.data()), entry->Label.size()); // CHAR_STRING - ByteSpan * LabelSpan = &LabelSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - case 0x0004: // TrustedRootCertificates - { - entryOffset = GetByteSpanOffsetFromIndex(write ? dest : src, am->size, static_cast(index - 1)); - if (entryOffset == 0) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - - ByteSpan * trustedRootCertificatesSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING - uint16_t trustedRootCertificatesRemainingSpace = static_cast(am->size - entryOffset); - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, trustedRootCertificatesRemainingSpace, trustedRootCertificatesSpan) - : ReadByteSpan(src + entryOffset, trustedRootCertificatesRemainingSpace, trustedRootCertificatesSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - - if (!CanCastTo(trustedRootCertificatesSpan->size())) - { - ChipLogError(Zcl, "Span size %zu is too large", trustedRootCertificatesSpan->size()); - return 0; - } - entryLength = static_cast(trustedRootCertificatesSpan->size()); - break; - } - } - break; - } - case 0x0034: // Software Diagnostics Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // ThreadMetrics - { - entryLength = 30; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _ThreadMetrics - _ThreadMetrics * entry = reinterpret_cast<_ThreadMetrics *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->Id, write ? (uint8_t *) &entry->Id : src, write, &entryOffset, - sizeof(entry->Id)); // INT64U - ByteSpan NameSpanStorage(Uint8::from_const_char(entry->Name.data()), entry->Name.size()); // CHAR_STRING - ByteSpan * NameSpan = &NameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 10, NameSpan) : ReadByteSpan(src + entryOffset, 10, NameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 10); - copyListMember(write ? dest : (uint8_t *) &entry->StackFreeCurrent, write ? (uint8_t *) &entry->StackFreeCurrent : src, - write, &entryOffset, sizeof(entry->StackFreeCurrent)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->StackFreeMinimum, write ? (uint8_t *) &entry->StackFreeMinimum : src, - write, &entryOffset, sizeof(entry->StackFreeMinimum)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->StackSize, write ? (uint8_t *) &entry->StackSize : src, write, - &entryOffset, sizeof(entry->StackSize)); // INT32U - break; - } - } - break; - } - case 0x0504: // TV Channel Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // channel list - { - entryLength = 106; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _TvChannelInfo - _TvChannelInfo * entry = reinterpret_cast<_TvChannelInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->majorNumber, write ? (uint8_t *) &entry->majorNumber : src, write, - &entryOffset, sizeof(entry->majorNumber)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->minorNumber, write ? (uint8_t *) &entry->minorNumber : src, write, - &entryOffset, sizeof(entry->minorNumber)); // INT16U - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - ByteSpan callSignSpanStorage(Uint8::from_const_char(entry->callSign.data()), entry->callSign.size()); // CHAR_STRING - ByteSpan * callSignSpan = &callSignSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, callSignSpan) : ReadByteSpan(src + entryOffset, 34, callSignSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - ByteSpan affiliateCallSignSpanStorage(Uint8::from_const_char(entry->affiliateCallSign.data()), - entry->affiliateCallSign.size()); // CHAR_STRING - ByteSpan * affiliateCallSignSpan = &affiliateCallSignSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, affiliateCallSignSpan) - : ReadByteSpan(src + entryOffset, 34, affiliateCallSignSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x0505: // Target Navigator Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // target navigator list - { - entryLength = 35; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _NavigateTargetTargetInfo - _NavigateTargetTargetInfo * entry = reinterpret_cast<_NavigateTargetTargetInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->identifier, write ? (uint8_t *) &entry->identifier : src, write, - &entryOffset, sizeof(entry->identifier)); // INT8U - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x0035: // Thread Network Diagnostics Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0007: // NeighborTableList - { - entryLength = 31; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _NeighborTable - _NeighborTable * entry = reinterpret_cast<_NeighborTable *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->ExtAddress, write ? (uint8_t *) &entry->ExtAddress : src, write, - &entryOffset, sizeof(entry->ExtAddress)); // INT64U - copyListMember(write ? dest : (uint8_t *) &entry->Age, write ? (uint8_t *) &entry->Age : src, write, &entryOffset, - sizeof(entry->Age)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->Rloc16, write ? (uint8_t *) &entry->Rloc16 : src, write, &entryOffset, - sizeof(entry->Rloc16)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->LinkFrameCounter, write ? (uint8_t *) &entry->LinkFrameCounter : src, - write, &entryOffset, sizeof(entry->LinkFrameCounter)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->MleFrameCounter, write ? (uint8_t *) &entry->MleFrameCounter : src, - write, &entryOffset, sizeof(entry->MleFrameCounter)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->LQI, write ? (uint8_t *) &entry->LQI : src, write, &entryOffset, - sizeof(entry->LQI)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->AverageRssi, write ? (uint8_t *) &entry->AverageRssi : src, write, - &entryOffset, sizeof(entry->AverageRssi)); // INT8S - copyListMember(write ? dest : (uint8_t *) &entry->LastRssi, write ? (uint8_t *) &entry->LastRssi : src, write, - &entryOffset, sizeof(entry->LastRssi)); // INT8S - copyListMember(write ? dest : (uint8_t *) &entry->FrameErrorRate, write ? (uint8_t *) &entry->FrameErrorRate : src, - write, &entryOffset, sizeof(entry->FrameErrorRate)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->MessageErrorRate, write ? (uint8_t *) &entry->MessageErrorRate : src, - write, &entryOffset, sizeof(entry->MessageErrorRate)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->RxOnWhenIdle, write ? (uint8_t *) &entry->RxOnWhenIdle : src, write, - &entryOffset, sizeof(entry->RxOnWhenIdle)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->FullThreadDevice, write ? (uint8_t *) &entry->FullThreadDevice : src, - write, &entryOffset, sizeof(entry->FullThreadDevice)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->FullNetworkData, write ? (uint8_t *) &entry->FullNetworkData : src, - write, &entryOffset, sizeof(entry->FullNetworkData)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->IsChild, write ? (uint8_t *) &entry->IsChild : src, write, - &entryOffset, sizeof(entry->IsChild)); // BOOLEAN - break; - } - case 0x0008: // RouteTableList - { - entryLength = 18; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _RouteTable - _RouteTable * entry = reinterpret_cast<_RouteTable *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->ExtAddress, write ? (uint8_t *) &entry->ExtAddress : src, write, - &entryOffset, sizeof(entry->ExtAddress)); // INT64U - copyListMember(write ? dest : (uint8_t *) &entry->Rloc16, write ? (uint8_t *) &entry->Rloc16 : src, write, &entryOffset, - sizeof(entry->Rloc16)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->RouterId, write ? (uint8_t *) &entry->RouterId : src, write, - &entryOffset, sizeof(entry->RouterId)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->NextHop, write ? (uint8_t *) &entry->NextHop : src, write, - &entryOffset, sizeof(entry->NextHop)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->PathCost, write ? (uint8_t *) &entry->PathCost : src, write, - &entryOffset, sizeof(entry->PathCost)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->LQIIn, write ? (uint8_t *) &entry->LQIIn : src, write, &entryOffset, - sizeof(entry->LQIIn)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->LQIOut, write ? (uint8_t *) &entry->LQIOut : src, write, &entryOffset, - sizeof(entry->LQIOut)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->Age, write ? (uint8_t *) &entry->Age : src, write, &entryOffset, - sizeof(entry->Age)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->Allocated, write ? (uint8_t *) &entry->Allocated : src, write, - &entryOffset, sizeof(entry->Allocated)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->LinkEstablished, write ? (uint8_t *) &entry->LinkEstablished : src, - write, &entryOffset, sizeof(entry->LinkEstablished)); // BOOLEAN - break; - } - case 0x003B: // SecurityPolicy - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _SecurityPolicy - _SecurityPolicy * entry = reinterpret_cast<_SecurityPolicy *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->RotationTime, write ? (uint8_t *) &entry->RotationTime : src, write, - &entryOffset, sizeof(entry->RotationTime)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->Flags, write ? (uint8_t *) &entry->Flags : src, write, &entryOffset, - sizeof(entry->Flags)); // BITMAP16 - break; - } - case 0x003D: // OperationalDatasetComponents - { - entryLength = 12; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _OperationalDatasetComponents - _OperationalDatasetComponents * entry = reinterpret_cast<_OperationalDatasetComponents *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->ActiveTimestampPresent, - write ? (uint8_t *) &entry->ActiveTimestampPresent : src, write, &entryOffset, - sizeof(entry->ActiveTimestampPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->PendingTimestampPresent, - write ? (uint8_t *) &entry->PendingTimestampPresent : src, write, &entryOffset, - sizeof(entry->PendingTimestampPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->MasterKeyPresent, write ? (uint8_t *) &entry->MasterKeyPresent : src, - write, &entryOffset, sizeof(entry->MasterKeyPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->NetworkNamePresent, - write ? (uint8_t *) &entry->NetworkNamePresent : src, write, &entryOffset, - sizeof(entry->NetworkNamePresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->ExtendedPanIdPresent, - write ? (uint8_t *) &entry->ExtendedPanIdPresent : src, write, &entryOffset, - sizeof(entry->ExtendedPanIdPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->MeshLocalPrefixPresent, - write ? (uint8_t *) &entry->MeshLocalPrefixPresent : src, write, &entryOffset, - sizeof(entry->MeshLocalPrefixPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->DelayPresent, write ? (uint8_t *) &entry->DelayPresent : src, write, - &entryOffset, sizeof(entry->DelayPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->PanIdPresent, write ? (uint8_t *) &entry->PanIdPresent : src, write, - &entryOffset, sizeof(entry->PanIdPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->ChannelPresent, write ? (uint8_t *) &entry->ChannelPresent : src, - write, &entryOffset, sizeof(entry->ChannelPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->PskcPresent, write ? (uint8_t *) &entry->PskcPresent : src, write, - &entryOffset, sizeof(entry->PskcPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->SecurityPolicyPresent, - write ? (uint8_t *) &entry->SecurityPolicyPresent : src, write, &entryOffset, - sizeof(entry->SecurityPolicyPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->ChannelMaskPresent, - write ? (uint8_t *) &entry->ChannelMaskPresent : src, write, &entryOffset, - sizeof(entry->ChannelMaskPresent)); // BOOLEAN - break; - } - case 0x003E: // ActiveNetworkFaultsList - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // NetworkFault - break; - } - } - break; - } - } - - return entryLength; -} - -// A list is a collection of entries of the same data type. The data type may be any defined data type. -uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attributeId, const uint8_t * buffer) -{ - // The first 2 bytes specify the number of entries. A value of 0xFFFF means the list in invalid - // and data is undefined. - uint16_t entryCount = emberAfGetInt16u(buffer, 0, kSizeLengthInBytes); - if (entryCount == 0xFFFF) - { - return 0; - } - - uint16_t entryLength = 0; - switch (clusterId) - { - case 0x050D: // Application Basic Cluster - switch (attributeId) - { - case 0x0007: // allowed vendor list - // uint16_t - entryLength = 2; - break; - } - break; - case 0x050C: // Application Launcher Cluster - switch (attributeId) - { - case 0x0000: // application launcher list - // uint16_t - entryLength = 2; - break; - } - break; - case 0x050B: // Audio Output Cluster - switch (attributeId) - { - case 0x0000: // audio output list - // Struct _AudioOutputInfo - entryLength = 36; - break; - } - break; - case 0x050A: // Content Launcher Cluster - switch (attributeId) - { - case 0x0000: // accept header list - // chip::ByteSpan - return GetByteSpanOffsetFromIndex(buffer, 256, entryCount); - break; - } - break; - case 0x001D: // Descriptor Cluster - switch (attributeId) - { - case 0x0000: // device list - // Struct _DeviceType - entryLength = 6; - break; - case 0x0001: // server list - // chip::ClusterId - entryLength = 4; - break; - case 0x0002: // client list - // chip::ClusterId - entryLength = 4; - break; - case 0x0003: // parts list - // chip::EndpointId - entryLength = 2; - break; - } - break; - case 0x0030: // General Commissioning Cluster - switch (attributeId) - { - case 0x0001: // BasicCommissioningInfoList - // Struct _BasicCommissioningInfoType - entryLength = 4; - break; - } - break; - case 0x0033: // General Diagnostics Cluster - switch (attributeId) - { - case 0x0000: // NetworkInterfaces - // Struct _NetworkInterfaceType - entryLength = 48; - break; - case 0x0005: // ActiveHardwareFaults - // uint8_t - entryLength = 1; - break; - case 0x0006: // ActiveRadioFaults - // uint8_t - entryLength = 1; - break; - case 0x0007: // ActiveNetworkFaults - // uint8_t - entryLength = 1; - break; - } - break; - case 0x003F: // Group Key Management Cluster - switch (attributeId) - { - case 0x0000: // groups - // Struct _GroupState - entryLength = 6; - break; - case 0x0001: // group keys - // Struct _GroupKey - entryLength = 31; - break; - } - break; - case 0x0507: // Media Input Cluster - switch (attributeId) - { - case 0x0000: // media input list - // Struct _MediaInputInfo - entryLength = 70; - break; - } - break; - case 0x003E: // Operational Credentials Cluster - switch (attributeId) - { - case 0x0001: // fabrics list - // Struct _FabricDescriptor - entryLength = 120; - break; - case 0x0004: // TrustedRootCertificates - // chip::ByteSpan - return GetByteSpanOffsetFromIndex(buffer, 402, entryCount); - break; - } - break; - case 0x0034: // Software Diagnostics Cluster - switch (attributeId) - { - case 0x0000: // ThreadMetrics - // Struct _ThreadMetrics - entryLength = 30; - break; - } - break; - case 0x0504: // TV Channel Cluster - switch (attributeId) - { - case 0x0000: // channel list - // Struct _TvChannelInfo - entryLength = 106; - break; - } - break; - case 0x0505: // Target Navigator Cluster - switch (attributeId) - { - case 0x0000: // target navigator list - // Struct _NavigateTargetTargetInfo - entryLength = 35; - break; - } - break; - case 0x0035: // Thread Network Diagnostics Cluster - switch (attributeId) - { - case 0x0007: // NeighborTableList - // Struct _NeighborTable - entryLength = 31; - break; - case 0x0008: // RouteTableList - // Struct _RouteTable - entryLength = 18; - break; - case 0x003B: // SecurityPolicy - // Struct _SecurityPolicy - entryLength = 4; - break; - case 0x003D: // OperationalDatasetComponents - // Struct _OperationalDatasetComponents - entryLength = 12; - break; - case 0x003E: // ActiveNetworkFaultsList - // uint8_t - entryLength = 1; - break; - } - break; - } - - uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!CanCastTo(totalSize)) - { - ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", - ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); - return 0; - } - - return static_cast(totalSize); -} diff --git a/zzz_generated/tv-casting-app/zap-generated/attribute-size.cpp b/zzz_generated/tv-casting-app/zap-generated/attribute-size.cpp deleted file mode 100644 index 9fd437e395e1e4..00000000000000 --- a/zzz_generated/tv-casting-app/zap-generated/attribute-size.cpp +++ /dev/null @@ -1,1158 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#include -#include -#include -#include -#include -#include -#include - -using namespace chip; -using namespace chip::app::List; - -// The first 2 bytes specify the number of entries. A value of 0xFFFF means the list in invalid -// and data is undefined. -constexpr uint16_t kSizeLengthInBytes = 2u; - -void copyListMember(uint8_t * dest, uint8_t * src, bool write, uint16_t * offset, uint16_t length) -{ - if (write) - { - memmove(dest + *offset, src, length); - } - else - { - memmove(dest, src + *offset, length); - } - - *offset = static_cast(*offset + length); -} - -uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, bool write, uint8_t * dest, uint8_t * src, - int32_t index) -{ - if (index == -1) - { - memmove(dest, src, am->size); - return am->size; - } - - if (index == 0) - { - if (write) - { - // src is a pointer to native-endian uint16_t, dest is pointer to buffer that should hold little-endian value - emberAfCopyInt16u(dest, 0, *reinterpret_cast(src)); - } - else - { - // src is pointer to buffer holding little-endian value, dest is a pointer to native-endian uint16_t - *reinterpret_cast(dest) = emberAfGetInt16u(src, 0, kSizeLengthInBytes); - } - return kSizeLengthInBytes; - } - - if (!CanCastTo(index)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); - return 0; - } - - uint16_t entryLength = 0; - switch (clusterId) - { - case 0x050D: // Application Basic Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0007: // allowed vendor list - { - entryLength = 2; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // INT16U - break; - } - } - break; - } - case 0x050C: // Application Launcher Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // application launcher list - { - entryLength = 2; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // INT16U - break; - } - } - break; - } - case 0x050B: // Audio Output Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // audio output list - { - entryLength = 36; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _AudioOutputInfo - _AudioOutputInfo * entry = reinterpret_cast<_AudioOutputInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->index, write ? (uint8_t *) &entry->index : src, write, &entryOffset, - sizeof(entry->index)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->outputType, write ? (uint8_t *) &entry->outputType : src, write, - &entryOffset, sizeof(entry->outputType)); // AudioOutputType - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x050A: // Content Launcher Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // accept header list - { - entryOffset = GetByteSpanOffsetFromIndex(write ? dest : src, am->size, static_cast(index - 1)); - if (entryOffset == 0) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - - ByteSpan * acceptHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING - uint16_t acceptHeaderListRemainingSpace = static_cast(am->size - entryOffset); - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, acceptHeaderListRemainingSpace, acceptHeaderListSpan) - : ReadByteSpan(src + entryOffset, acceptHeaderListRemainingSpace, acceptHeaderListSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - - if (!CanCastTo(acceptHeaderListSpan->size())) - { - ChipLogError(Zcl, "Span size %zu is too large", acceptHeaderListSpan->size()); - return 0; - } - entryLength = static_cast(acceptHeaderListSpan->size()); - break; - } - } - break; - } - case 0x001D: // Descriptor Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // device list - { - entryLength = 6; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _DeviceType - _DeviceType * entry = reinterpret_cast<_DeviceType *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->type, write ? (uint8_t *) &entry->type : src, write, &entryOffset, - sizeof(entry->type)); // DEVTYPE_ID - copyListMember(write ? dest : (uint8_t *) &entry->revision, write ? (uint8_t *) &entry->revision : src, write, - &entryOffset, sizeof(entry->revision)); // INT16U - break; - } - case 0x0001: // server list - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // CLUSTER_ID - break; - } - case 0x0002: // client list - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // CLUSTER_ID - break; - } - case 0x0003: // parts list - { - entryLength = 2; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENDPOINT_NO - break; - } - } - break; - } - case 0x0040: // Fixed Label Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // label list - { - entryLength = 36; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _LabelStruct - _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); - ByteSpan labelSpanStorage(Uint8::from_const_char(entry->label.data()), entry->label.size()); // CHAR_STRING - ByteSpan * labelSpan = &labelSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 18, labelSpan) : ReadByteSpan(src + entryOffset, 18, labelSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 18); - ByteSpan valueSpanStorage(Uint8::from_const_char(entry->value.data()), entry->value.size()); // CHAR_STRING - ByteSpan * valueSpan = &valueSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 18, valueSpan) : ReadByteSpan(src + entryOffset, 18, valueSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 18); - break; - } - } - break; - } - case 0x0030: // General Commissioning Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0001: // BasicCommissioningInfoList - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _BasicCommissioningInfoType - _BasicCommissioningInfoType * entry = reinterpret_cast<_BasicCommissioningInfoType *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->FailSafeExpiryLengthMs, - write ? (uint8_t *) &entry->FailSafeExpiryLengthMs : src, write, &entryOffset, - sizeof(entry->FailSafeExpiryLengthMs)); // INT32U - break; - } - } - break; - } - case 0x0033: // General Diagnostics Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // NetworkInterfaces - { - entryLength = 48; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _NetworkInterfaceType - _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - ByteSpan NameSpanStorage(Uint8::from_const_char(entry->Name.data()), entry->Name.size()); // CHAR_STRING - ByteSpan * NameSpan = &NameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - copyListMember(write ? dest : (uint8_t *) &entry->FabricConnected, write ? (uint8_t *) &entry->FabricConnected : src, - write, &entryOffset, sizeof(entry->FabricConnected)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv4, - write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv4 : src, write, &entryOffset, - sizeof(entry->OffPremiseServicesReachableIPv4)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, - write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, - sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) - : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 10); - copyListMember(write ? dest : (uint8_t *) &entry->Type, write ? (uint8_t *) &entry->Type : src, write, &entryOffset, - sizeof(entry->Type)); // InterfaceType - break; - } - case 0x0005: // ActiveHardwareFaults - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENUM8 - break; - } - case 0x0006: // ActiveRadioFaults - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENUM8 - break; - } - case 0x0007: // ActiveNetworkFaults - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // ENUM8 - break; - } - } - break; - } - case 0x003F: // Group Key Management Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // groups - { - entryLength = 6; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _GroupState - _GroupState * entry = reinterpret_cast<_GroupState *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, - &entryOffset, sizeof(entry->VendorId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->VendorGroupId, write ? (uint8_t *) &entry->VendorGroupId : src, write, - &entryOffset, sizeof(entry->VendorGroupId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeySetIndex, write ? (uint8_t *) &entry->GroupKeySetIndex : src, - write, &entryOffset, sizeof(entry->GroupKeySetIndex)); // INT16U - break; - } - case 0x0001: // group keys - { - entryLength = 31; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _GroupKey - _GroupKey * entry = reinterpret_cast<_GroupKey *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, - &entryOffset, sizeof(entry->VendorId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyIndex, write ? (uint8_t *) &entry->GroupKeyIndex : src, write, - &entryOffset, sizeof(entry->GroupKeyIndex)); // INT16U - ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 18, GroupKeyRootSpan) - : ReadByteSpan(src + entryOffset, 18, GroupKeyRootSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 18); - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyEpochStartTime, - write ? (uint8_t *) &entry->GroupKeyEpochStartTime : src, write, &entryOffset, - sizeof(entry->GroupKeyEpochStartTime)); // INT64U - copyListMember(write ? dest : (uint8_t *) &entry->GroupKeySecurityPolicy, - write ? (uint8_t *) &entry->GroupKeySecurityPolicy : src, write, &entryOffset, - sizeof(entry->GroupKeySecurityPolicy)); // GroupKeySecurityPolicy - break; - } - } - break; - } - case 0x0507: // Media Input Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // media input list - { - entryLength = 70; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _MediaInputInfo - _MediaInputInfo * entry = reinterpret_cast<_MediaInputInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->index, write ? (uint8_t *) &entry->index : src, write, &entryOffset, - sizeof(entry->index)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->inputType, write ? (uint8_t *) &entry->inputType : src, write, - &entryOffset, sizeof(entry->inputType)); // MediaInputType - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - ByteSpan descriptionSpanStorage(Uint8::from_const_char(entry->description.data()), - entry->description.size()); // CHAR_STRING - ByteSpan * descriptionSpan = &descriptionSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, descriptionSpan) - : ReadByteSpan(src + entryOffset, 34, descriptionSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x003E: // Operational Credentials Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0001: // fabrics list - { - entryLength = 120; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _FabricDescriptor - _FabricDescriptor * entry = reinterpret_cast<_FabricDescriptor *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->FabricIndex, write ? (uint8_t *) &entry->FabricIndex : src, write, - &entryOffset, sizeof(entry->FabricIndex)); // INT8U - ByteSpan * RootPublicKeySpan = &entry->RootPublicKey; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 67, RootPublicKeySpan) - : ReadByteSpan(src + entryOffset, 67, RootPublicKeySpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 67); - copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, - &entryOffset, sizeof(entry->VendorId)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->FabricId, write ? (uint8_t *) &entry->FabricId : src, write, - &entryOffset, sizeof(entry->FabricId)); // FABRIC_ID - copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - ByteSpan LabelSpanStorage(Uint8::from_const_char(entry->Label.data()), entry->Label.size()); // CHAR_STRING - ByteSpan * LabelSpan = &LabelSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - case 0x0004: // TrustedRootCertificates - { - entryOffset = GetByteSpanOffsetFromIndex(write ? dest : src, am->size, static_cast(index - 1)); - if (entryOffset == 0) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - - ByteSpan * trustedRootCertificatesSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING - uint16_t trustedRootCertificatesRemainingSpace = static_cast(am->size - entryOffset); - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, trustedRootCertificatesRemainingSpace, trustedRootCertificatesSpan) - : ReadByteSpan(src + entryOffset, trustedRootCertificatesRemainingSpace, trustedRootCertificatesSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - - if (!CanCastTo(trustedRootCertificatesSpan->size())) - { - ChipLogError(Zcl, "Span size %zu is too large", trustedRootCertificatesSpan->size()); - return 0; - } - entryLength = static_cast(trustedRootCertificatesSpan->size()); - break; - } - } - break; - } - case 0x0034: // Software Diagnostics Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // ThreadMetrics - { - entryLength = 30; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _ThreadMetrics - _ThreadMetrics * entry = reinterpret_cast<_ThreadMetrics *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->Id, write ? (uint8_t *) &entry->Id : src, write, &entryOffset, - sizeof(entry->Id)); // INT64U - ByteSpan NameSpanStorage(Uint8::from_const_char(entry->Name.data()), entry->Name.size()); // CHAR_STRING - ByteSpan * NameSpan = &NameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 10, NameSpan) : ReadByteSpan(src + entryOffset, 10, NameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 10); - copyListMember(write ? dest : (uint8_t *) &entry->StackFreeCurrent, write ? (uint8_t *) &entry->StackFreeCurrent : src, - write, &entryOffset, sizeof(entry->StackFreeCurrent)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->StackFreeMinimum, write ? (uint8_t *) &entry->StackFreeMinimum : src, - write, &entryOffset, sizeof(entry->StackFreeMinimum)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->StackSize, write ? (uint8_t *) &entry->StackSize : src, write, - &entryOffset, sizeof(entry->StackSize)); // INT32U - break; - } - } - break; - } - case 0x0504: // TV Channel Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // channel list - { - entryLength = 106; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _TvChannelInfo - _TvChannelInfo * entry = reinterpret_cast<_TvChannelInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->majorNumber, write ? (uint8_t *) &entry->majorNumber : src, write, - &entryOffset, sizeof(entry->majorNumber)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->minorNumber, write ? (uint8_t *) &entry->minorNumber : src, write, - &entryOffset, sizeof(entry->minorNumber)); // INT16U - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - ByteSpan callSignSpanStorage(Uint8::from_const_char(entry->callSign.data()), entry->callSign.size()); // CHAR_STRING - ByteSpan * callSignSpan = &callSignSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, callSignSpan) : ReadByteSpan(src + entryOffset, 34, callSignSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - ByteSpan affiliateCallSignSpanStorage(Uint8::from_const_char(entry->affiliateCallSign.data()), - entry->affiliateCallSign.size()); // CHAR_STRING - ByteSpan * affiliateCallSignSpan = &affiliateCallSignSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, affiliateCallSignSpan) - : ReadByteSpan(src + entryOffset, 34, affiliateCallSignSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x0505: // Target Navigator Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0000: // target navigator list - { - entryLength = 35; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _NavigateTargetTargetInfo - _NavigateTargetTargetInfo * entry = reinterpret_cast<_NavigateTargetTargetInfo *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->identifier, write ? (uint8_t *) &entry->identifier : src, write, - &entryOffset, sizeof(entry->identifier)); // INT8U - ByteSpan nameSpanStorage(Uint8::from_const_char(entry->name.data()), entry->name.size()); // CHAR_STRING - ByteSpan * nameSpan = &nameSpanStorage; - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x050F: // Test Cluster Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x001A: // list_int8u - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // INT8U - break; - } - case 0x001B: // list_octet_string - { - entryOffset = GetByteSpanOffsetFromIndex(write ? dest : src, am->size, static_cast(index - 1)); - if (entryOffset == 0) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - - ByteSpan * listOctetStringSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING - uint16_t listOctetStringRemainingSpace = static_cast(am->size - entryOffset); - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, listOctetStringRemainingSpace, listOctetStringSpan) - : ReadByteSpan(src + entryOffset, listOctetStringRemainingSpace, listOctetStringSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - - if (!CanCastTo(listOctetStringSpan->size())) - { - ChipLogError(Zcl, "Span size %zu is too large", listOctetStringSpan->size()); - return 0; - } - entryLength = static_cast(listOctetStringSpan->size()); - break; - } - case 0x001C: // list_struct_octet_string - { - entryLength = 42; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _TestListStructOctet - _TestListStructOctet * entry = reinterpret_cast<_TestListStructOctet *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->fabricIndex, write ? (uint8_t *) &entry->fabricIndex : src, write, - &entryOffset, sizeof(entry->fabricIndex)); // INT64U - ByteSpan * operationalCertSpan = &entry->operationalCert; // OCTET_STRING - if (CHIP_NO_ERROR != - (write ? WriteByteSpan(dest + entryOffset, 34, operationalCertSpan) - : ReadByteSpan(src + entryOffset, 34, operationalCertSpan))) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); - return 0; - } - entryOffset = static_cast(entryOffset + 34); - break; - } - } - break; - } - case 0x0035: // Thread Network Diagnostics Cluster - { - uint16_t entryOffset = kSizeLengthInBytes; - switch (am->attributeId) - { - case 0x0007: // NeighborTableList - { - entryLength = 31; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _NeighborTable - _NeighborTable * entry = reinterpret_cast<_NeighborTable *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->ExtAddress, write ? (uint8_t *) &entry->ExtAddress : src, write, - &entryOffset, sizeof(entry->ExtAddress)); // INT64U - copyListMember(write ? dest : (uint8_t *) &entry->Age, write ? (uint8_t *) &entry->Age : src, write, &entryOffset, - sizeof(entry->Age)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->Rloc16, write ? (uint8_t *) &entry->Rloc16 : src, write, &entryOffset, - sizeof(entry->Rloc16)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->LinkFrameCounter, write ? (uint8_t *) &entry->LinkFrameCounter : src, - write, &entryOffset, sizeof(entry->LinkFrameCounter)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->MleFrameCounter, write ? (uint8_t *) &entry->MleFrameCounter : src, - write, &entryOffset, sizeof(entry->MleFrameCounter)); // INT32U - copyListMember(write ? dest : (uint8_t *) &entry->LQI, write ? (uint8_t *) &entry->LQI : src, write, &entryOffset, - sizeof(entry->LQI)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->AverageRssi, write ? (uint8_t *) &entry->AverageRssi : src, write, - &entryOffset, sizeof(entry->AverageRssi)); // INT8S - copyListMember(write ? dest : (uint8_t *) &entry->LastRssi, write ? (uint8_t *) &entry->LastRssi : src, write, - &entryOffset, sizeof(entry->LastRssi)); // INT8S - copyListMember(write ? dest : (uint8_t *) &entry->FrameErrorRate, write ? (uint8_t *) &entry->FrameErrorRate : src, - write, &entryOffset, sizeof(entry->FrameErrorRate)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->MessageErrorRate, write ? (uint8_t *) &entry->MessageErrorRate : src, - write, &entryOffset, sizeof(entry->MessageErrorRate)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->RxOnWhenIdle, write ? (uint8_t *) &entry->RxOnWhenIdle : src, write, - &entryOffset, sizeof(entry->RxOnWhenIdle)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->FullThreadDevice, write ? (uint8_t *) &entry->FullThreadDevice : src, - write, &entryOffset, sizeof(entry->FullThreadDevice)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->FullNetworkData, write ? (uint8_t *) &entry->FullNetworkData : src, - write, &entryOffset, sizeof(entry->FullNetworkData)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->IsChild, write ? (uint8_t *) &entry->IsChild : src, write, - &entryOffset, sizeof(entry->IsChild)); // BOOLEAN - break; - } - case 0x0008: // RouteTableList - { - entryLength = 18; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _RouteTable - _RouteTable * entry = reinterpret_cast<_RouteTable *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->ExtAddress, write ? (uint8_t *) &entry->ExtAddress : src, write, - &entryOffset, sizeof(entry->ExtAddress)); // INT64U - copyListMember(write ? dest : (uint8_t *) &entry->Rloc16, write ? (uint8_t *) &entry->Rloc16 : src, write, &entryOffset, - sizeof(entry->Rloc16)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->RouterId, write ? (uint8_t *) &entry->RouterId : src, write, - &entryOffset, sizeof(entry->RouterId)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->NextHop, write ? (uint8_t *) &entry->NextHop : src, write, - &entryOffset, sizeof(entry->NextHop)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->PathCost, write ? (uint8_t *) &entry->PathCost : src, write, - &entryOffset, sizeof(entry->PathCost)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->LQIIn, write ? (uint8_t *) &entry->LQIIn : src, write, &entryOffset, - sizeof(entry->LQIIn)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->LQIOut, write ? (uint8_t *) &entry->LQIOut : src, write, &entryOffset, - sizeof(entry->LQIOut)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->Age, write ? (uint8_t *) &entry->Age : src, write, &entryOffset, - sizeof(entry->Age)); // INT8U - copyListMember(write ? dest : (uint8_t *) &entry->Allocated, write ? (uint8_t *) &entry->Allocated : src, write, - &entryOffset, sizeof(entry->Allocated)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->LinkEstablished, write ? (uint8_t *) &entry->LinkEstablished : src, - write, &entryOffset, sizeof(entry->LinkEstablished)); // BOOLEAN - break; - } - case 0x003B: // SecurityPolicy - { - entryLength = 4; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _SecurityPolicy - _SecurityPolicy * entry = reinterpret_cast<_SecurityPolicy *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->RotationTime, write ? (uint8_t *) &entry->RotationTime : src, write, - &entryOffset, sizeof(entry->RotationTime)); // INT16U - copyListMember(write ? dest : (uint8_t *) &entry->Flags, write ? (uint8_t *) &entry->Flags : src, write, &entryOffset, - sizeof(entry->Flags)); // BITMAP16 - break; - } - case 0x003D: // OperationalDatasetComponents - { - entryLength = 12; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - // Struct _OperationalDatasetComponents - _OperationalDatasetComponents * entry = reinterpret_cast<_OperationalDatasetComponents *>(write ? src : dest); - copyListMember(write ? dest : (uint8_t *) &entry->ActiveTimestampPresent, - write ? (uint8_t *) &entry->ActiveTimestampPresent : src, write, &entryOffset, - sizeof(entry->ActiveTimestampPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->PendingTimestampPresent, - write ? (uint8_t *) &entry->PendingTimestampPresent : src, write, &entryOffset, - sizeof(entry->PendingTimestampPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->MasterKeyPresent, write ? (uint8_t *) &entry->MasterKeyPresent : src, - write, &entryOffset, sizeof(entry->MasterKeyPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->NetworkNamePresent, - write ? (uint8_t *) &entry->NetworkNamePresent : src, write, &entryOffset, - sizeof(entry->NetworkNamePresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->ExtendedPanIdPresent, - write ? (uint8_t *) &entry->ExtendedPanIdPresent : src, write, &entryOffset, - sizeof(entry->ExtendedPanIdPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->MeshLocalPrefixPresent, - write ? (uint8_t *) &entry->MeshLocalPrefixPresent : src, write, &entryOffset, - sizeof(entry->MeshLocalPrefixPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->DelayPresent, write ? (uint8_t *) &entry->DelayPresent : src, write, - &entryOffset, sizeof(entry->DelayPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->PanIdPresent, write ? (uint8_t *) &entry->PanIdPresent : src, write, - &entryOffset, sizeof(entry->PanIdPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->ChannelPresent, write ? (uint8_t *) &entry->ChannelPresent : src, - write, &entryOffset, sizeof(entry->ChannelPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->PskcPresent, write ? (uint8_t *) &entry->PskcPresent : src, write, - &entryOffset, sizeof(entry->PskcPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->SecurityPolicyPresent, - write ? (uint8_t *) &entry->SecurityPolicyPresent : src, write, &entryOffset, - sizeof(entry->SecurityPolicyPresent)); // BOOLEAN - copyListMember(write ? dest : (uint8_t *) &entry->ChannelMaskPresent, - write ? (uint8_t *) &entry->ChannelMaskPresent : src, write, &entryOffset, - sizeof(entry->ChannelMaskPresent)); // BOOLEAN - break; - } - case 0x003E: // ActiveNetworkFaultsList - { - entryLength = 1; - if (((index - 1) * entryLength) > (am->size - entryLength)) - { - ChipLogError(Zcl, "Index %" PRId32 " is invalid.", index); - return 0; - } - entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); - copyListMember(dest, src, write, &entryOffset, entryLength); // NetworkFault - break; - } - } - break; - } - } - - return entryLength; -} - -// A list is a collection of entries of the same data type. The data type may be any defined data type. -uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attributeId, const uint8_t * buffer) -{ - // The first 2 bytes specify the number of entries. A value of 0xFFFF means the list in invalid - // and data is undefined. - uint16_t entryCount = emberAfGetInt16u(buffer, 0, kSizeLengthInBytes); - if (entryCount == 0xFFFF) - { - return 0; - } - - uint16_t entryLength = 0; - switch (clusterId) - { - case 0x050D: // Application Basic Cluster - switch (attributeId) - { - case 0x0007: // allowed vendor list - // uint16_t - entryLength = 2; - break; - } - break; - case 0x050C: // Application Launcher Cluster - switch (attributeId) - { - case 0x0000: // application launcher list - // uint16_t - entryLength = 2; - break; - } - break; - case 0x050B: // Audio Output Cluster - switch (attributeId) - { - case 0x0000: // audio output list - // Struct _AudioOutputInfo - entryLength = 36; - break; - } - break; - case 0x050A: // Content Launcher Cluster - switch (attributeId) - { - case 0x0000: // accept header list - // chip::ByteSpan - return GetByteSpanOffsetFromIndex(buffer, 256, entryCount); - break; - } - break; - case 0x001D: // Descriptor Cluster - switch (attributeId) - { - case 0x0000: // device list - // Struct _DeviceType - entryLength = 6; - break; - case 0x0001: // server list - // chip::ClusterId - entryLength = 4; - break; - case 0x0002: // client list - // chip::ClusterId - entryLength = 4; - break; - case 0x0003: // parts list - // chip::EndpointId - entryLength = 2; - break; - } - break; - case 0x0040: // Fixed Label Cluster - switch (attributeId) - { - case 0x0000: // label list - // Struct _LabelStruct - entryLength = 36; - break; - } - break; - case 0x0030: // General Commissioning Cluster - switch (attributeId) - { - case 0x0001: // BasicCommissioningInfoList - // Struct _BasicCommissioningInfoType - entryLength = 4; - break; - } - break; - case 0x0033: // General Diagnostics Cluster - switch (attributeId) - { - case 0x0000: // NetworkInterfaces - // Struct _NetworkInterfaceType - entryLength = 48; - break; - case 0x0005: // ActiveHardwareFaults - // uint8_t - entryLength = 1; - break; - case 0x0006: // ActiveRadioFaults - // uint8_t - entryLength = 1; - break; - case 0x0007: // ActiveNetworkFaults - // uint8_t - entryLength = 1; - break; - } - break; - case 0x003F: // Group Key Management Cluster - switch (attributeId) - { - case 0x0000: // groups - // Struct _GroupState - entryLength = 6; - break; - case 0x0001: // group keys - // Struct _GroupKey - entryLength = 31; - break; - } - break; - case 0x0507: // Media Input Cluster - switch (attributeId) - { - case 0x0000: // media input list - // Struct _MediaInputInfo - entryLength = 70; - break; - } - break; - case 0x003E: // Operational Credentials Cluster - switch (attributeId) - { - case 0x0001: // fabrics list - // Struct _FabricDescriptor - entryLength = 120; - break; - case 0x0004: // TrustedRootCertificates - // chip::ByteSpan - return GetByteSpanOffsetFromIndex(buffer, 402, entryCount); - break; - } - break; - case 0x0034: // Software Diagnostics Cluster - switch (attributeId) - { - case 0x0000: // ThreadMetrics - // Struct _ThreadMetrics - entryLength = 30; - break; - } - break; - case 0x0504: // TV Channel Cluster - switch (attributeId) - { - case 0x0000: // channel list - // Struct _TvChannelInfo - entryLength = 106; - break; - } - break; - case 0x0505: // Target Navigator Cluster - switch (attributeId) - { - case 0x0000: // target navigator list - // Struct _NavigateTargetTargetInfo - entryLength = 35; - break; - } - break; - case 0x050F: // Test Cluster Cluster - switch (attributeId) - { - case 0x001A: // list_int8u - // uint8_t - entryLength = 1; - break; - case 0x001B: // list_octet_string - // chip::ByteSpan - return GetByteSpanOffsetFromIndex(buffer, 256, entryCount); - break; - case 0x001C: // list_struct_octet_string - // Struct _TestListStructOctet - entryLength = 42; - break; - } - break; - case 0x0035: // Thread Network Diagnostics Cluster - switch (attributeId) - { - case 0x0007: // NeighborTableList - // Struct _NeighborTable - entryLength = 31; - break; - case 0x0008: // RouteTableList - // Struct _RouteTable - entryLength = 18; - break; - case 0x003B: // SecurityPolicy - // Struct _SecurityPolicy - entryLength = 4; - break; - case 0x003D: // OperationalDatasetComponents - // Struct _OperationalDatasetComponents - entryLength = 12; - break; - case 0x003E: // ActiveNetworkFaultsList - // uint8_t - entryLength = 1; - break; - } - break; - } - - uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!CanCastTo(totalSize)) - { - ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", - ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); - return 0; - } - - return static_cast(totalSize); -}