diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index 04648f4da135ee..50ab4e0142eed5 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -113,8 +113,6 @@ jobs: TEST_RUNNER_ASAN_OPTIONS=__CURRENT_VALUE__:detect_stack_use_after_return=1 xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES OTHER_CFLAGS='${inherited} -Werror -Wconversion' CHIP_IS_UBSAN=YES CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'> >(tee /tmp/darwin/framework-tests/darwin-tests-asan.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-asan-err.log >&2) # And the same thing, but with MTR_PER_CONTROLLER_STORAGE_ENABLED turned off, so we test that it does not break for now. TEST_RUNNER_ASAN_OPTIONS=__CURRENT_VALUE__:detect_stack_use_after_return=1 xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES OTHER_CFLAGS='${inherited} -Werror -Wconversion' CHIP_IS_UBSAN=YES CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1 MTR_PER_CONTROLLER_STORAGE_ENABLED=0' > >(tee /tmp/darwin/framework-tests/darwin-tests-asan-controller-storage.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-asan-controller-storage-err.log >&2) - # And the same thing, but with MTR_ENABLE_PROVISIONAL also turned on. - TEST_RUNNER_ASAN_OPTIONS=__CURRENT_VALUE__:detect_stack_use_after_return=1 xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES OTHER_CFLAGS='${inherited} -Werror -Wconversion' CHIP_IS_UBSAN=YES CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1 MTR_PER_CONTROLLER_STORAGE_ENABLED=1 MTR_ENABLE_PROVISIONAL=1' > >(tee /tmp/darwin/framework-tests/darwin-tests-asan-provisional.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-asan-provisional-err.log >&2) # And the same thing, but with MTR_NO_AVAILABILITY not turned on. This requires -Wno-unguarded-availability-new to avoid availability errors. TEST_RUNNER_ASAN_OPTIONS=__CURRENT_VALUE__:detect_stack_use_after_return=1 xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES OTHER_CFLAGS='${inherited} -Werror -Wconversion -Wno-unguarded-availability-new' CHIP_IS_UBSAN=YES CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited}' > >(tee /tmp/darwin/framework-tests/darwin-tests-asan-with-availability-annotations.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-asan-with-availability-annotations-err.log >&2) # -enableThreadSanitizer instruments the code in Matter.framework, diff --git a/examples/darwin-framework-tool/BUILD.gn b/examples/darwin-framework-tool/BUILD.gn index 3f0de6c6b0310b..e6b1a3e7654da3 100644 --- a/examples/darwin-framework-tool/BUILD.gn +++ b/examples/darwin-framework-tool/BUILD.gn @@ -113,12 +113,6 @@ action("build-darwin-framework") { args += [ "--no-enable-encoding-sentinel-enum-values" ] } - if (enable_provisional_features) { - args += [ "--enable-provisional-framework-features" ] - } else { - args += [ "--no-enable-provisional-framework-features" ] - } - output_name = "Matter.framework" outputs = [ "${root_out_dir}/macos_framework_output/Build/Products/${output_sdk_type}/${output_name}", diff --git a/scripts/build/build_darwin_framework.py b/scripts/build/build_darwin_framework.py index 43b754fb900c5b..95f666a39fff29 100644 --- a/scripts/build/build_darwin_framework.py +++ b/scripts/build/build_darwin_framework.py @@ -97,8 +97,6 @@ def build_darwin_framework(args): command += ["{}={}".format(option, "YES" if options[option] else "NO")] defines = 'GCC_PREPROCESSOR_DEFINITIONS=${inherited} MTR_NO_AVAILABILITY=1' - if args.enable_provisional_framework_features: - defines += ' MTR_ENABLE_PROVISIONAL=1' command += [defines] @@ -174,7 +172,6 @@ def build_darwin_framework(args): parser.add_argument('--ble', action=argparse.BooleanOptionalAction) parser.add_argument('--clang', action=argparse.BooleanOptionalAction) parser.add_argument('--enable-encoding-sentinel-enum-values', action=argparse.BooleanOptionalAction) - parser.add_argument('--enable-provisional-framework-features', action=argparse.BooleanOptionalAction) args = parser.parse_args() build_darwin_framework(args) diff --git a/src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt b/src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt index 2b70a99a06701d..cac0769e095c0d 100644 --- a/src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRAttributeTLVValueDecoder-src.zapt @@ -24,9 +24,6 @@ static id _Nullable DecodeGlobalAttributeValue(AttributeId aAttributeId, TLV::TL {{#zcl_attributes_server removeKeys='isOptional'}} {{#unless clusterRef}} {{#if (isSupported "" globalAttribute=(asUpperCamelCase name preserveAcronyms=true))}} - {{#if (isProvisional "" globalAttribute=(asUpperCamelCase name preserveAcronyms=true))}} - #if MTR_ENABLE_PROVISIONAL - {{/if}} case Attributes::{{asUpperCamelCase name}}::Id: { using TypeInfo = Attributes::{{asUpperCamelCase name}}::TypeInfo; TypeInfo::DecodableType cppValue; @@ -39,9 +36,6 @@ static id _Nullable DecodeGlobalAttributeValue(AttributeId aAttributeId, TLV::TL {{>decode_value target="value" source="cppValue" cluster="" errorCode="*aError = err; return nil;" depth=0}} return value; } - {{#if (isProvisional "" globalAttribute=(asUpperCamelCase name preserveAcronyms=true))}} - #endif // MTR_ENABLE_PROVISIONAL - {{/if}} {{/if}} {{/unless}} {{/zcl_attributes_server}} @@ -63,9 +57,6 @@ static id _Nullable DecodeAttributeValueFor{{asUpperCamelCase name preserveAcron {{#zcl_attributes_server removeKeys='isOptional'}} {{#if clusterRef}} {{#if (isSupported (asUpperCamelCase ../name preserveAcronyms=true) attribute=(asUpperCamelCase name preserveAcronyms=true))}} - {{#if (isProvisional (asUpperCamelCase ../name preserveAcronyms=true) attribute=(asUpperCamelCase name preserveAcronyms=true))}} - #if MTR_ENABLE_PROVISIONAL - {{/if}} case Attributes::{{asUpperCamelCase name}}::Id: { using TypeInfo = Attributes::{{asUpperCamelCase name}}::TypeInfo; TypeInfo::DecodableType cppValue; @@ -78,9 +69,6 @@ static id _Nullable DecodeAttributeValueFor{{asUpperCamelCase name preserveAcron {{>decode_value target="value" source="cppValue" cluster=parent.name errorCode="*aError = err; return nil;" depth=0}} return value; } - {{#if (isProvisional (asUpperCamelCase ../name preserveAcronyms=true) attribute=(asUpperCamelCase name preserveAcronyms=true))}} - #endif // MTR_ENABLE_PROVISIONAL - {{/if}} {{/if}} {{/if}} {{/zcl_attributes_server}} diff --git a/src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt b/src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt index 506750566352aa..470221c850066e 100644 --- a/src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt +++ b/src/darwin/Framework/CHIP/templates/MTREventTLVValueDecoder-src.zapt @@ -27,9 +27,6 @@ static id _Nullable DecodeEventPayloadFor{{asUpperCamelCase name preserveAcronym switch (aEventId) { {{#zcl_events}} {{#if (isSupported (asUpperCamelCase ../name preserveAcronyms=true) event=(asUpperCamelCase name preserveAcronyms=true))}} - {{#if (isProvisional (asUpperCamelCase ../name preserveAcronyms=true) event=(asUpperCamelCase name preserveAcronyms=true))}} - #if MTR_ENABLE_PROVISIONAL - {{/if}} case Events::{{asUpperCamelCase name}}::Id: { Events::{{asUpperCamelCase name}}::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -52,9 +49,6 @@ static id _Nullable DecodeEventPayloadFor{{asUpperCamelCase name preserveAcronym return value; } - {{#if (isProvisional (asUpperCamelCase ../name preserveAcronyms=true) event=(asUpperCamelCase name preserveAcronyms=true))}} - #endif // MTR_ENABLE_PROVISIONAL - {{/if}} {{/if}} {{/zcl_events}} default: { diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm index bc32cf537ec4f6..232f5d3c7b726d 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm @@ -88,7 +88,6 @@ static id _Nullable DecodeGlobalAttributeValue(AttributeId aAttributeId, TLV::TL } return value; } -#if MTR_ENABLE_PROVISIONAL case Attributes::EventList::Id: { using TypeInfo = Attributes::EventList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -115,7 +114,6 @@ static id _Nullable DecodeGlobalAttributeValue(AttributeId aAttributeId, TLV::TL } return value; } -#endif // MTR_ENABLE_PROVISIONAL case Attributes::AttributeList::Id: { using TypeInfo = Attributes::AttributeList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -304,7 +302,6 @@ static id _Nullable DecodeAttributeValueForScenesCluster(AttributeId aAttributeI } return value; } -#if MTR_ENABLE_PROVISIONAL case Attributes::SceneTableSize::Id: { using TypeInfo = Attributes::SceneTableSize::TypeInfo; TypeInfo::DecodableType cppValue; @@ -316,8 +313,6 @@ static id _Nullable DecodeAttributeValueForScenesCluster(AttributeId aAttributeI value = [NSNumber numberWithUnsignedShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::RemainingCapacity::Id: { using TypeInfo = Attributes::RemainingCapacity::TypeInfo; TypeInfo::DecodableType cppValue; @@ -329,7 +324,6 @@ static id _Nullable DecodeAttributeValueForScenesCluster(AttributeId aAttributeI value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -881,7 +875,6 @@ static id _Nullable DecodeAttributeValueForDescriptorCluster(AttributeId aAttrib } return value; } -#if MTR_ENABLE_PROVISIONAL case Attributes::TagList::Id: { using TypeInfo = Attributes::TagList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -929,7 +922,6 @@ static id _Nullable DecodeAttributeValueForDescriptorCluster(AttributeId aAttrib } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -2292,7 +2284,6 @@ static id _Nullable DecodeAttributeValueForPowerSourceCluster(AttributeId aAttri } return value; } -#if MTR_ENABLE_PROVISIONAL case Attributes::EndpointList::Id: { using TypeInfo = Attributes::EndpointList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -2319,7 +2310,6 @@ static id _Nullable DecodeAttributeValueForPowerSourceCluster(AttributeId aAttri } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -2518,7 +2508,6 @@ static id _Nullable DecodeAttributeValueForNetworkCommissioningCluster(Attribute } return value; } -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedWiFiBands::Id: { using TypeInfo = Attributes::SupportedWiFiBands::TypeInfo; TypeInfo::DecodableType cppValue; @@ -2545,8 +2534,6 @@ static id _Nullable DecodeAttributeValueForNetworkCommissioningCluster(Attribute } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedThreadFeatures::Id: { using TypeInfo = Attributes::SupportedThreadFeatures::TypeInfo; TypeInfo::DecodableType cppValue; @@ -2558,8 +2545,6 @@ static id _Nullable DecodeAttributeValueForNetworkCommissioningCluster(Attribute value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ThreadVersion::Id: { using TypeInfo = Attributes::ThreadVersion::TypeInfo; TypeInfo::DecodableType cppValue; @@ -2571,7 +2556,6 @@ static id _Nullable DecodeAttributeValueForNetworkCommissioningCluster(Attribute value = [NSNumber numberWithUnsignedShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -4114,7 +4098,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI { using namespace Clusters::TimeSynchronization; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::UTCTime::Id: { using TypeInfo = Attributes::UTCTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4130,8 +4113,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Granularity::Id: { using TypeInfo = Attributes::Granularity::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4143,8 +4124,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::TimeSource::Id: { using TypeInfo = Attributes::TimeSource::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4156,8 +4135,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::TrustedTimeSource::Id: { using TypeInfo = Attributes::TrustedTimeSource::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4176,8 +4153,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::DefaultNTP::Id: { using TypeInfo = Attributes::DefaultNTP::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4198,8 +4173,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::TimeZone::Id: { using TypeInfo = Attributes::TimeZone::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4238,8 +4211,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::DSTOffset::Id: { using TypeInfo = Attributes::DSTOffset::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4273,8 +4244,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LocalTime::Id: { using TypeInfo = Attributes::LocalTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4290,8 +4259,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::TimeZoneDatabase::Id: { using TypeInfo = Attributes::TimeZoneDatabase::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4303,8 +4270,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::NTPServerAvailable::Id: { using TypeInfo = Attributes::NTPServerAvailable::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4316,8 +4281,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::TimeZoneListMaxSize::Id: { using TypeInfo = Attributes::TimeZoneListMaxSize::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4329,8 +4292,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::DSTOffsetListMaxSize::Id: { using TypeInfo = Attributes::DSTOffsetListMaxSize::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4342,8 +4303,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportsDNSResolve::Id: { using TypeInfo = Attributes::SupportsDNSResolve::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4355,7 +4314,6 @@ static id _Nullable DecodeAttributeValueForTimeSynchronizationCluster(AttributeI value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5096,7 +5054,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt { using namespace Clusters::IcdManagement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::IdleModeDuration::Id: { using TypeInfo = Attributes::IdleModeDuration::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5108,8 +5065,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ActiveModeDuration::Id: { using TypeInfo = Attributes::ActiveModeDuration::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5121,8 +5076,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ActiveModeThreshold::Id: { using TypeInfo = Attributes::ActiveModeThreshold::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5134,8 +5087,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt value = [NSNumber numberWithUnsignedShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::RegisteredClients::Id: { using TypeInfo = Attributes::RegisteredClients::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5165,8 +5116,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ICDCounter::Id: { using TypeInfo = Attributes::ICDCounter::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5178,8 +5127,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ClientsSupportedPerFabric::Id: { using TypeInfo = Attributes::ClientsSupportedPerFabric::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5191,8 +5138,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt value = [NSNumber numberWithUnsignedShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::UserActiveModeTriggerHint::Id: { using TypeInfo = Attributes::UserActiveModeTriggerHint::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5204,8 +5149,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::UserActiveModeTriggerInstruction::Id: { using TypeInfo = Attributes::UserActiveModeTriggerInstruction::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5222,7 +5165,6 @@ static id _Nullable DecodeAttributeValueForICDManagementCluster(AttributeId aAtt } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5370,7 +5312,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherModeCluster(AttributeId { using namespace Clusters::LaundryWasherMode; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedModes::Id: { using TypeInfo = Attributes::SupportedModes::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5426,8 +5367,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherModeCluster(AttributeId } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentMode::Id: { using TypeInfo = Attributes::CurrentMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5439,8 +5378,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherModeCluster(AttributeId value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::StartUpMode::Id: { using TypeInfo = Attributes::StartUpMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5456,8 +5393,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherModeCluster(AttributeId } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5473,7 +5408,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherModeCluster(AttributeId } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5486,7 +5420,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAndTemperatureControlledC { using namespace Clusters::RefrigeratorAndTemperatureControlledCabinetMode; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedModes::Id: { using TypeInfo = Attributes::SupportedModes::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5542,8 +5475,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAndTemperatureControlledC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentMode::Id: { using TypeInfo = Attributes::CurrentMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5555,8 +5486,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAndTemperatureControlledC value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::StartUpMode::Id: { using TypeInfo = Attributes::StartUpMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5572,8 +5501,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAndTemperatureControlledC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5589,7 +5516,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAndTemperatureControlledC } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5602,7 +5528,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherControlsCluster(Attribut { using namespace Clusters::LaundryWasherControls; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SpinSpeeds::Id: { using TypeInfo = Attributes::SpinSpeeds::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5634,8 +5559,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherControlsCluster(Attribut } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SpinSpeedCurrent::Id: { using TypeInfo = Attributes::SpinSpeedCurrent::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5651,8 +5574,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherControlsCluster(Attribut } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::NumberOfRinses::Id: { using TypeInfo = Attributes::NumberOfRinses::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5664,8 +5585,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherControlsCluster(Attribut value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedRinses::Id: { using TypeInfo = Attributes::SupportedRinses::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5692,7 +5611,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherControlsCluster(Attribut } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5705,7 +5623,6 @@ static id _Nullable DecodeAttributeValueForRVCRunModeCluster(AttributeId aAttrib { using namespace Clusters::RvcRunMode; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedModes::Id: { using TypeInfo = Attributes::SupportedModes::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5761,8 +5678,6 @@ static id _Nullable DecodeAttributeValueForRVCRunModeCluster(AttributeId aAttrib } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentMode::Id: { using TypeInfo = Attributes::CurrentMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5774,8 +5689,6 @@ static id _Nullable DecodeAttributeValueForRVCRunModeCluster(AttributeId aAttrib value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5791,7 +5704,6 @@ static id _Nullable DecodeAttributeValueForRVCRunModeCluster(AttributeId aAttrib } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5804,7 +5716,6 @@ static id _Nullable DecodeAttributeValueForRVCCleanModeCluster(AttributeId aAttr { using namespace Clusters::RvcCleanMode; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedModes::Id: { using TypeInfo = Attributes::SupportedModes::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5860,8 +5771,6 @@ static id _Nullable DecodeAttributeValueForRVCCleanModeCluster(AttributeId aAttr } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentMode::Id: { using TypeInfo = Attributes::CurrentMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5873,8 +5782,6 @@ static id _Nullable DecodeAttributeValueForRVCCleanModeCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5890,7 +5797,6 @@ static id _Nullable DecodeAttributeValueForRVCCleanModeCluster(AttributeId aAttr } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -5903,7 +5809,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId { using namespace Clusters::TemperatureControl; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::TemperatureSetpoint::Id: { using TypeInfo = Attributes::TemperatureSetpoint::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5915,8 +5820,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId value = [NSNumber numberWithShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinTemperature::Id: { using TypeInfo = Attributes::MinTemperature::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5928,8 +5831,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId value = [NSNumber numberWithShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxTemperature::Id: { using TypeInfo = Attributes::MaxTemperature::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5941,8 +5842,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId value = [NSNumber numberWithShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Step::Id: { using TypeInfo = Attributes::Step::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5954,8 +5853,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId value = [NSNumber numberWithShort:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SelectedTemperatureLevel::Id: { using TypeInfo = Attributes::SelectedTemperatureLevel::TypeInfo; TypeInfo::DecodableType cppValue; @@ -5967,8 +5864,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedTemperatureLevels::Id: { using TypeInfo = Attributes::SupportedTemperatureLevels::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6000,7 +5895,6 @@ static id _Nullable DecodeAttributeValueForTemperatureControlCluster(AttributeId } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6013,7 +5907,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAlarmCluster(AttributeId { using namespace Clusters::RefrigeratorAlarm; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::Mask::Id: { using TypeInfo = Attributes::Mask::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6025,8 +5918,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAlarmCluster(AttributeId value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::State::Id: { using TypeInfo = Attributes::State::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6038,8 +5929,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAlarmCluster(AttributeId value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Supported::Id: { using TypeInfo = Attributes::Supported::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6051,7 +5940,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAlarmCluster(AttributeId value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6064,7 +5952,6 @@ static id _Nullable DecodeAttributeValueForDishwasherModeCluster(AttributeId aAt { using namespace Clusters::DishwasherMode; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedModes::Id: { using TypeInfo = Attributes::SupportedModes::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6120,8 +6007,6 @@ static id _Nullable DecodeAttributeValueForDishwasherModeCluster(AttributeId aAt } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentMode::Id: { using TypeInfo = Attributes::CurrentMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6133,8 +6018,6 @@ static id _Nullable DecodeAttributeValueForDishwasherModeCluster(AttributeId aAt value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::StartUpMode::Id: { using TypeInfo = Attributes::StartUpMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6150,8 +6033,6 @@ static id _Nullable DecodeAttributeValueForDishwasherModeCluster(AttributeId aAt } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OnMode::Id: { using TypeInfo = Attributes::OnMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6167,7 +6048,6 @@ static id _Nullable DecodeAttributeValueForDishwasherModeCluster(AttributeId aAt } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6180,7 +6060,6 @@ static id _Nullable DecodeAttributeValueForAirQualityCluster(AttributeId aAttrib { using namespace Clusters::AirQuality; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::AirQuality::Id: { using TypeInfo = Attributes::AirQuality::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6192,7 +6071,6 @@ static id _Nullable DecodeAttributeValueForAirQualityCluster(AttributeId aAttrib value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6205,7 +6083,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr { using namespace Clusters::SmokeCoAlarm; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::ExpressedState::Id: { using TypeInfo = Attributes::ExpressedState::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6217,8 +6094,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SmokeState::Id: { using TypeInfo = Attributes::SmokeState::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6230,8 +6105,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::COState::Id: { using TypeInfo = Attributes::COState::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6243,8 +6116,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::BatteryAlert::Id: { using TypeInfo = Attributes::BatteryAlert::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6256,8 +6127,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::DeviceMuted::Id: { using TypeInfo = Attributes::DeviceMuted::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6269,8 +6138,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::TestInProgress::Id: { using TypeInfo = Attributes::TestInProgress::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6282,8 +6149,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::HardwareFaultAlert::Id: { using TypeInfo = Attributes::HardwareFaultAlert::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6295,8 +6160,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::EndOfServiceAlert::Id: { using TypeInfo = Attributes::EndOfServiceAlert::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6308,8 +6171,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::InterconnectSmokeAlarm::Id: { using TypeInfo = Attributes::InterconnectSmokeAlarm::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6321,8 +6182,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::InterconnectCOAlarm::Id: { using TypeInfo = Attributes::InterconnectCOAlarm::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6334,8 +6193,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ContaminationState::Id: { using TypeInfo = Attributes::ContaminationState::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6347,8 +6204,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::SmokeSensitivityLevel::Id: { using TypeInfo = Attributes::SmokeSensitivityLevel::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6360,8 +6215,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ExpiryDate::Id: { using TypeInfo = Attributes::ExpiryDate::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6373,7 +6226,6 @@ static id _Nullable DecodeAttributeValueForSmokeCOAlarmCluster(AttributeId aAttr value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6386,7 +6238,6 @@ static id _Nullable DecodeAttributeValueForDishwasherAlarmCluster(AttributeId aA { using namespace Clusters::DishwasherAlarm; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::Mask::Id: { using TypeInfo = Attributes::Mask::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6398,8 +6249,6 @@ static id _Nullable DecodeAttributeValueForDishwasherAlarmCluster(AttributeId aA value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Latch::Id: { using TypeInfo = Attributes::Latch::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6411,8 +6260,6 @@ static id _Nullable DecodeAttributeValueForDishwasherAlarmCluster(AttributeId aA value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::State::Id: { using TypeInfo = Attributes::State::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6424,8 +6271,6 @@ static id _Nullable DecodeAttributeValueForDishwasherAlarmCluster(AttributeId aA value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Supported::Id: { using TypeInfo = Attributes::Supported::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6437,7 +6282,6 @@ static id _Nullable DecodeAttributeValueForDishwasherAlarmCluster(AttributeId aA value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6450,7 +6294,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenModeCluster(AttributeId { using namespace Clusters::MicrowaveOvenMode; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::SupportedModes::Id: { using TypeInfo = Attributes::SupportedModes::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6506,8 +6349,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenModeCluster(AttributeId } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentMode::Id: { using TypeInfo = Attributes::CurrentMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6519,7 +6360,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenModeCluster(AttributeId value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6532,7 +6372,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenControlCluster(Attribute { using namespace Clusters::MicrowaveOvenControl; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::CookTime::Id: { using TypeInfo = Attributes::CookTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6544,8 +6383,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenControlCluster(Attribute value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PowerSetting::Id: { using TypeInfo = Attributes::PowerSetting::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6557,8 +6394,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenControlCluster(Attribute value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinPower::Id: { using TypeInfo = Attributes::MinPower::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6570,8 +6405,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenControlCluster(Attribute value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxPower::Id: { using TypeInfo = Attributes::MaxPower::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6583,8 +6416,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenControlCluster(Attribute value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PowerStep::Id: { using TypeInfo = Attributes::PowerStep::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6596,7 +6427,6 @@ static id _Nullable DecodeAttributeValueForMicrowaveOvenControlCluster(Attribute value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6609,7 +6439,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a { using namespace Clusters::OperationalState; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::PhaseList::Id: { using TypeInfo = Attributes::PhaseList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6645,8 +6474,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentPhase::Id: { using TypeInfo = Attributes::CurrentPhase::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6662,8 +6489,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CountdownTime::Id: { using TypeInfo = Attributes::CountdownTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6679,8 +6504,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OperationalStateList::Id: { using TypeInfo = Attributes::OperationalStateList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6718,8 +6541,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OperationalState::Id: { using TypeInfo = Attributes::OperationalState::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6731,8 +6552,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OperationalError::Id: { using TypeInfo = Attributes::OperationalError::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6765,7 +6584,6 @@ static id _Nullable DecodeAttributeValueForOperationalStateCluster(AttributeId a } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6778,7 +6596,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI { using namespace Clusters::RvcOperationalState; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::PhaseList::Id: { using TypeInfo = Attributes::PhaseList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6814,8 +6631,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CurrentPhase::Id: { using TypeInfo = Attributes::CurrentPhase::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6831,8 +6646,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::CountdownTime::Id: { using TypeInfo = Attributes::CountdownTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6848,8 +6661,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OperationalStateList::Id: { using TypeInfo = Attributes::OperationalStateList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6887,8 +6698,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OperationalState::Id: { using TypeInfo = Attributes::OperationalState::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6900,8 +6709,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::OperationalError::Id: { using TypeInfo = Attributes::OperationalError::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6934,7 +6741,6 @@ static id _Nullable DecodeAttributeValueForRVCOperationalStateCluster(AttributeI } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -6947,7 +6753,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute { using namespace Clusters::HepaFilterMonitoring; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::Condition::Id: { using TypeInfo = Attributes::Condition::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6959,8 +6764,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::DegradationDirection::Id: { using TypeInfo = Attributes::DegradationDirection::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6972,8 +6775,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ChangeIndication::Id: { using TypeInfo = Attributes::ChangeIndication::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6985,8 +6786,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::InPlaceIndicator::Id: { using TypeInfo = Attributes::InPlaceIndicator::TypeInfo; TypeInfo::DecodableType cppValue; @@ -6998,8 +6797,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LastChangedTime::Id: { using TypeInfo = Attributes::LastChangedTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7015,8 +6812,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ReplacementProductList::Id: { using TypeInfo = Attributes::ReplacementProductList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7050,7 +6845,6 @@ static id _Nullable DecodeAttributeValueForHEPAFilterMonitoringCluster(Attribute } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -7063,7 +6857,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste { using namespace Clusters::ActivatedCarbonFilterMonitoring; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::Condition::Id: { using TypeInfo = Attributes::Condition::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7075,8 +6868,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::DegradationDirection::Id: { using TypeInfo = Attributes::DegradationDirection::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7088,8 +6879,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ChangeIndication::Id: { using TypeInfo = Attributes::ChangeIndication::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7101,8 +6890,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::InPlaceIndicator::Id: { using TypeInfo = Attributes::InPlaceIndicator::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7114,8 +6901,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LastChangedTime::Id: { using TypeInfo = Attributes::LastChangedTime::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7131,8 +6916,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::ReplacementProductList::Id: { using TypeInfo = Attributes::ReplacementProductList::TypeInfo; TypeInfo::DecodableType cppValue; @@ -7166,7 +6949,6 @@ static id _Nullable DecodeAttributeValueForActivatedCarbonFilterMonitoringCluste } return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -9069,7 +8851,6 @@ static id _Nullable DecodeAttributeValueForFanControlCluster(AttributeId aAttrib value = [NSNumber numberWithUnsignedChar:cppValue.Raw()]; return value; } -#if MTR_ENABLE_PROVISIONAL case Attributes::AirflowDirection::Id: { using TypeInfo = Attributes::AirflowDirection::TypeInfo; TypeInfo::DecodableType cppValue; @@ -9081,7 +8862,6 @@ static id _Nullable DecodeAttributeValueForFanControlCluster(AttributeId aAttrib value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -10534,7 +10314,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen { using namespace Clusters::CarbonMonoxideConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10550,8 +10329,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10567,8 +10344,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10584,8 +10359,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10601,8 +10374,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10614,8 +10385,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10631,8 +10400,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10644,8 +10411,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10657,8 +10422,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10670,8 +10433,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10683,8 +10444,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10696,7 +10455,6 @@ static id _Nullable DecodeAttributeValueForCarbonMonoxideConcentrationMeasuremen value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -10709,7 +10467,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement { using namespace Clusters::CarbonDioxideConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10725,8 +10482,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10742,8 +10497,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10759,8 +10512,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10776,8 +10527,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10789,8 +10538,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10806,8 +10553,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10819,8 +10564,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10832,8 +10575,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10845,8 +10586,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10858,8 +10597,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10871,7 +10608,6 @@ static id _Nullable DecodeAttributeValueForCarbonDioxideConcentrationMeasurement value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -10884,7 +10620,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme { using namespace Clusters::NitrogenDioxideConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10900,8 +10635,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10917,8 +10650,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10934,8 +10665,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10951,8 +10680,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10964,8 +10691,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10981,8 +10706,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -10994,8 +10717,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11007,8 +10728,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11020,8 +10739,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11033,8 +10750,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11046,7 +10761,6 @@ static id _Nullable DecodeAttributeValueForNitrogenDioxideConcentrationMeasureme value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -11059,7 +10773,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( { using namespace Clusters::OzoneConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11075,8 +10788,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11092,8 +10803,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11109,8 +10818,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11126,8 +10833,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11139,8 +10844,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11156,8 +10859,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11169,8 +10870,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11182,8 +10881,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11195,8 +10892,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11208,8 +10903,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11221,7 +10914,6 @@ static id _Nullable DecodeAttributeValueForOzoneConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -11234,7 +10926,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A { using namespace Clusters::Pm25ConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11250,8 +10941,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11267,8 +10956,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11284,8 +10971,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11301,8 +10986,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11314,8 +10997,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11331,8 +11012,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11344,8 +11023,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11357,8 +11034,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11370,8 +11045,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11383,8 +11056,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11396,7 +11067,6 @@ static id _Nullable DecodeAttributeValueForPM25ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -11409,7 +11079,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC { using namespace Clusters::FormaldehydeConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11425,8 +11094,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11442,8 +11109,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11459,8 +11124,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11476,8 +11139,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11489,8 +11150,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11506,8 +11165,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11519,8 +11176,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11532,8 +11187,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11545,8 +11198,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11558,8 +11209,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11571,7 +11220,6 @@ static id _Nullable DecodeAttributeValueForFormaldehydeConcentrationMeasurementC value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -11584,7 +11232,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At { using namespace Clusters::Pm1ConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11600,8 +11247,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11617,8 +11262,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11634,8 +11277,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11651,8 +11292,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11664,8 +11303,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11681,8 +11318,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11694,8 +11329,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11707,8 +11340,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11720,8 +11351,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11733,8 +11362,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11746,7 +11373,6 @@ static id _Nullable DecodeAttributeValueForPM1ConcentrationMeasurementCluster(At value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -11759,7 +11385,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A { using namespace Clusters::Pm10ConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11775,8 +11400,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11792,8 +11415,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11809,8 +11430,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11826,8 +11445,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11839,8 +11456,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11856,8 +11471,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11869,8 +11482,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11882,8 +11493,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11895,8 +11504,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11908,8 +11515,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11921,7 +11526,6 @@ static id _Nullable DecodeAttributeValueForPM10ConcentrationMeasurementCluster(A value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -11934,7 +11538,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr { using namespace Clusters::TotalVolatileOrganicCompoundsConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11950,8 +11553,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11967,8 +11568,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -11984,8 +11583,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12001,8 +11598,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12014,8 +11609,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12031,8 +11624,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12044,8 +11635,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12057,8 +11646,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12070,8 +11657,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12083,8 +11668,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12096,7 +11679,6 @@ static id _Nullable DecodeAttributeValueForTotalVolatileOrganicCompoundsConcentr value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -12109,7 +11691,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( { using namespace Clusters::RadonConcentrationMeasurement; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasuredValue::Id: { using TypeInfo = Attributes::MeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12125,8 +11706,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MinMeasuredValue::Id: { using TypeInfo = Attributes::MinMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12142,8 +11721,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MaxMeasuredValue::Id: { using TypeInfo = Attributes::MaxMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12159,8 +11736,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValue::Id: { using TypeInfo = Attributes::PeakMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12176,8 +11751,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::PeakMeasuredValueWindow::Id: { using TypeInfo = Attributes::PeakMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12189,8 +11762,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValue::Id: { using TypeInfo = Attributes::AverageMeasuredValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12206,8 +11777,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( } return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::AverageMeasuredValueWindow::Id: { using TypeInfo = Attributes::AverageMeasuredValueWindow::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12219,8 +11788,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedInt:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::Uncertainty::Id: { using TypeInfo = Attributes::Uncertainty::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12232,8 +11799,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( value = [NSNumber numberWithFloat:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementUnit::Id: { using TypeInfo = Attributes::MeasurementUnit::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12245,8 +11810,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::MeasurementMedium::Id: { using TypeInfo = Attributes::MeasurementMedium::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12258,8 +11821,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Attributes::LevelValue::Id: { using TypeInfo = Attributes::LevelValue::TypeInfo; TypeInfo::DecodableType cppValue; @@ -12271,7 +11832,6 @@ static id _Nullable DecodeAttributeValueForRadonConcentrationMeasurementCluster( value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -15886,7 +15446,6 @@ static id _Nullable DecodeAttributeValueForSampleMEICluster(AttributeId aAttribu { using namespace Clusters::SampleMei; switch (aAttributeId) { -#if MTR_ENABLE_PROVISIONAL case Attributes::FlipFlop::Id: { using TypeInfo = Attributes::FlipFlop::TypeInfo; TypeInfo::DecodableType cppValue; @@ -15898,7 +15457,6 @@ static id _Nullable DecodeAttributeValueForSampleMEICluster(AttributeId aAttribu value = [NSNumber numberWithBool:cppValue]; return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } diff --git a/src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm index 1b857e0ab5d2e4..56db7d378912ae 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTREventTLVValueDecoder.mm @@ -1245,7 +1245,6 @@ static id _Nullable DecodeEventPayloadForTimeSynchronizationCluster(EventId aEve { using namespace Clusters::TimeSynchronization; switch (aEventId) { -#if MTR_ENABLE_PROVISIONAL case Events::DSTTableEmpty::Id: { Events::DSTTableEmpty::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1257,8 +1256,6 @@ static id _Nullable DecodeEventPayloadForTimeSynchronizationCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::DSTStatus::Id: { Events::DSTStatus::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1276,8 +1273,6 @@ static id _Nullable DecodeEventPayloadForTimeSynchronizationCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::TimeZoneStatus::Id: { Events::TimeZoneStatus::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1309,8 +1304,6 @@ static id _Nullable DecodeEventPayloadForTimeSynchronizationCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::TimeFailure::Id: { Events::TimeFailure::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1322,8 +1315,6 @@ static id _Nullable DecodeEventPayloadForTimeSynchronizationCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::MissingTrustedTimeSource::Id: { Events::MissingTrustedTimeSource::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1335,7 +1326,6 @@ static id _Nullable DecodeEventPayloadForTimeSynchronizationCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -1742,7 +1732,6 @@ static id _Nullable DecodeEventPayloadForRefrigeratorAlarmCluster(EventId aEvent { using namespace Clusters::RefrigeratorAlarm; switch (aEventId) { -#if MTR_ENABLE_PROVISIONAL case Events::Notify::Id: { Events::Notify::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1775,7 +1764,6 @@ static id _Nullable DecodeEventPayloadForRefrigeratorAlarmCluster(EventId aEvent return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -1812,7 +1800,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T { using namespace Clusters::SmokeCoAlarm; switch (aEventId) { -#if MTR_ENABLE_PROVISIONAL case Events::SmokeAlarm::Id: { Events::SmokeAlarm::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1830,8 +1817,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::COAlarm::Id: { Events::COAlarm::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1849,8 +1834,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::LowBattery::Id: { Events::LowBattery::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1868,8 +1851,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::HardwareFault::Id: { Events::HardwareFault::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1881,8 +1862,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::EndOfService::Id: { Events::EndOfService::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1894,8 +1873,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::SelfTestComplete::Id: { Events::SelfTestComplete::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1907,8 +1884,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::AlarmMuted::Id: { Events::AlarmMuted::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1920,8 +1895,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::MuteEnded::Id: { Events::MuteEnded::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1933,8 +1906,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::InterconnectSmokeAlarm::Id: { Events::InterconnectSmokeAlarm::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1952,8 +1923,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::InterconnectCOAlarm::Id: { Events::InterconnectCOAlarm::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1971,8 +1940,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::AllClear::Id: { Events::AllClear::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -1984,7 +1951,6 @@ static id _Nullable DecodeEventPayloadForSmokeCOAlarmCluster(EventId aEventId, T return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -1997,7 +1963,6 @@ static id _Nullable DecodeEventPayloadForDishwasherAlarmCluster(EventId aEventId { using namespace Clusters::DishwasherAlarm; switch (aEventId) { -#if MTR_ENABLE_PROVISIONAL case Events::Notify::Id: { Events::Notify::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -2030,7 +1995,6 @@ static id _Nullable DecodeEventPayloadForDishwasherAlarmCluster(EventId aEventId return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -2067,7 +2031,6 @@ static id _Nullable DecodeEventPayloadForOperationalStateCluster(EventId aEventI { using namespace Clusters::OperationalState; switch (aEventId) { -#if MTR_ENABLE_PROVISIONAL case Events::OperationalError::Id: { Events::OperationalError::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -2106,8 +2069,6 @@ static id _Nullable DecodeEventPayloadForOperationalStateCluster(EventId aEventI return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::OperationCompletion::Id: { Events::OperationCompletion::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -2151,7 +2112,6 @@ static id _Nullable DecodeEventPayloadForOperationalStateCluster(EventId aEventI return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } @@ -2164,7 +2124,6 @@ static id _Nullable DecodeEventPayloadForRVCOperationalStateCluster(EventId aEve { using namespace Clusters::RvcOperationalState; switch (aEventId) { -#if MTR_ENABLE_PROVISIONAL case Events::OperationalError::Id: { Events::OperationalError::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -2203,8 +2162,6 @@ static id _Nullable DecodeEventPayloadForRVCOperationalStateCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL -#if MTR_ENABLE_PROVISIONAL case Events::OperationCompletion::Id: { Events::OperationCompletion::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); @@ -2248,7 +2205,6 @@ static id _Nullable DecodeEventPayloadForRVCOperationalStateCluster(EventId aEve return value; } -#endif // MTR_ENABLE_PROVISIONAL default: { break; } diff --git a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj index 53ce6ed70871b9..68816fa9dd27b1 100644 --- a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj @@ -2060,6 +2060,7 @@ "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", "$(inherited)", "CHIP_CONFIG_SKIP_APP_SPECIFIC_GENERATED_HEADER_INCLUDES=1", + "MTR_ENABLE_PROVISIONAL=1", ); HEADER_SEARCH_PATHS = ( "$(CHIP_ROOT)/src", @@ -2225,6 +2226,7 @@ "CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=", "$(inherited)", "CHIP_CONFIG_SKIP_APP_SPECIFIC_GENERATED_HEADER_INCLUDES=1", + "MTR_ENABLE_PROVISIONAL=1", ); HEADER_SEARCH_PATHS = ( "$(CHIP_ROOT)/src",