From 5f2a580449996a92b86026cc7b753197b78b5fdc Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 24 Nov 2021 02:03:22 -0500 Subject: [PATCH] Get rid of the non-spec EMBER_ZCL_STATUS_INVALID_ARGUMENT value. It was added without checking the spec (which typically uses INVALID_COMMAND or CONSTRAINT_ERROR for the cases this is ostensibly meant to cover), and collides with the spec-defined NEEDS_TIMED_INTERACTION value. --- .../src/static-supported-modes-manager.cpp | 2 +- .../rpc_services/internal/StatusUtils.h | 2 - .../ExampleOTARequestor.cpp | 10 +- .../clusters/ota-provider/ota-provider.cpp | 8 +- .../test-cluster-server.cpp | 2 +- .../thermostat-server/thermostat-server.cpp | 10 +- src/app/util/af-enums.h | 8 +- src/app/util/error-mapping.cpp | 8 +- src/app/util/im-client-callbacks.cpp | 7 +- .../app/attributes/Accessors-src.zapt | 10 +- src/protocols/interaction_model/Constants.h | 2 +- .../zap-generated/attributes/Accessors.cpp | 3740 ++++++++--------- 12 files changed, 1906 insertions(+), 1903 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp b/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp index 62a864be8adc68..4f216bebd73e83 100644 --- a/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp +++ b/examples/all-clusters-app/all-clusters-common/src/static-supported-modes-manager.cpp @@ -62,7 +62,7 @@ EmberAfStatus StaticSupportedModesManager::getModeOptionByMode(unsigned short en } } emberAfPrintln(EMBER_AF_PRINT_DEBUG, "Cannot find the mode %" PRIu8, mode); - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_INVALID_VALUE; } const ModeSelect::SupportedModesManager * ModeSelect::getSupportedModesManager() diff --git a/examples/common/pigweed/rpc_services/internal/StatusUtils.h b/examples/common/pigweed/rpc_services/internal/StatusUtils.h index e5889d9e53ecb8..0eaab65d6706a0 100644 --- a/examples/common/pigweed/rpc_services/internal/StatusUtils.h +++ b/examples/common/pigweed/rpc_services/internal/StatusUtils.h @@ -41,8 +41,6 @@ constexpr pw::Status EmberStatusToPwStatus(EmberAfStatus ember_status) { case EMBER_ZCL_STATUS_SUCCESS: return pw::OkStatus(); - case EMBER_ZCL_STATUS_INVALID_ARGUMENT: - return pw::Status::InvalidArgument(); case EMBER_ZCL_STATUS_NOT_FOUND: return pw::Status::NotFound(); case EMBER_ZCL_STATUS_NOT_AUTHORIZED: diff --git a/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp b/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp index ce69fadfa6cb10..b251d3bfc07c46 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp +++ b/examples/ota-requestor-app/ota-requestor-common/ExampleOTARequestor.cpp @@ -70,14 +70,14 @@ EmberAfStatus ExampleOTARequestor::HandleAnnounceOTAProvider( auto & providerLocation = commandData.providerLocation; auto & announcementReason = commandData.announcementReason; - if (commandObj == nullptr || commandObj->GetExchangeContext() == nullptr) + if (commandObj == nullptr) { - ChipLogError(SoftwareUpdate, "Cannot access ExchangeContext for FabricIndex"); - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + ChipLogError(SoftwareUpdate, "Cannot access get FabricIndex"); + return EMBER_ZCL_STATUS_INVALID_COMMAND; } mProviderNodeId = providerLocation; - mProviderFabricIndex = commandObj->GetExchangeContext()->GetSessionHandle().GetFabricIndex(); + mProviderFabricIndex = commandObj->GetAccessingFabricIndex(); ChipLogProgress(SoftwareUpdate, "OTA Requestor received AnnounceOTAProvider"); ChipLogDetail(SoftwareUpdate, " FabricIndex: %" PRIu8, mProviderFabricIndex); @@ -103,7 +103,7 @@ EmberAfStatus ExampleOTARequestor::HandleAnnounceOTAProvider( break; default: ChipLogError(SoftwareUpdate, "Unexpected announcementReason: %" PRIu8, static_cast(announcementReason)); - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_INVALID_COMMAND; } chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(msToStart), StartDelayTimerHandler, this); diff --git a/src/app/clusters/ota-provider/ota-provider.cpp b/src/app/clusters/ota-provider/ota-provider.cpp index 2f95707e8bb77a..bff08e61551145 100644 --- a/src/app/clusters/ota-provider/ota-provider.cpp +++ b/src/app/clusters/ota-provider/ota-provider.cpp @@ -88,7 +88,7 @@ bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback( if (updateToken.size() > kUpdateTokenMaxLength || updateToken.size() < kUpdateTokenMinLength) { ChipLogError(Zcl, "expected size %zu for UpdateToken, got %zu", kUpdateTokenMaxLength, updateToken.size()); - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); + emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND); return true; } @@ -131,7 +131,7 @@ bool emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback( if (updateToken.size() > kUpdateTokenMaxLength || updateToken.size() < kUpdateTokenMinLength) { ChipLogError(Zcl, "expected size %zu for UpdateToken, got %zu", kUpdateTokenMaxLength, updateToken.size()); - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); + emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND); return true; } @@ -215,14 +215,14 @@ bool emberAfOtaSoftwareUpdateProviderClusterQueryImageCallback(app::CommandHandl if (location.HasValue() && location.Value().size() != kLocationLen) { ChipLogError(Zcl, "location param length %zu != expected length %zu", location.Value().size(), kLocationLen); - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); + emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND); return true; } if (metadataForProvider.HasValue() && metadataForProvider.Value().size() > kMaxMetadataLen) { ChipLogError(Zcl, "metadata size %zu exceeds max %zu", metadataForProvider.Value().size(), kMaxMetadataLen); - emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); + emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND); return true; } diff --git a/src/app/clusters/test-cluster-server/test-cluster-server.cpp b/src/app/clusters/test-cluster-server/test-cluster-server.cpp index fe34de046e3691..5f0b6c70fa4174 100644 --- a/src/app/clusters/test-cluster-server/test-cluster-server.cpp +++ b/src/app/clusters/test-cluster-server/test-cluster-server.cpp @@ -293,7 +293,7 @@ bool emberAfTestClusterClusterTestAddArgumentsCallback(CommandHandler * apComman { if (commandData.arg1 > UINT8_MAX - commandData.arg2) { - return emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_ARGUMENT); + return emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_INVALID_COMMAND); } TestAddArgumentsResponse::Type responseData; diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index e87df17997e8ea..558ac8fdc42ba8 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -692,7 +692,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co else { ChipLogError(Zcl, "Error: Could Not adjust heating setpoint to maintain dead band!"); - status = EMBER_ZCL_STATUS_INVALID_ARGUMENT; + status = EMBER_ZCL_STATUS_INVALID_COMMAND; } } else @@ -710,7 +710,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co ChipLogError(Zcl, "Error: GetOccupiedCoolingSetpoint failed!"); } else - status = EMBER_ZCL_STATUS_INVALID_ARGUMENT; + status = EMBER_ZCL_STATUS_INVALID_COMMAND; break; case EMBER_ZCL_SETPOINT_ADJUST_MODE_HEAT_SETPOINT: @@ -745,7 +745,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co else { ChipLogError(Zcl, "Error: Could Not adjust cooling setpoint to maintain dead band!"); - status = EMBER_ZCL_STATUS_INVALID_ARGUMENT; + status = EMBER_ZCL_STATUS_INVALID_COMMAND; } } else @@ -763,11 +763,11 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co ChipLogError(Zcl, "Error: GetOccupiedHeatingSetpoint failed!"); } else - status = EMBER_ZCL_STATUS_INVALID_ARGUMENT; + status = EMBER_ZCL_STATUS_INVALID_COMMAND; break; default: - status = EMBER_ZCL_STATUS_INVALID_ARGUMENT; + status = EMBER_ZCL_STATUS_INVALID_COMMAND; break; } diff --git a/src/app/util/af-enums.h b/src/app/util/af-enums.h index 39b7824e87e45a..93473655c10d83 100644 --- a/src/app/util/af-enums.h +++ b/src/app/util/af-enums.h @@ -32,9 +32,11 @@ enum EmberAfStatus : uint8_t EMBER_ZCL_STATUS_UNSUP_GENERAL_COMMAND = 0x82, EMBER_ZCL_STATUS_UNSUP_MANUF_CLUSTER_COMMAND = 0x83, EMBER_ZCL_STATUS_UNSUP_MANUF_GENERAL_COMMAND = 0x84, - EMBER_ZCL_STATUS_INVALID_FIELD = 0x85, + EMBER_ZCL_STATUS_INVALID_COMMAND = 0x85, + EMBER_ZCL_STATUS_INVALID_FIELD = 0x85, // Same as INVALID_COMMAND EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE = 0x86, - EMBER_ZCL_STATUS_INVALID_VALUE = 0x87, + EMBER_ZCL_STATUS_CONSTRAINT_ERROR = 0x87, + EMBER_ZCL_STATUS_INVALID_VALUE = 0x87, // Same as CONSTRAINT_ERROR EMBER_ZCL_STATUS_READ_ONLY = 0x88, EMBER_ZCL_STATUS_INSUFFICIENT_SPACE = 0x89, EMBER_ZCL_STATUS_DUPLICATE_EXISTS = 0x8A, @@ -57,5 +59,5 @@ enum EmberAfStatus : uint8_t EMBER_ZCL_STATUS_SOFTWARE_FAILURE = 0xC1, EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER = 0xC3, EMBER_ZCL_STATUS_LIMIT_REACHED = 0xC4, - EMBER_ZCL_STATUS_INVALID_ARGUMENT = 0xC6, + EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION = 0xC6, }; diff --git a/src/app/util/error-mapping.cpp b/src/app/util/error-mapping.cpp index 921cd519d22a08..7745abf5dd68e7 100644 --- a/src/app/util/error-mapping.cpp +++ b/src/app/util/error-mapping.cpp @@ -105,8 +105,8 @@ EmberAfStatus ToEmberAfStatus(Protocols::InteractionModel::Status code) return EMBER_ZCL_STATUS_SUCCESS; case imcode::NoUpstreamSubscription: // 0xc5 return EMBER_ZCL_STATUS_FAILURE; - case imcode::InvalidArgument: // 0xc6 - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + case imcode::NeedsTimedInteraction: // 0xc6 + return EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION; // Default case is omitted intentionally so we can guarantee that we exhaust all of the error codes. } return EMBER_ZCL_STATUS_FAILURE; @@ -183,8 +183,8 @@ Protocols::InteractionModel::Status ToInteractionModelStatus(EmberAfStatus code) return imcode::UnsupportedCluster; case EMBER_ZCL_STATUS_LIMIT_REACHED: // 0xC4 return imcode::Success; - case EMBER_ZCL_STATUS_INVALID_ARGUMENT: // 0xC6 - return imcode::InvalidArgument; + case EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION: // 0xC6 + return imcode::NeedsTimedInteraction; default: return imcode::Failure; } diff --git a/src/app/util/im-client-callbacks.cpp b/src/app/util/im-client-callbacks.cpp index 7d3a83cdb952c5..1a471d6784f2a0 100644 --- a/src/app/util/im-client-callbacks.cpp +++ b/src/app/util/im-client-callbacks.cpp @@ -134,6 +134,9 @@ void LogStatus(uint8_t status) case EMBER_ZCL_STATUS_LIMIT_REACHED: ChipLogProgress(Zcl, " status: EMBER_ZCL_STATUS_LIMIT_REACHED (0x%02x)", status); break; + case EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION: + ChipLogProgress(Zcl, " status: EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION (0x%02x)", status); + break; default: ChipLogError(Zcl, "Unknow status: 0x%02x", status); break; @@ -264,8 +267,8 @@ static void LogIMStatus(Protocols::InteractionModel::Status status) case Protocols::InteractionModel::Status::NoUpstreamSubscription: ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; - case Protocols::InteractionModel::Status::InvalidArgument: - ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", to_underlying(status)); + case Protocols::InteractionModel::Status::NeedsTimedInteraction: + ChipLogProgress(Zcl, " status: NeedsTimedInteraction (0x%04" PRIx16 ")", to_underlying(status)); break; default: ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, to_underlying(status)); diff --git a/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt b/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt index b51829b143f0dc..04d0ec637e479b 100644 --- a/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt +++ b/src/app/zap-templates/templates/app/attributes/Accessors-src.zapt @@ -46,14 +46,14 @@ EmberAfStatus Get(chip::EndpointId endpoint, {{accessorGetterType this}} value) value.SetNull(); return EMBER_ZCL_STATUS_SUCCESS; {{else}} - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; {{/if}} } {{#if isNullable}} auto & span = value.SetNonNull(); {{/if}} {{~#*inline "value"}}{{#if isNullable}}span{{else}}value{{/if}}{{/inline}} - VerifyOrReturnError({{>value}}.size() == {{maxLength}}, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError({{>value}}.size() == {{maxLength}}, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy({{>value}}.data(), &zclString[{{>sizingBytes}}], {{maxLength}}); {{>value}}.reduce_size(length); return status; @@ -73,7 +73,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, {{accessorGetterType this}} value) {{else}} if (!NumericAttributeTraits<{{asUnderlyingZclType type}}>::CanRepresentValue(/* isNullable = */ {{isNullable}}, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; {{/if}} @@ -86,7 +86,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, {{asUnderlyingZclType type}} value) {{~#*inline "lengthType"}}uint{{#if (isShortString type)}}8{{else}}16{{/if}}_t{{/inline}} static_assert({{maxLength}} < NumericAttributeTraits<{{>lengthType}}>::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= {{maxLength}}, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= {{maxLength}}, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[{{maxLength}} + {{>sizingBytes}}]; emberAfCopyInt{{#if (isShortString type)}}8{{else}}16{{/if}}u(zclString, 0, static_cast<{{>lengthType}}>(value.size())); memcpy(&zclString[{{>sizingBytes}}], value.data(), value.size()); @@ -94,7 +94,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, {{asUnderlyingZclType type}} value) {{else}} if (!NumericAttributeTraits<{{asUnderlyingZclType type}}>::CanRepresentValue(/* isNullable = */ {{isNullable}}, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, {{>clusterId}}, Id, (uint8_t *) &value, ZCL_{{asDelimitedMacro type}}_ATTRIBUTE_TYPE); {{/if}} diff --git a/src/protocols/interaction_model/Constants.h b/src/protocols/interaction_model/Constants.h index c10316a3f481b4..b662b47324a876 100644 --- a/src/protocols/interaction_model/Constants.h +++ b/src/protocols/interaction_model/Constants.h @@ -108,7 +108,7 @@ enum class Status : uint16_t UnsupportedCluster = 0xc3, Deprecatedc4 = 0xc4, NoUpstreamSubscription = 0xc5, - InvalidArgument = 0xc6, + NeedsTimedInteraction = 0xc6, }; } // namespace InteractionModel diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index 30f27cbeeb0143..3248d2416cd98e 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -47,7 +47,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -56,7 +56,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -74,7 +74,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -83,7 +83,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -101,7 +101,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -110,7 +110,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -128,7 +128,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -137,7 +137,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -155,7 +155,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -164,7 +164,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -182,7 +182,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -191,7 +191,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -209,7 +209,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -218,7 +218,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -236,7 +236,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -245,7 +245,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -263,10 +263,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -274,7 +274,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -293,7 +293,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -302,7 +302,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -320,7 +320,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -329,7 +329,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -347,7 +347,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -356,7 +356,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -374,7 +374,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -383,7 +383,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -401,7 +401,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -410,7 +410,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -428,7 +428,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -437,7 +437,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -455,7 +455,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -464,7 +464,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -482,7 +482,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -491,7 +491,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -509,7 +509,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -518,7 +518,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -536,7 +536,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -545,7 +545,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -563,7 +563,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -572,7 +572,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -590,7 +590,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -599,7 +599,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -617,7 +617,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -626,7 +626,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -644,7 +644,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -653,7 +653,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); @@ -671,7 +671,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -680,7 +680,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -698,7 +698,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -707,7 +707,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -725,10 +725,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -736,7 +736,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -755,7 +755,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -764,7 +764,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -782,7 +782,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -791,7 +791,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -809,7 +809,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -818,7 +818,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -836,7 +836,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -845,7 +845,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -863,7 +863,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -872,7 +872,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -890,7 +890,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -899,7 +899,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -917,7 +917,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -926,7 +926,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -944,7 +944,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -953,7 +953,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -971,7 +971,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -980,7 +980,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -998,7 +998,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1007,7 +1007,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1025,7 +1025,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1034,7 +1034,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1052,7 +1052,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1061,7 +1061,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1079,7 +1079,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1088,7 +1088,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1106,7 +1106,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1115,7 +1115,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); @@ -1133,7 +1133,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1142,7 +1142,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1160,7 +1160,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1169,7 +1169,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1187,10 +1187,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -1198,7 +1198,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -1217,7 +1217,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1226,7 +1226,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -1244,7 +1244,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1253,7 +1253,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -1271,7 +1271,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1280,7 +1280,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1298,7 +1298,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1307,7 +1307,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1325,7 +1325,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1334,7 +1334,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -1352,7 +1352,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1361,7 +1361,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1379,7 +1379,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1388,7 +1388,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1406,7 +1406,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1415,7 +1415,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1433,7 +1433,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1442,7 +1442,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1460,7 +1460,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1469,7 +1469,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1487,7 +1487,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1496,7 +1496,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1514,7 +1514,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1523,7 +1523,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1541,7 +1541,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1550,7 +1550,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -1568,7 +1568,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1577,7 +1577,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); @@ -1601,7 +1601,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1610,7 +1610,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -1628,7 +1628,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1637,7 +1637,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -1655,7 +1655,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1664,7 +1664,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -1682,7 +1682,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1691,7 +1691,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -1709,7 +1709,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1718,7 +1718,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -1736,7 +1736,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1745,7 +1745,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -1763,7 +1763,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1772,7 +1772,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DeviceTemperatureConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -1796,7 +1796,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1805,7 +1805,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Identify::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -1822,7 +1822,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1831,7 +1831,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Identify::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -1854,7 +1854,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1863,7 +1863,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Groups::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -1886,7 +1886,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1895,7 +1895,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Scenes::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -1912,7 +1912,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1921,7 +1921,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Scenes::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -1938,7 +1938,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1947,7 +1947,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Scenes::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -1964,7 +1964,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1973,7 +1973,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Scenes::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -1990,7 +1990,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -1999,7 +1999,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Scenes::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -2016,7 +2016,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::NodeId * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2025,7 +2025,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::NodeId value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Scenes::Id, Id, (uint8_t *) &value, ZCL_NODE_ID_ATTRIBUTE_TYPE); } @@ -2048,7 +2048,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2057,7 +2057,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -2074,7 +2074,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2083,7 +2083,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2100,7 +2100,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2109,7 +2109,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2126,7 +2126,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2135,7 +2135,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2152,7 +2152,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2161,7 +2161,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2178,7 +2178,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2187,7 +2187,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -2204,7 +2204,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2213,7 +2213,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2230,7 +2230,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2239,7 +2239,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2256,7 +2256,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2265,7 +2265,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOff::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -2288,7 +2288,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2297,7 +2297,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOffSwitchConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -2315,7 +2315,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2324,7 +2324,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OnOffSwitchConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -2348,7 +2348,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2357,7 +2357,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2374,7 +2374,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2383,7 +2383,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2400,7 +2400,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2409,7 +2409,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2426,7 +2426,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2435,7 +2435,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2452,7 +2452,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2461,7 +2461,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2478,7 +2478,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2487,7 +2487,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2504,7 +2504,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2513,7 +2513,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2530,7 +2530,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2539,7 +2539,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -2556,7 +2556,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2565,7 +2565,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2582,7 +2582,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2591,7 +2591,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2608,7 +2608,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2617,7 +2617,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2634,7 +2634,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2643,7 +2643,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2660,7 +2660,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2669,7 +2669,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2686,7 +2686,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2695,7 +2695,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LevelControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -2718,7 +2718,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2727,7 +2727,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Alarms::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -2750,7 +2750,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2759,7 +2759,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_EPOCH_S_ATTRIBUTE_TYPE); } @@ -2776,7 +2776,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2785,7 +2785,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -2802,7 +2802,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2811,7 +2811,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_INT32S_ATTRIBUTE_TYPE); } @@ -2828,7 +2828,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2837,7 +2837,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -2854,7 +2854,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2863,7 +2863,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -2880,7 +2880,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2889,7 +2889,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_INT32S_ATTRIBUTE_TYPE); } @@ -2906,7 +2906,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2915,7 +2915,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -2932,7 +2932,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2941,7 +2941,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -2958,7 +2958,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2967,7 +2967,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_EPOCH_S_ATTRIBUTE_TYPE); } @@ -2984,7 +2984,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -2993,7 +2993,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Time::Id, Id, (uint8_t *) &value, ZCL_EPOCH_S_ATTRIBUTE_TYPE); } @@ -3016,10 +3016,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -3027,7 +3027,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3046,10 +3046,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -3057,7 +3057,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3076,10 +3076,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -3087,7 +3087,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3106,7 +3106,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3115,7 +3115,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BinaryInputBasic::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); @@ -3133,7 +3133,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3142,7 +3142,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BinaryInputBasic::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -3159,7 +3159,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3168,7 +3168,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BinaryInputBasic::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); @@ -3186,7 +3186,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3195,7 +3195,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BinaryInputBasic::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -3212,7 +3212,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3221,7 +3221,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BinaryInputBasic::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -3239,7 +3239,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3248,7 +3248,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BinaryInputBasic::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -3271,7 +3271,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3280,7 +3280,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerProfile::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -3297,7 +3297,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3306,7 +3306,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerProfile::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -3323,7 +3323,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3332,7 +3332,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerProfile::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -3349,7 +3349,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3358,7 +3358,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerProfile::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -3375,7 +3375,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3384,7 +3384,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerProfile::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -3407,7 +3407,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3416,7 +3416,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3433,7 +3433,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3442,7 +3442,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3459,7 +3459,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3468,7 +3468,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3497,7 +3497,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3506,7 +3506,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -3523,7 +3523,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3532,7 +3532,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -3549,7 +3549,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3558,7 +3558,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3575,7 +3575,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3584,7 +3584,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3601,7 +3601,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3610,7 +3610,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -3627,7 +3627,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3636,7 +3636,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -3653,7 +3653,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3662,7 +3662,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PollControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3685,10 +3685,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfLongStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 512, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 512, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[2], 512); value.reduce_size(length); return status; @@ -3696,7 +3696,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(512 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 512, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 512, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[512 + 2]; emberAfCopyInt16u(zclString, 0, static_cast(value.size())); memcpy(&zclString[2], value.data(), value.size()); @@ -3721,7 +3721,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3730,7 +3730,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3747,10 +3747,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -3758,7 +3758,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3777,7 +3777,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3786,7 +3786,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3803,10 +3803,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -3814,7 +3814,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3833,7 +3833,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3842,7 +3842,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3859,10 +3859,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -3870,7 +3870,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3889,10 +3889,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 2); value.reduce_size(length); return status; @@ -3900,7 +3900,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(2 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[2 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3919,7 +3919,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3928,7 +3928,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -3945,10 +3945,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 64); value.reduce_size(length); return status; @@ -3956,7 +3956,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(64 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[64 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -3975,7 +3975,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -3984,7 +3984,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4001,10 +4001,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 64); value.reduce_size(length); return status; @@ -4012,7 +4012,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(64 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[64 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4031,10 +4031,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -4042,7 +4042,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4061,10 +4061,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -4072,7 +4072,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4091,10 +4091,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfLongStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 256, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 256, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[2], 256); value.reduce_size(length); return status; @@ -4102,7 +4102,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(256 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 256, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 256, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[256 + 2]; emberAfCopyInt16u(zclString, 0, static_cast(value.size())); memcpy(&zclString[2], value.data(), value.size()); @@ -4121,10 +4121,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 64); value.reduce_size(length); return status; @@ -4132,7 +4132,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(64 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[64 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4151,10 +4151,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -4162,7 +4162,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4181,7 +4181,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4190,7 +4190,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -4207,7 +4207,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4216,7 +4216,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Basic::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -4233,10 +4233,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -4244,7 +4244,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4270,10 +4270,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -4281,7 +4281,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4301,7 +4301,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4310,7 +4310,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OtaSoftwareUpdateRequestor::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); @@ -4334,7 +4334,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4343,7 +4343,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -4360,7 +4360,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4369,7 +4369,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -4386,10 +4386,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 60, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 60, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 60); value.reduce_size(length); return status; @@ -4397,7 +4397,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(60 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 60, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 60, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[60 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4416,7 +4416,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4425,7 +4425,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4442,7 +4442,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4451,7 +4451,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -4468,7 +4468,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4477,7 +4477,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -4494,7 +4494,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4503,7 +4503,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4520,7 +4520,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4529,7 +4529,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4546,7 +4546,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4555,7 +4555,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4572,7 +4572,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4581,7 +4581,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -4598,7 +4598,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4607,7 +4607,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4624,7 +4624,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4633,7 +4633,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -4650,7 +4650,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4659,7 +4659,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4676,7 +4676,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4685,7 +4685,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -4702,7 +4702,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4711,7 +4711,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -4728,7 +4728,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4737,7 +4737,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -4754,7 +4754,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4763,7 +4763,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -4780,10 +4780,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 60, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 60, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 60); value.reduce_size(length); return status; @@ -4791,7 +4791,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(60 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 60, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 60, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[60 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4810,7 +4810,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4819,7 +4819,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4836,10 +4836,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 20, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 20, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 20); value.reduce_size(length); return status; @@ -4847,7 +4847,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(20 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 20, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 20, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[20 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4866,10 +4866,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 20, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 20, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 20); value.reduce_size(length); return status; @@ -4877,7 +4877,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(20 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 20, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 20, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[20 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -4896,7 +4896,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4905,7 +4905,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4922,7 +4922,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4931,7 +4931,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -4948,7 +4948,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4957,7 +4957,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -4974,7 +4974,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -4983,7 +4983,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -5000,7 +5000,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5009,7 +5009,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -5026,7 +5026,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5035,7 +5035,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -5052,7 +5052,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5061,7 +5061,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PowerSource::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -5084,7 +5084,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5093,7 +5093,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::GeneralCommissioning::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5117,7 +5117,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5126,7 +5126,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::GeneralDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5144,7 +5144,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5153,7 +5153,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::GeneralDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5171,7 +5171,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5180,7 +5180,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::GeneralDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -5198,7 +5198,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5207,7 +5207,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::GeneralDiagnostics::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -5231,7 +5231,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5240,7 +5240,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SoftwareDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5258,7 +5258,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5267,7 +5267,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SoftwareDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5285,7 +5285,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5294,7 +5294,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SoftwareDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5318,7 +5318,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5327,7 +5327,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -5345,7 +5345,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5354,7 +5354,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -5373,10 +5373,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -5384,7 +5384,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -5404,7 +5404,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5413,7 +5413,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5431,7 +5431,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5440,7 +5440,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5459,10 +5459,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 17, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 17, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 17); value.reduce_size(length); return status; @@ -5470,7 +5470,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(17 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 17, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 17, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[17 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -5490,7 +5490,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5499,7 +5499,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -5517,7 +5517,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5526,7 +5526,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -5544,7 +5544,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5553,7 +5553,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -5571,7 +5571,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5580,7 +5580,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -5598,7 +5598,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5607,7 +5607,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -5625,7 +5625,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5634,7 +5634,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -5652,7 +5652,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5661,7 +5661,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5679,7 +5679,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5688,7 +5688,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5706,7 +5706,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5715,7 +5715,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5733,7 +5733,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5742,7 +5742,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5760,7 +5760,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5769,7 +5769,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5787,7 +5787,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5796,7 +5796,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5814,7 +5814,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5823,7 +5823,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5841,7 +5841,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5850,7 +5850,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -5868,7 +5868,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5877,7 +5877,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -5895,7 +5895,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5904,7 +5904,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -5922,7 +5922,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5931,7 +5931,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -5949,7 +5949,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5958,7 +5958,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -5976,7 +5976,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -5985,7 +5985,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6003,7 +6003,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6012,7 +6012,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6030,7 +6030,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6039,7 +6039,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6057,7 +6057,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6066,7 +6066,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6084,7 +6084,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6093,7 +6093,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6111,7 +6111,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6120,7 +6120,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6138,7 +6138,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6147,7 +6147,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6165,7 +6165,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6174,7 +6174,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6192,7 +6192,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6201,7 +6201,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6219,7 +6219,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6228,7 +6228,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6246,7 +6246,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6255,7 +6255,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6273,7 +6273,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6282,7 +6282,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6300,7 +6300,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6309,7 +6309,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6327,7 +6327,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6336,7 +6336,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6354,7 +6354,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6363,7 +6363,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6381,7 +6381,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6390,7 +6390,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6408,7 +6408,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6417,7 +6417,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6435,7 +6435,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6444,7 +6444,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6462,7 +6462,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6471,7 +6471,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6489,7 +6489,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6498,7 +6498,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6516,7 +6516,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6525,7 +6525,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6543,7 +6543,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6552,7 +6552,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6570,7 +6570,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6579,7 +6579,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6597,7 +6597,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6606,7 +6606,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6624,7 +6624,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6633,7 +6633,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6651,7 +6651,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6660,7 +6660,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6678,7 +6678,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6687,7 +6687,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6705,7 +6705,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6714,7 +6714,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6732,7 +6732,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6741,7 +6741,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6759,7 +6759,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6768,7 +6768,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6786,7 +6786,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6795,7 +6795,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -6813,7 +6813,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6822,7 +6822,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -6840,7 +6840,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6849,7 +6849,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThreadNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -6868,10 +6868,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 4, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 4, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 4); value.reduce_size(length); return status; @@ -6879,7 +6879,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(4 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 4, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 4, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[4 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -6906,10 +6906,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 6); value.reduce_size(length); return status; @@ -6917,7 +6917,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[6 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -6937,7 +6937,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6946,7 +6946,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -6964,7 +6964,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -6973,7 +6973,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -6991,7 +6991,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7000,7 +7000,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -7018,7 +7018,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7027,7 +7027,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -7045,7 +7045,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7054,7 +7054,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7072,7 +7072,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7081,7 +7081,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7099,7 +7099,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7108,7 +7108,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7126,7 +7126,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7135,7 +7135,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7153,7 +7153,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7162,7 +7162,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7180,7 +7180,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7189,7 +7189,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7207,7 +7207,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7216,7 +7216,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7234,7 +7234,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7243,7 +7243,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WiFiNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7267,7 +7267,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7276,7 +7276,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -7294,7 +7294,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7303,7 +7303,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); @@ -7321,7 +7321,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7330,7 +7330,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7348,7 +7348,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7357,7 +7357,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7375,7 +7375,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7384,7 +7384,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7402,7 +7402,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7411,7 +7411,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7429,7 +7429,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7438,7 +7438,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7456,7 +7456,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7465,7 +7465,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); @@ -7483,7 +7483,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7492,7 +7492,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthernetNetworkDiagnostics::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); @@ -7516,10 +7516,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -7527,7 +7527,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7546,7 +7546,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7555,7 +7555,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BridgedDeviceBasic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -7573,10 +7573,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -7584,7 +7584,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7603,10 +7603,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -7614,7 +7614,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7633,7 +7633,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7642,7 +7642,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BridgedDeviceBasic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -7660,10 +7660,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 64); value.reduce_size(length); return status; @@ -7671,7 +7671,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(64 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[64 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7690,7 +7690,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7699,7 +7699,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BridgedDeviceBasic::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -7717,10 +7717,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 64); value.reduce_size(length); return status; @@ -7728,7 +7728,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(64 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[64 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7747,10 +7747,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -7758,7 +7758,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7777,10 +7777,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -7788,7 +7788,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7807,10 +7807,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfLongStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 256, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 256, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[2], 256); value.reduce_size(length); return status; @@ -7818,7 +7818,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(256 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 256, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 256, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[256 + 2]; emberAfCopyInt16u(zclString, 0, static_cast(value.size())); memcpy(&zclString[2], value.data(), value.size()); @@ -7838,10 +7838,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 64, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 64); value.reduce_size(length); return status; @@ -7849,7 +7849,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(64 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 64, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[64 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7868,10 +7868,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -7879,7 +7879,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7898,7 +7898,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7907,7 +7907,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BridgedDeviceBasic::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); @@ -7925,10 +7925,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -7936,7 +7936,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -7961,7 +7961,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7970,7 +7970,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Switch::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -7987,7 +7987,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -7996,7 +7996,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Switch::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8013,7 +8013,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8022,7 +8022,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Switch::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8045,7 +8045,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8054,7 +8054,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OperationalCredentials::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -8072,7 +8072,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8081,7 +8081,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OperationalCredentials::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -8099,7 +8099,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::FabricIndex * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8108,7 +8108,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::FabricIndex value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OperationalCredentials::Id, Id, (uint8_t *) &value, ZCL_FABRIC_IDX_ATTRIBUTE_TYPE); @@ -8138,7 +8138,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8147,7 +8147,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BooleanState::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -8170,7 +8170,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8179,7 +8179,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ModeSelect::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8196,7 +8196,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8205,7 +8205,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ModeSelect::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8222,7 +8222,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8231,7 +8231,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ModeSelect::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8248,10 +8248,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -8259,7 +8259,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -8284,7 +8284,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8293,7 +8293,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ShadeConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -8311,7 +8311,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8320,7 +8320,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ShadeConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -8338,7 +8338,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8347,7 +8347,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ShadeConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -8365,7 +8365,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8374,7 +8374,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ShadeConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -8392,7 +8392,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8401,7 +8401,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ShadeConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -8425,7 +8425,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8434,7 +8434,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -8451,7 +8451,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8460,7 +8460,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -8477,7 +8477,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8486,7 +8486,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -8503,7 +8503,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8512,7 +8512,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -8529,7 +8529,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8538,7 +8538,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -8555,7 +8555,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8564,7 +8564,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -8581,7 +8581,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8590,7 +8590,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -8607,7 +8607,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8616,7 +8616,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -8633,7 +8633,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8642,7 +8642,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -8659,7 +8659,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8668,7 +8668,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -8685,7 +8685,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8694,7 +8694,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -8711,7 +8711,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8720,7 +8720,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8737,7 +8737,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8746,7 +8746,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8763,7 +8763,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8772,7 +8772,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8789,7 +8789,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8798,7 +8798,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8815,7 +8815,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8824,7 +8824,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8841,7 +8841,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8850,7 +8850,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8867,7 +8867,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8876,7 +8876,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8893,7 +8893,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8902,7 +8902,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -8919,10 +8919,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 2); value.reduce_size(length); return status; @@ -8930,7 +8930,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(2 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[2 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -8949,7 +8949,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8958,7 +8958,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -8975,7 +8975,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -8984,7 +8984,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -9001,7 +9001,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9010,7 +9010,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -9027,7 +9027,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9036,7 +9036,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -9053,7 +9053,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9062,7 +9062,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9079,7 +9079,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9088,7 +9088,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9105,7 +9105,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9114,7 +9114,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -9131,7 +9131,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9140,7 +9140,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -9157,7 +9157,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9166,7 +9166,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -9183,7 +9183,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9192,7 +9192,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -9209,7 +9209,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9218,7 +9218,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -9235,7 +9235,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9244,7 +9244,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -9261,7 +9261,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9270,7 +9270,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -9287,7 +9287,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9296,7 +9296,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -9313,7 +9313,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9322,7 +9322,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -9339,7 +9339,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9348,7 +9348,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9365,7 +9365,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9374,7 +9374,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9391,7 +9391,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9400,7 +9400,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9417,7 +9417,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9426,7 +9426,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9443,7 +9443,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9452,7 +9452,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9469,7 +9469,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9478,7 +9478,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9495,7 +9495,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9504,7 +9504,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9521,7 +9521,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9530,7 +9530,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -9553,7 +9553,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9562,7 +9562,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -9579,7 +9579,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9588,7 +9588,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9605,7 +9605,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9614,7 +9614,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9631,7 +9631,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9640,7 +9640,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9657,7 +9657,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9666,7 +9666,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9683,7 +9683,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9692,7 +9692,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9709,7 +9709,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9718,7 +9718,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9735,7 +9735,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9744,7 +9744,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -9761,7 +9761,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9770,7 +9770,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -9787,7 +9787,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9796,7 +9796,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -9813,7 +9813,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9822,7 +9822,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -9839,7 +9839,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9848,7 +9848,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9865,7 +9865,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9874,7 +9874,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9891,7 +9891,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9900,7 +9900,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -9917,7 +9917,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9926,7 +9926,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9943,7 +9943,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9952,7 +9952,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9969,7 +9969,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -9978,7 +9978,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -9995,7 +9995,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10004,7 +10004,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10021,7 +10021,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10030,7 +10030,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10047,7 +10047,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10056,7 +10056,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10073,7 +10073,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10082,7 +10082,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10099,7 +10099,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10108,7 +10108,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10125,7 +10125,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10134,7 +10134,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10151,7 +10151,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10160,7 +10160,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -10177,10 +10177,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 254, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 254, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 254); value.reduce_size(length); return status; @@ -10188,7 +10188,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(254 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 254, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 254, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[254 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -10207,10 +10207,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 254, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 254, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 254); value.reduce_size(length); return status; @@ -10218,7 +10218,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(254 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 254, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 254, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[254 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -10237,7 +10237,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10246,7 +10246,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::WindowCovering::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -10269,7 +10269,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10278,7 +10278,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -10295,7 +10295,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10304,7 +10304,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -10321,7 +10321,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10330,7 +10330,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -10347,7 +10347,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10356,7 +10356,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10373,7 +10373,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10382,7 +10382,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10399,7 +10399,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10408,7 +10408,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10425,7 +10425,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10434,7 +10434,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10451,7 +10451,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10460,7 +10460,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10477,7 +10477,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10486,7 +10486,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -10503,7 +10503,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10512,7 +10512,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BarrierControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -10535,7 +10535,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10544,7 +10544,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10562,7 +10562,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10571,7 +10571,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -10589,7 +10589,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10598,7 +10598,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -10616,7 +10616,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10625,7 +10625,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10643,7 +10643,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10652,7 +10652,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10670,7 +10670,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10679,7 +10679,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10697,7 +10697,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10706,7 +10706,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10724,7 +10724,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10733,7 +10733,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -10751,7 +10751,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10760,7 +10760,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -10778,7 +10778,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10787,7 +10787,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -10805,7 +10805,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10814,7 +10814,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -10832,7 +10832,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10841,7 +10841,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10859,7 +10859,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10868,7 +10868,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10886,7 +10886,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10895,7 +10895,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); @@ -10913,7 +10913,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10922,7 +10922,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -10940,7 +10940,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10949,7 +10949,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -10967,7 +10967,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -10976,7 +10976,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -10994,7 +10994,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11003,7 +11003,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -11021,7 +11021,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11030,7 +11030,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -11048,7 +11048,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11057,7 +11057,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -11075,7 +11075,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11084,7 +11084,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -11102,7 +11102,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11111,7 +11111,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PumpConfigurationAndControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); @@ -11135,7 +11135,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11144,7 +11144,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11161,7 +11161,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11170,7 +11170,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11187,7 +11187,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11196,7 +11196,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -11213,7 +11213,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11222,7 +11222,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11239,7 +11239,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11248,7 +11248,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11265,7 +11265,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11274,7 +11274,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11291,7 +11291,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11300,7 +11300,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11317,7 +11317,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11326,7 +11326,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -11343,7 +11343,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11352,7 +11352,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -11369,7 +11369,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11378,7 +11378,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -11395,7 +11395,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11404,7 +11404,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); } @@ -11421,7 +11421,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11430,7 +11430,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11447,7 +11447,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11456,7 +11456,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11473,7 +11473,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11482,7 +11482,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11499,7 +11499,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11508,7 +11508,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11525,7 +11525,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11534,7 +11534,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11551,7 +11551,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11560,7 +11560,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11577,7 +11577,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11586,7 +11586,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11603,7 +11603,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11612,7 +11612,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -11629,7 +11629,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11638,7 +11638,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); } @@ -11655,7 +11655,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11664,7 +11664,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -11681,7 +11681,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11690,7 +11690,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -11707,7 +11707,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11716,7 +11716,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -11733,7 +11733,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11742,7 +11742,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -11759,7 +11759,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11768,7 +11768,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -11785,7 +11785,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11794,7 +11794,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -11811,7 +11811,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11820,7 +11820,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -11837,7 +11837,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11846,7 +11846,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -11863,7 +11863,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11872,7 +11872,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -11889,7 +11889,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11898,7 +11898,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -11915,7 +11915,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11924,7 +11924,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -11941,7 +11941,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11950,7 +11950,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -11967,7 +11967,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -11976,7 +11976,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -11993,7 +11993,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12002,7 +12002,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -12019,7 +12019,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12028,7 +12028,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_EPOCH_S_ATTRIBUTE_TYPE); } @@ -12045,7 +12045,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12054,7 +12054,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12071,7 +12071,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12080,7 +12080,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12097,7 +12097,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12106,7 +12106,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12123,7 +12123,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12132,7 +12132,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12149,7 +12149,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12158,7 +12158,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); } @@ -12175,7 +12175,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12184,7 +12184,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12201,7 +12201,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12210,7 +12210,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -12227,7 +12227,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12236,7 +12236,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::Thermostat::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12259,7 +12259,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12268,7 +12268,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FanControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12285,7 +12285,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12294,7 +12294,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FanControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12317,7 +12317,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12326,7 +12326,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -12344,7 +12344,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12353,7 +12353,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -12371,7 +12371,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12380,7 +12380,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -12398,7 +12398,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12407,7 +12407,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -12425,7 +12425,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12434,7 +12434,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -12452,7 +12452,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12461,7 +12461,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -12479,7 +12479,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12488,7 +12488,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -12506,7 +12506,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12515,7 +12515,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DehumidificationControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -12539,7 +12539,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12548,7 +12548,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThermostatUserInterfaceConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -12566,7 +12566,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12575,7 +12575,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThermostatUserInterfaceConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -12593,7 +12593,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12602,7 +12602,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ThermostatUserInterfaceConfiguration::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -12626,7 +12626,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12635,7 +12635,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -12652,7 +12652,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12661,7 +12661,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -12678,7 +12678,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12687,7 +12687,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12704,7 +12704,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12713,7 +12713,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12730,7 +12730,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12739,7 +12739,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12756,7 +12756,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12765,7 +12765,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12782,10 +12782,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 254, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 254, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 254); value.reduce_size(length); return status; @@ -12793,7 +12793,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(254 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 254, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 254, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[254 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -12812,7 +12812,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12821,7 +12821,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12838,7 +12838,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12847,7 +12847,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -12864,7 +12864,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12873,7 +12873,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -12890,7 +12890,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12899,7 +12899,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -12916,7 +12916,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12925,7 +12925,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12942,7 +12942,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12951,7 +12951,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -12968,7 +12968,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -12977,7 +12977,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -12994,7 +12994,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13003,7 +13003,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13020,7 +13020,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13029,7 +13029,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13046,7 +13046,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13055,7 +13055,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13072,7 +13072,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13081,7 +13081,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13098,7 +13098,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13107,7 +13107,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13124,7 +13124,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13133,7 +13133,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13150,7 +13150,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13159,7 +13159,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13176,7 +13176,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13185,7 +13185,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13202,7 +13202,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13211,7 +13211,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13228,7 +13228,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13237,7 +13237,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13254,7 +13254,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13263,7 +13263,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13280,7 +13280,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13289,7 +13289,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13306,7 +13306,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13315,7 +13315,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13332,7 +13332,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13341,7 +13341,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13358,7 +13358,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13367,7 +13367,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13384,7 +13384,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13393,7 +13393,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13410,7 +13410,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13419,7 +13419,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13436,7 +13436,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13445,7 +13445,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13462,7 +13462,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13471,7 +13471,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13488,7 +13488,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13497,7 +13497,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13514,7 +13514,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13523,7 +13523,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13540,7 +13540,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13549,7 +13549,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13566,7 +13566,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13575,7 +13575,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13592,7 +13592,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13601,7 +13601,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13618,7 +13618,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13627,7 +13627,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13644,7 +13644,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13653,7 +13653,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13670,7 +13670,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13679,7 +13679,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13696,7 +13696,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13705,7 +13705,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -13722,7 +13722,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13731,7 +13731,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13748,7 +13748,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13757,7 +13757,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -13774,7 +13774,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13783,7 +13783,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13800,7 +13800,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13809,7 +13809,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13826,7 +13826,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13835,7 +13835,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13852,7 +13852,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13861,7 +13861,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -13878,7 +13878,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13887,7 +13887,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13904,7 +13904,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13913,7 +13913,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13930,7 +13930,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13939,7 +13939,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13956,7 +13956,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13965,7 +13965,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ColorControl::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -13988,7 +13988,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -13997,7 +13997,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14015,7 +14015,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14024,7 +14024,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14042,7 +14042,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14051,7 +14051,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -14069,7 +14069,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14078,7 +14078,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14096,7 +14096,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14105,7 +14105,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14123,7 +14123,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14132,7 +14132,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14150,7 +14150,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14159,7 +14159,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14177,7 +14177,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14186,7 +14186,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14204,7 +14204,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14213,7 +14213,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14231,7 +14231,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14240,7 +14240,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -14259,10 +14259,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -14270,7 +14270,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -14290,10 +14290,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -14301,7 +14301,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -14320,7 +14320,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14329,7 +14329,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BallastConfiguration::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -14365,7 +14365,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IlluminanceMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14412,7 +14412,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IlluminanceMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14459,7 +14459,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IlluminanceMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14494,7 +14494,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14503,7 +14503,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IlluminanceMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14533,7 +14533,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IlluminanceMeasurement::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); @@ -14574,7 +14574,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14583,7 +14583,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14601,7 +14601,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14610,7 +14610,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14628,7 +14628,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14637,7 +14637,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14655,7 +14655,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14664,7 +14664,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TemperatureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14688,7 +14688,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14697,7 +14697,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14715,7 +14715,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14724,7 +14724,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14742,7 +14742,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14751,7 +14751,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14769,7 +14769,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14778,7 +14778,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14796,7 +14796,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14805,7 +14805,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14823,7 +14823,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14832,7 +14832,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14850,7 +14850,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14859,7 +14859,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -14877,7 +14877,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14886,7 +14886,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -14904,7 +14904,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14913,7 +14913,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::PressureMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -14937,7 +14937,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14946,7 +14946,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FlowMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -14963,7 +14963,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14972,7 +14972,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FlowMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -14989,7 +14989,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -14998,7 +14998,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FlowMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -15015,7 +15015,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15024,7 +15024,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FlowMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15047,7 +15047,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15056,7 +15056,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::RelativeHumidityMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -15074,7 +15074,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15083,7 +15083,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::RelativeHumidityMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -15101,7 +15101,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15110,7 +15110,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::RelativeHumidityMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -15128,7 +15128,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15137,7 +15137,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::RelativeHumidityMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -15161,7 +15161,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15170,7 +15170,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -15188,7 +15188,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15197,7 +15197,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -15214,7 +15214,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15223,7 +15223,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -15241,7 +15241,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15250,7 +15250,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15267,7 +15267,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15276,7 +15276,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15293,7 +15293,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15302,7 +15302,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -15319,7 +15319,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15328,7 +15328,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15345,7 +15345,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15354,7 +15354,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15371,7 +15371,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15380,7 +15380,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -15397,7 +15397,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15406,7 +15406,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15423,7 +15423,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15432,7 +15432,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -15449,7 +15449,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15458,7 +15458,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OccupancySensing::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -15481,7 +15481,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15490,7 +15490,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonMonoxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15508,7 +15508,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15517,7 +15517,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonMonoxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15535,7 +15535,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15544,7 +15544,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonMonoxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15562,7 +15562,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15571,7 +15571,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonMonoxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15595,7 +15595,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15604,7 +15604,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15622,7 +15622,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15631,7 +15631,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15649,7 +15649,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15658,7 +15658,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15676,7 +15676,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15685,7 +15685,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CarbonDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15709,7 +15709,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15718,7 +15718,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15736,7 +15736,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15745,7 +15745,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15763,7 +15763,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15772,7 +15772,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15790,7 +15790,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15799,7 +15799,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15823,7 +15823,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15832,7 +15832,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15850,7 +15850,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15859,7 +15859,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15877,7 +15877,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15886,7 +15886,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15904,7 +15904,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15913,7 +15913,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::EthyleneOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15937,7 +15937,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15946,7 +15946,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15964,7 +15964,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -15973,7 +15973,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -15991,7 +15991,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16000,7 +16000,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16018,7 +16018,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16027,7 +16027,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16051,7 +16051,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16060,7 +16060,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenSulphideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16078,7 +16078,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16087,7 +16087,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenSulphideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16105,7 +16105,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16114,7 +16114,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenSulphideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16132,7 +16132,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16141,7 +16141,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HydrogenSulphideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16165,7 +16165,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16174,7 +16174,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitricOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16192,7 +16192,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16201,7 +16201,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitricOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16219,7 +16219,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16228,7 +16228,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitricOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16246,7 +16246,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16255,7 +16255,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitricOxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16279,7 +16279,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16288,7 +16288,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitrogenDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16306,7 +16306,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16315,7 +16315,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitrogenDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16333,7 +16333,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16342,7 +16342,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitrogenDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16360,7 +16360,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16369,7 +16369,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::NitrogenDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16393,7 +16393,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16402,7 +16402,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16420,7 +16420,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16429,7 +16429,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16447,7 +16447,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16456,7 +16456,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16474,7 +16474,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16483,7 +16483,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16507,7 +16507,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16516,7 +16516,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OzoneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16534,7 +16534,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16543,7 +16543,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OzoneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16561,7 +16561,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16570,7 +16570,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OzoneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16588,7 +16588,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16597,7 +16597,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::OzoneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16621,7 +16621,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16630,7 +16630,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfurDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16648,7 +16648,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16657,7 +16657,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfurDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16675,7 +16675,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16684,7 +16684,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfurDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16702,7 +16702,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16711,7 +16711,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfurDioxideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16735,7 +16735,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16744,7 +16744,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DissolvedOxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16762,7 +16762,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16771,7 +16771,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DissolvedOxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16789,7 +16789,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16798,7 +16798,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DissolvedOxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16816,7 +16816,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16825,7 +16825,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::DissolvedOxygenConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16849,7 +16849,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16858,7 +16858,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16876,7 +16876,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16885,7 +16885,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16903,7 +16903,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16912,7 +16912,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16930,7 +16930,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16939,7 +16939,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16963,7 +16963,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16972,7 +16972,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloraminesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -16990,7 +16990,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -16999,7 +16999,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloraminesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17017,7 +17017,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17026,7 +17026,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloraminesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17044,7 +17044,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17053,7 +17053,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloraminesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17077,7 +17077,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17086,7 +17086,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorineConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17104,7 +17104,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17113,7 +17113,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorineConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17131,7 +17131,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17140,7 +17140,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorineConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17158,7 +17158,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17167,7 +17167,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorineConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17191,7 +17191,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17200,7 +17200,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FecalColiformAndEColiConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17218,7 +17218,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17227,7 +17227,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FecalColiformAndEColiConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17245,7 +17245,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17254,7 +17254,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FecalColiformAndEColiConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17272,7 +17272,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17281,7 +17281,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FecalColiformAndEColiConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17305,7 +17305,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17314,7 +17314,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FluorideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17332,7 +17332,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17341,7 +17341,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FluorideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17359,7 +17359,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17368,7 +17368,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FluorideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17386,7 +17386,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17395,7 +17395,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::FluorideConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17419,7 +17419,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17428,7 +17428,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HaloaceticAcidsConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17446,7 +17446,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17455,7 +17455,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HaloaceticAcidsConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17473,7 +17473,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17482,7 +17482,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HaloaceticAcidsConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17500,7 +17500,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17509,7 +17509,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::HaloaceticAcidsConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17533,7 +17533,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17542,7 +17542,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalTrihalomethanesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17560,7 +17560,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17569,7 +17569,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalTrihalomethanesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17587,7 +17587,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17596,7 +17596,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalTrihalomethanesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17614,7 +17614,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17623,7 +17623,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalTrihalomethanesConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17647,7 +17647,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17656,7 +17656,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalColiformBacteriaConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17674,7 +17674,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17683,7 +17683,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalColiformBacteriaConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17701,7 +17701,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17710,7 +17710,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalColiformBacteriaConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17728,7 +17728,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17737,7 +17737,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TotalColiformBacteriaConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17761,7 +17761,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17770,7 +17770,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TurbidityConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17788,7 +17788,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17797,7 +17797,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TurbidityConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17815,7 +17815,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17824,7 +17824,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TurbidityConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17842,7 +17842,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17851,7 +17851,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TurbidityConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17875,7 +17875,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17884,7 +17884,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CopperConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17902,7 +17902,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17911,7 +17911,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CopperConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17929,7 +17929,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17938,7 +17938,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CopperConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17956,7 +17956,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17965,7 +17965,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::CopperConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -17989,7 +17989,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -17998,7 +17998,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LeadConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18016,7 +18016,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18025,7 +18025,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LeadConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18043,7 +18043,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18052,7 +18052,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LeadConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18070,7 +18070,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18079,7 +18079,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::LeadConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18103,7 +18103,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18112,7 +18112,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ManganeseConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18130,7 +18130,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18139,7 +18139,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ManganeseConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18157,7 +18157,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18166,7 +18166,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ManganeseConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18184,7 +18184,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18193,7 +18193,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ManganeseConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18217,7 +18217,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18226,7 +18226,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18244,7 +18244,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18253,7 +18253,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18271,7 +18271,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18280,7 +18280,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18298,7 +18298,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18307,7 +18307,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SulfateConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18331,7 +18331,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18340,7 +18340,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromodichloromethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18358,7 +18358,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18367,7 +18367,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromodichloromethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18385,7 +18385,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18394,7 +18394,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromodichloromethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18412,7 +18412,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18421,7 +18421,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromodichloromethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18445,7 +18445,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18454,7 +18454,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromoformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18472,7 +18472,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18481,7 +18481,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromoformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18499,7 +18499,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18508,7 +18508,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromoformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18526,7 +18526,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18535,7 +18535,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::BromoformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18559,7 +18559,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18568,7 +18568,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorodibromomethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18586,7 +18586,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18595,7 +18595,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorodibromomethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18613,7 +18613,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18622,7 +18622,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorodibromomethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18640,7 +18640,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18649,7 +18649,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChlorodibromomethaneConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18673,7 +18673,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18682,7 +18682,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloroformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18700,7 +18700,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18709,7 +18709,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloroformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18727,7 +18727,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18736,7 +18736,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloroformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18754,7 +18754,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18763,7 +18763,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ChloroformConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18787,7 +18787,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18796,7 +18796,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SodiumConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18814,7 +18814,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18823,7 +18823,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SodiumConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18841,7 +18841,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18850,7 +18850,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SodiumConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18868,7 +18868,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, float * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18877,7 +18877,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, float value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SodiumConcentrationMeasurement::Id, Id, (uint8_t *) &value, ZCL_SINGLE_ATTRIBUTE_TYPE); @@ -18901,7 +18901,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18910,7 +18910,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -18927,7 +18927,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18936,7 +18936,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_ENUM16_ATTRIBUTE_TYPE); } @@ -18953,7 +18953,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18962,7 +18962,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -18979,7 +18979,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::NodeId * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -18988,7 +18988,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::NodeId value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_NODE_ID_ATTRIBUTE_TYPE); } @@ -19005,7 +19005,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19014,7 +19014,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19031,7 +19031,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19040,7 +19040,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19057,7 +19057,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19066,7 +19066,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasZone::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19089,7 +19089,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19098,7 +19098,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::IasWd::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -19121,10 +19121,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -19132,7 +19132,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -19157,10 +19157,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -19168,7 +19168,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -19187,10 +19187,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -19198,7 +19198,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -19223,7 +19223,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19232,7 +19232,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TargetNavigator::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19255,7 +19255,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19264,7 +19264,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -19281,7 +19281,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19290,7 +19290,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19307,7 +19307,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19316,7 +19316,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19333,7 +19333,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19342,7 +19342,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19359,7 +19359,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19368,7 +19368,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19385,7 +19385,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19394,7 +19394,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19411,7 +19411,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19420,7 +19420,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19437,7 +19437,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19446,7 +19446,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaPlayback::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -19469,7 +19469,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19478,7 +19478,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MediaInput::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19507,7 +19507,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19516,7 +19516,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::AudioOutput::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19539,7 +19539,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19548,7 +19548,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplicationLauncher::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -19566,7 +19566,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19575,7 +19575,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplicationLauncher::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -19599,10 +19599,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -19610,7 +19610,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -19629,7 +19629,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19638,7 +19638,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplicationBasic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -19655,10 +19655,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -19666,7 +19666,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -19685,7 +19685,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19694,7 +19694,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplicationBasic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -19711,10 +19711,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 32, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 32); value.reduce_size(length); return status; @@ -19722,7 +19722,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(32 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 32, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[32 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -19741,7 +19741,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19750,7 +19750,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplicationBasic::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -19767,7 +19767,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19776,7 +19776,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplicationBasic::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -19799,7 +19799,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19808,7 +19808,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -19825,7 +19825,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19834,7 +19834,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -19851,7 +19851,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19860,7 +19860,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -19877,7 +19877,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19886,7 +19886,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); } @@ -19903,7 +19903,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19912,7 +19912,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP64_ATTRIBUTE_TYPE); } @@ -19929,7 +19929,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19938,7 +19938,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -19955,7 +19955,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19964,7 +19964,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -19981,7 +19981,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -19990,7 +19990,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -20007,7 +20007,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20016,7 +20016,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -20033,7 +20033,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20042,7 +20042,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); } @@ -20059,7 +20059,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20068,7 +20068,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -20085,7 +20085,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20094,7 +20094,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT32S_ATTRIBUTE_TYPE); } @@ -20111,7 +20111,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20120,7 +20120,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT64S_ATTRIBUTE_TYPE); } @@ -20137,7 +20137,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20146,7 +20146,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -20163,7 +20163,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20172,7 +20172,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_ENUM16_ATTRIBUTE_TYPE); } @@ -20189,10 +20189,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 10); value.reduce_size(length); return status; @@ -20200,7 +20200,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[10 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -20219,10 +20219,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfLongStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[2], 1000); value.reduce_size(length); return status; @@ -20230,7 +20230,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(1000 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[1000 + 2]; emberAfCopyInt16u(zclString, 0, static_cast(value.size())); memcpy(&zclString[2], value.data(), value.size()); @@ -20249,10 +20249,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 10, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 10); value.reduce_size(length); return status; @@ -20260,7 +20260,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(10 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[10 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -20279,10 +20279,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfLongStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 1000, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[2], 1000); value.reduce_size(length); return status; @@ -20290,7 +20290,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(1000 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 1000, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[1000 + 2]; emberAfCopyInt16u(zclString, 0, static_cast(value.size())); memcpy(&zclString[2], value.data(), value.size()); @@ -20309,7 +20309,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint64_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20318,7 +20318,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_EPOCH_US_ATTRIBUTE_TYPE); } @@ -20335,7 +20335,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20344,7 +20344,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_EPOCH_S_ATTRIBUTE_TYPE); } @@ -20361,7 +20361,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::VendorId * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20370,7 +20370,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::VendorId value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_VENDOR_ID_ATTRIBUTE_TYPE); } @@ -20387,7 +20387,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, bool * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -20396,7 +20396,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -20425,7 +20425,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, bool value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BOOLEAN_ATTRIBUTE_TYPE); } @@ -20471,7 +20471,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); } @@ -20517,7 +20517,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); } @@ -20563,7 +20563,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); } @@ -20609,7 +20609,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_BITMAP64_ATTRIBUTE_TYPE); } @@ -20655,7 +20655,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); } @@ -20701,7 +20701,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); } @@ -20747,7 +20747,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); } @@ -20793,7 +20793,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT64U_ATTRIBUTE_TYPE); } @@ -20839,7 +20839,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); } @@ -20885,7 +20885,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); } @@ -20931,7 +20931,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT32S_ATTRIBUTE_TYPE); } @@ -20977,7 +20977,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int64_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_INT64S_ATTRIBUTE_TYPE); } @@ -21023,7 +21023,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_ENUM8_ATTRIBUTE_TYPE); } @@ -21069,7 +21069,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ true, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::TestCluster::Id, Id, (uint8_t *) &value, ZCL_ENUM16_ATTRIBUTE_TYPE); } @@ -21108,7 +21108,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[10 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21156,7 +21156,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 10, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[10 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21206,10 +21206,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21217,7 +21217,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21237,7 +21237,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21246,7 +21246,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -21265,10 +21265,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21276,7 +21276,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21296,7 +21296,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21305,7 +21305,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -21324,10 +21324,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21335,7 +21335,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21356,10 +21356,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21367,7 +21367,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21388,10 +21388,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 6); value.reduce_size(length); return status; @@ -21399,7 +21399,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[6 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21420,10 +21420,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 6); value.reduce_size(length); return status; @@ -21431,7 +21431,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[6 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21452,10 +21452,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 2, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 2); value.reduce_size(length); return status; @@ -21463,7 +21463,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(2 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 2, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[2 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21483,7 +21483,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21492,7 +21492,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -21510,7 +21510,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21519,7 +21519,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceIdentification::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -21544,10 +21544,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21555,7 +21555,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21574,7 +21574,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21583,7 +21583,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -21601,7 +21601,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21610,7 +21610,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::MeterIdentification::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -21629,10 +21629,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21640,7 +21640,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21660,10 +21660,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21671,7 +21671,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21691,10 +21691,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21702,7 +21702,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21722,10 +21722,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 6); value.reduce_size(length); return status; @@ -21733,7 +21733,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[6 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21753,10 +21753,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 6, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 6); value.reduce_size(length); return status; @@ -21764,7 +21764,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableByteSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) { static_assert(6 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 6, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[6 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21784,10 +21784,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21795,7 +21795,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21815,10 +21815,10 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) size_t length = emberAfStringLength(zclString); if (length == NumericAttributeTraits::kNullValue) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } - VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); memcpy(value.data(), &zclString[1], 16); value.reduce_size(length); return status; @@ -21826,7 +21826,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value) { static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); - VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_INVALID_ARGUMENT); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); uint8_t zclString[16 + 1]; emberAfCopyInt8u(zclString, 0, static_cast(value.size())); memcpy(&zclString[1], value.data(), value.size()); @@ -21851,7 +21851,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21860,7 +21860,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -21878,7 +21878,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21887,7 +21887,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ApplianceStatistics::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -21911,7 +21911,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21920,7 +21920,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_BITMAP32_ATTRIBUTE_TYPE); @@ -21938,7 +21938,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21947,7 +21947,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -21965,7 +21965,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -21974,7 +21974,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -21992,7 +21992,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22001,7 +22001,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22019,7 +22019,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22028,7 +22028,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22046,7 +22046,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22055,7 +22055,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22073,7 +22073,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22082,7 +22082,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22100,7 +22100,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22109,7 +22109,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22127,7 +22127,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22136,7 +22136,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22154,7 +22154,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22163,7 +22163,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22181,7 +22181,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22190,7 +22190,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22208,7 +22208,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22217,7 +22217,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22235,7 +22235,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22244,7 +22244,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22262,7 +22262,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22271,7 +22271,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22289,7 +22289,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22298,7 +22298,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22316,7 +22316,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22325,7 +22325,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22343,7 +22343,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22352,7 +22352,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22370,7 +22370,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22379,7 +22379,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22397,7 +22397,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22406,7 +22406,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22424,7 +22424,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22433,7 +22433,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22451,7 +22451,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22460,7 +22460,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT32S_ATTRIBUTE_TYPE); @@ -22478,7 +22478,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22487,7 +22487,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT32S_ATTRIBUTE_TYPE); @@ -22505,7 +22505,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22514,7 +22514,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -22532,7 +22532,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22541,7 +22541,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22559,7 +22559,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22568,7 +22568,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22586,7 +22586,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22595,7 +22595,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22613,7 +22613,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22622,7 +22622,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22640,7 +22640,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22649,7 +22649,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22667,7 +22667,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22676,7 +22676,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22694,7 +22694,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22703,7 +22703,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22721,7 +22721,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22730,7 +22730,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22748,7 +22748,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22757,7 +22757,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22775,7 +22775,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22784,7 +22784,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22802,7 +22802,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22811,7 +22811,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22829,7 +22829,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22838,7 +22838,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -22856,7 +22856,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22865,7 +22865,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22883,7 +22883,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22892,7 +22892,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -22910,7 +22910,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22919,7 +22919,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -22937,7 +22937,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22946,7 +22946,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT32U_ATTRIBUTE_TYPE); @@ -22964,7 +22964,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -22973,7 +22973,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -22991,7 +22991,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23000,7 +23000,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -23018,7 +23018,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23027,7 +23027,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23045,7 +23045,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23054,7 +23054,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23072,7 +23072,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23081,7 +23081,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23099,7 +23099,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23108,7 +23108,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23126,7 +23126,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23135,7 +23135,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23153,7 +23153,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23162,7 +23162,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23180,7 +23180,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23189,7 +23189,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23207,7 +23207,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23216,7 +23216,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23234,7 +23234,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23243,7 +23243,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23261,7 +23261,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23270,7 +23270,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23288,7 +23288,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23297,7 +23297,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23315,7 +23315,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23324,7 +23324,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23342,7 +23342,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23351,7 +23351,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23369,7 +23369,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23378,7 +23378,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23396,7 +23396,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23405,7 +23405,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23423,7 +23423,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23432,7 +23432,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23450,7 +23450,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23459,7 +23459,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -23477,7 +23477,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23486,7 +23486,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23504,7 +23504,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23513,7 +23513,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23531,7 +23531,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23540,7 +23540,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23558,7 +23558,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23567,7 +23567,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23585,7 +23585,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23594,7 +23594,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23612,7 +23612,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23621,7 +23621,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23639,7 +23639,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23648,7 +23648,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23666,7 +23666,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23675,7 +23675,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23693,7 +23693,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23702,7 +23702,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23720,7 +23720,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23729,7 +23729,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23747,7 +23747,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23756,7 +23756,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23774,7 +23774,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23783,7 +23783,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -23801,7 +23801,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23810,7 +23810,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_BITMAP8_ATTRIBUTE_TYPE); @@ -23828,7 +23828,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23837,7 +23837,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23855,7 +23855,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23864,7 +23864,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23882,7 +23882,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23891,7 +23891,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_BITMAP16_ATTRIBUTE_TYPE); @@ -23909,7 +23909,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23918,7 +23918,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23936,7 +23936,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23945,7 +23945,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23963,7 +23963,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23972,7 +23972,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -23990,7 +23990,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -23999,7 +23999,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24017,7 +24017,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24026,7 +24026,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24044,7 +24044,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24053,7 +24053,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24071,7 +24071,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24080,7 +24080,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24098,7 +24098,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24107,7 +24107,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24125,7 +24125,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24134,7 +24134,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24152,7 +24152,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24161,7 +24161,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24179,7 +24179,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24188,7 +24188,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24206,7 +24206,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24215,7 +24215,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24233,7 +24233,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24242,7 +24242,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24260,7 +24260,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24269,7 +24269,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24287,7 +24287,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24296,7 +24296,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24314,7 +24314,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24323,7 +24323,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24341,7 +24341,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24350,7 +24350,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24368,7 +24368,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24377,7 +24377,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24395,7 +24395,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24404,7 +24404,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24422,7 +24422,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24431,7 +24431,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24449,7 +24449,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24458,7 +24458,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24476,7 +24476,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24485,7 +24485,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24503,7 +24503,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24512,7 +24512,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24530,7 +24530,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24539,7 +24539,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24557,7 +24557,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24566,7 +24566,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -24584,7 +24584,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24593,7 +24593,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24611,7 +24611,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24620,7 +24620,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24638,7 +24638,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24647,7 +24647,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24665,7 +24665,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24674,7 +24674,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24692,7 +24692,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24701,7 +24701,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24719,7 +24719,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24728,7 +24728,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24746,7 +24746,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24755,7 +24755,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24773,7 +24773,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24782,7 +24782,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24800,7 +24800,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24809,7 +24809,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24827,7 +24827,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24836,7 +24836,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -24854,7 +24854,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24863,7 +24863,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24881,7 +24881,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24890,7 +24890,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24908,7 +24908,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24917,7 +24917,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24935,7 +24935,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24944,7 +24944,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24962,7 +24962,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24971,7 +24971,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -24989,7 +24989,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -24998,7 +24998,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25016,7 +25016,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25025,7 +25025,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -25043,7 +25043,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25052,7 +25052,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -25070,7 +25070,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25079,7 +25079,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -25097,7 +25097,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25106,7 +25106,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16S_ATTRIBUTE_TYPE); @@ -25124,7 +25124,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25133,7 +25133,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25151,7 +25151,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25160,7 +25160,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT8S_ATTRIBUTE_TYPE); @@ -25178,7 +25178,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25187,7 +25187,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25205,7 +25205,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25214,7 +25214,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25232,7 +25232,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25241,7 +25241,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25259,7 +25259,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25268,7 +25268,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25286,7 +25286,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25295,7 +25295,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25313,7 +25313,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25322,7 +25322,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25340,7 +25340,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25349,7 +25349,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::ElectricalMeasurement::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25379,7 +25379,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25388,7 +25388,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SampleMfgSpecificCluster::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -25406,7 +25406,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25415,7 +25415,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SampleMfgSpecificCluster::Id, Id, (uint8_t *) &value, ZCL_INT8U_ATTRIBUTE_TYPE); @@ -25439,7 +25439,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25448,7 +25448,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SampleMfgSpecificCluster2::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE); @@ -25466,7 +25466,7 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, temp)) { - return EMBER_ZCL_STATUS_INVALID_VALUE; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } *value = temp; return status; @@ -25475,7 +25475,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) { if (!NumericAttributeTraits::CanRepresentValue(/* isNullable = */ false, value)) { - return EMBER_ZCL_STATUS_INVALID_ARGUMENT; + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; } return emberAfWriteServerAttribute(endpoint, Clusters::SampleMfgSpecificCluster2::Id, Id, (uint8_t *) &value, ZCL_INT16U_ATTRIBUTE_TYPE);