diff --git a/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp b/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp index 8965dee067babd..186997a2947e36 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp +++ b/examples/all-clusters-app/all-clusters-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace BarrierControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -332,10 +330,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::BarrierControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::BarrierControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -353,8 +350,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Basic { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { ReportCommandUnsupported(apCommandObj, aEndpointId, Clusters::Basic::Id, aCommandId); } @@ -363,8 +359,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Binding { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -529,10 +524,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Binding::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Binding::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -550,8 +544,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ColorControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1987,10 +1980,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ColorControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ColorControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2008,8 +2000,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2101,10 +2092,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2122,8 +2112,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DoorLock { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3483,10 +3472,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DoorLock::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DoorLock::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3504,8 +3492,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace EthernetNetworkDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3535,10 +3522,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::EthernetNetworkDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::EthernetNetworkDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3556,8 +3543,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3726,10 +3712,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3747,8 +3733,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Groups { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4085,10 +4070,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Groups::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Groups::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4106,8 +4090,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace IasZone { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4194,10 +4177,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::IasZone::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::IasZone::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4215,8 +4197,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Identify { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4304,10 +4285,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Identify::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Identify::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4325,8 +4305,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LevelControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4827,10 +4806,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LevelControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LevelControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4848,8 +4826,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LowPower { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4879,10 +4856,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LowPower::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LowPower::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4900,8 +4876,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5529,10 +5504,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5550,8 +5525,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OtaSoftwareUpdateProvider { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5795,10 +5769,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5816,8 +5790,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5857,10 +5830,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5878,8 +5850,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -6341,10 +6312,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -6362,8 +6333,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Scenes { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -6833,10 +6803,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Scenes::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Scenes::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -6854,8 +6823,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace SoftwareDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -6885,10 +6853,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::SoftwareDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::SoftwareDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -6906,8 +6874,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace TestCluster { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -7009,10 +6976,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TestCluster::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TestCluster::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -7030,8 +6996,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ThreadNetworkDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -7061,10 +7026,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ThreadNetworkDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ThreadNetworkDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -7082,8 +7047,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace WiFiNetworkDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -7113,10 +7077,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::WiFiNetworkDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::WiFiNetworkDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -7134,8 +7098,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -7215,10 +7179,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -7229,8 +7192,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -7241,10 +7204,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/all-clusters-app/all-clusters-common/gen/attribute-size.cpp b/examples/all-clusters-app/all-clusters-common/gen/attribute-size.cpp index d7987a0d8b53e8..e7c819b24a4493 100644 --- a/examples/all-clusters-app/all-clusters-common/gen/attribute-size.cpp +++ b/examples/all-clusters-app/all-clusters-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -118,7 +118,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo sizeof(entry->index)); // INT8U copyListMember(write ? dest : (uint8_t *) &entry->outputType, write ? (uint8_t *) &entry->outputType : src, write, &entryOffset, sizeof(entry->outputType)); // AudioOutputType - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { @@ -145,7 +145,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return 0; } - chip::ByteSpan * acceptsHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING + ByteSpan * acceptsHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING uint16_t acceptsHeaderListRemainingSpace = static_cast(am->size - entryOffset); if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, acceptsHeaderListRemainingSpace, acceptsHeaderListSpan) @@ -254,16 +254,16 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo } entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _LabelStruct - _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); - chip::ByteSpan * labelSpan = &entry->label; // OCTET_STRING + _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); + ByteSpan * labelSpan = &entry->label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, labelSpan) : ReadByteSpan(src + entryOffset, 18, labelSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 18); - chip::ByteSpan * valueSpan = &entry->value; // OCTET_STRING + entryOffset = static_cast(entryOffset + 18); + ByteSpan * valueSpan = &entry->value; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, valueSpan) : ReadByteSpan(src + entryOffset, 18, valueSpan))) { @@ -292,7 +292,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -308,7 +308,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -363,7 +363,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyIndex, write ? (uint8_t *) &entry->GroupKeyIndex : src, write, &entryOffset, sizeof(entry->GroupKeyIndex)); // INT16U - chip::ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING + ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, GroupKeyRootSpan) : ReadByteSpan(src + entryOffset, 18, GroupKeyRootSpan))) @@ -403,15 +403,15 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo sizeof(entry->index)); // INT8U copyListMember(write ? dest : (uint8_t *) &entry->inputType, write ? (uint8_t *) &entry->inputType : src, write, &entryOffset, sizeof(entry->inputType)); // MediaInputType - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * descriptionSpan = &entry->description; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * descriptionSpan = &entry->description; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, descriptionSpan) : ReadByteSpan(src + entryOffset, 34, descriptionSpan))) @@ -446,8 +446,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -480,23 +480,23 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo &entryOffset, sizeof(entry->majorNumber)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->minorNumber, write ? (uint8_t *) &entry->minorNumber : src, write, &entryOffset, sizeof(entry->minorNumber)); // INT16U - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * callSignSpan = &entry->callSign; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * callSignSpan = &entry->callSign; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, callSignSpan) : ReadByteSpan(src + entryOffset, 34, callSignSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * affiliateCallSignSpan = &entry->affiliateCallSign; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * affiliateCallSignSpan = &entry->affiliateCallSign; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, affiliateCallSignSpan) : ReadByteSpan(src + entryOffset, 34, affiliateCallSignSpan))) @@ -528,7 +528,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo _NavigateTargetTargetInfo * entry = reinterpret_cast<_NavigateTargetTargetInfo *>(write ? src : dest); copyListMember(write ? dest : (uint8_t *) &entry->identifier, write ? (uint8_t *) &entry->identifier : src, write, &entryOffset, sizeof(entry->identifier)); // INT8U - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { @@ -567,7 +567,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return 0; } - chip::ByteSpan * listOctetStringSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING + ByteSpan * listOctetStringSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING uint16_t listOctetStringRemainingSpace = static_cast(am->size - entryOffset); if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, listOctetStringRemainingSpace, listOctetStringSpan) @@ -597,8 +597,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo // Struct _TestListStructOctet _TestListStructOctet * entry = reinterpret_cast<_TestListStructOctet *>(write ? src : dest); copyListMember(write ? dest : (uint8_t *) &entry->fabricIndex, write ? (uint8_t *) &entry->fabricIndex : src, write, - &entryOffset, sizeof(entry->fabricIndex)); // INT64U - chip::ByteSpan * operationalCertSpan = &entry->operationalCert; // OCTET_STRING + &entryOffset, sizeof(entry->fabricIndex)); // INT64U + ByteSpan * operationalCertSpan = &entry->operationalCert; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, operationalCertSpan) : ReadByteSpan(src + entryOffset, 34, operationalCertSpan))) @@ -950,7 +950,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/bridge-app/bridge-common/gen/IMClusterCommandHandler.cpp b/examples/bridge-app/bridge-common/gen/IMClusterCommandHandler.cpp index 967ca6e1bc5706..c2bb236cb6beb1 100644 --- a/examples/bridge-app/bridge-common/gen/IMClusterCommandHandler.cpp +++ b/examples/bridge-app/bridge-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -336,10 +334,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -357,8 +354,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -527,10 +523,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -548,8 +544,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LevelControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1050,10 +1045,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LevelControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LevelControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1071,8 +1065,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1700,10 +1693,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1721,8 +1714,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1762,10 +1754,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1783,8 +1774,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2246,10 +2236,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2267,8 +2257,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -2300,10 +2290,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -2314,8 +2303,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -2326,10 +2315,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/bridge-app/bridge-common/gen/attribute-size.cpp b/examples/bridge-app/bridge-common/gen/attribute-size.cpp index 87e5cda7fd31d2..8749672986c5c7 100644 --- a/examples/bridge-app/bridge-common/gen/attribute-size.cpp +++ b/examples/bridge-app/bridge-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -154,16 +154,16 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo } entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _LabelStruct - _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); - chip::ByteSpan * labelSpan = &entry->label; // OCTET_STRING + _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); + ByteSpan * labelSpan = &entry->label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, labelSpan) : ReadByteSpan(src + entryOffset, 18, labelSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 18); - chip::ByteSpan * valueSpan = &entry->value; // OCTET_STRING + entryOffset = static_cast(entryOffset + 18); + ByteSpan * valueSpan = &entry->value; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, valueSpan) : ReadByteSpan(src + entryOffset, 18, valueSpan))) { @@ -192,7 +192,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -208,7 +208,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -245,8 +245,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -509,7 +509,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/lighting-app/lighting-common/gen/IMClusterCommandHandler.cpp b/examples/lighting-app/lighting-common/gen/IMClusterCommandHandler.cpp index fff2f1014defd9..258c073125c4ce 100644 --- a/examples/lighting-app/lighting-common/gen/IMClusterCommandHandler.cpp +++ b/examples/lighting-app/lighting-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ColorControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1680,10 +1678,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ColorControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ColorControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1701,8 +1698,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1794,10 +1790,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1815,8 +1810,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace EthernetNetworkDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1846,10 +1840,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::EthernetNetworkDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::EthernetNetworkDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1867,8 +1861,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2037,10 +2030,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2058,8 +2051,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LevelControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2560,10 +2552,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LevelControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LevelControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2581,8 +2572,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3210,10 +3200,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3231,8 +3221,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3272,10 +3261,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3293,8 +3281,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3756,10 +3743,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3777,8 +3764,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace SoftwareDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3808,10 +3794,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::SoftwareDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::SoftwareDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3829,8 +3815,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ThreadNetworkDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3860,10 +3845,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ThreadNetworkDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ThreadNetworkDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3881,8 +3866,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace WiFiNetworkDiagnostics { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3912,10 +3896,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::WiFiNetworkDiagnostics::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::WiFiNetworkDiagnostics::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3933,8 +3917,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -3981,10 +3965,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -3995,8 +3978,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -4007,10 +3990,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/lighting-app/lighting-common/gen/attribute-size.cpp b/examples/lighting-app/lighting-common/gen/attribute-size.cpp index 1888567e5c4370..ee22339f056061 100644 --- a/examples/lighting-app/lighting-common/gen/attribute-size.cpp +++ b/examples/lighting-app/lighting-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -94,7 +94,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -110,7 +110,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -147,8 +147,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -381,7 +381,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/lock-app/lock-common/gen/IMClusterCommandHandler.cpp b/examples/lock-app/lock-common/gen/IMClusterCommandHandler.cpp index d5d376d50c71f2..85be6af4a5d8f8 100644 --- a/examples/lock-app/lock-common/gen/IMClusterCommandHandler.cpp +++ b/examples/lock-app/lock-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -336,10 +334,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -357,8 +354,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -527,10 +523,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -548,8 +544,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1177,10 +1172,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1198,8 +1193,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1239,10 +1233,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1260,8 +1253,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1723,10 +1715,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1744,8 +1736,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -1774,10 +1766,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -1788,8 +1779,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -1800,10 +1791,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/lock-app/lock-common/gen/attribute-size.cpp b/examples/lock-app/lock-common/gen/attribute-size.cpp index 1888567e5c4370..ee22339f056061 100644 --- a/examples/lock-app/lock-common/gen/attribute-size.cpp +++ b/examples/lock-app/lock-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -94,7 +94,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -110,7 +110,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -147,8 +147,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -381,7 +381,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/pump-app/pump-common/gen/CHIPClientCallbacks.cpp b/examples/pump-app/pump-common/gen/CHIPClientCallbacks.cpp index 43c26d51ec7941..f1d0daa403aee5 100644 --- a/examples/pump-app/pump-common/gen/CHIPClientCallbacks.cpp +++ b/examples/pump-app/pump-common/gen/CHIPClientCallbacks.cpp @@ -55,7 +55,7 @@ constexpr uint16_t kByteSpanSizeLengthInBytes = 2; #define CHECK_STATUS_VOID(error) CHECK_STATUS_WITH_RETVAL(error, ) #define CHECK_MESSAGE_LENGTH_WITH_RETVAL(value, retval) \ - if (!chip::CanCastTo(value)) \ + if (!CanCastTo(value)) \ { \ ChipLogError(Zcl, "CHECK_MESSAGE_LENGTH expects a uint16_t value, got: %d", value); \ if (onFailureCallback != nullptr) \ @@ -258,130 +258,130 @@ static void LogIMStatus(Protocols::InteractionModel::ProtocolCode status) switch (status) { case Protocols::InteractionModel::ProtocolCode::Success: - ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Failure: - ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidSubscription: - ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAccess: - ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedEndpoint: - ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidAction: - ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCommand: - ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated82: - ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated83: - ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated84: - ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidCommand: - ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAttribute: - ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidValue: - ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedWrite: - ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ResourceExhausted: - ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8a: - ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NotFound: - ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnreportableAttribute: - ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidDataType: - ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8e: - ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedRead: - ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated90: - ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated91: - ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved92: - ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated93: - ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Timeout: - ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved95: - ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved96: - ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved97: - ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved98: - ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved99: - ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved9a: - ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ConstraintError: - ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Busy: - ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc0: - ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc1: - ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc2: - ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCluster: - ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc4: - ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NoUpstreamSubscription: - ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidArgument: - ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", to_underlying(status)); break; default: - ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, chip::to_underlying(status)); + ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, to_underlying(status)); break; } } @@ -413,7 +413,7 @@ bool emberAfDefaultResponseCallback(ClusterId clusterId, CommandId commandId, Em return true; } -bool IMDefaultResponseCallback(const chip::app::Command * commandObj, EmberAfStatus status) +bool IMDefaultResponseCallback(const app::Command * commandObj, EmberAfStatus status) { ChipLogProgress(Zcl, "DefaultResponse:"); ChipLogProgress(Zcl, " Transaction: %p", commandObj); @@ -524,7 +524,7 @@ bool IMReadReportAttributesResponseCallback(const app::ReadClient * apReadClient Callback::Callback * cb = Callback::Callback::FromCancelable(onFailureCallback); // TODO: Should change failure callbacks to accept uint16 status code. - cb->mCall(cb->mContext, static_cast(chip::to_underlying(status))); + cb->mCall(cb->mContext, static_cast(to_underlying(status))); } return true; @@ -541,7 +541,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -553,7 +553,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa else { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -590,7 +590,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -602,7 +602,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me else { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -611,7 +611,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me UNUSED_VAR(direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -637,7 +637,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me return true; } -bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId, uint8_t * message, uint16_t messageLen) +bool emberAfReadReportingConfigurationResponseCallback(ClusterId clusterId, uint8_t * message, uint16_t messageLen) { ChipLogProgress(Zcl, "ReadReportingConfigurationResponse:"); ChipLogProgress(Zcl, " ClusterId: " ChipLogFormatMEI, ChipLogValueMEI(clusterId)); @@ -648,11 +648,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -663,7 +663,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId if (direction == EMBER_ZCL_REPORTING_DIRECTION_REPORTED) { CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -672,11 +672,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId UNUSED_VAR(attributeType); CHECK_MESSAGE_LENGTH(2); - uint16_t minimumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t minimumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " minimumReportingInterval: %" PRIu16, minimumReportingInterval); CHECK_MESSAGE_LENGTH(2); - uint16_t maximumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t maximumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " maximumReportingInterval: %" PRIu16, maximumReportingInterval); // FIXME: unk is not supported yet. @@ -688,7 +688,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId else { CHECK_MESSAGE_LENGTH(2); - uint16_t timeout = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t timeout = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " timeout: %" PRIu16, timeout); Callback::Callback * cb = @@ -714,7 +714,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -723,7 +723,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove UNUSED_VAR(attributeId); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we want @@ -786,7 +786,7 @@ static EmberAfStatus PrepareListFromTLV(TLV::TLVReader * tlvData, const uint8_t reader.Init(*tlvData); reader.EnterContainer(type); tlvError = reader.Next(); - if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && chip::CanCastTo(reader.GetLength())) + if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && CanCastTo(reader.GetLength())) { return EMBER_ZCL_STATUS_INVALID_VALUE; } @@ -820,13 +820,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); GET_REPORT_CALLBACK("emberAfReportAttributesCallback"); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); + uint8_t attributeType = Encoding::Read8(message); ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); switch (attributeType) @@ -866,7 +866,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Short Strings must contains at least one byte for the length CHECK_MESSAGE_LENGTH(1); - uint8_t length = chip::Encoding::Read8(message); + uint8_t length = Encoding::Read8(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFF, it represents a non-value. In this case the data field is zero length. @@ -880,13 +880,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -896,7 +896,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Long Strings must contains at least two bytes for the length CHECK_MESSAGE_LENGTH(2); - uint16_t length = chip::Encoding::LittleEndian::Read16(message); + uint16_t length = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFFFF, it represents a non-value. In this case the data field is zero length. @@ -910,13 +910,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -927,7 +927,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x30: // enum8 / 8-bit enumeration { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: 0x%02x", value); Callback::Callback * cb = @@ -947,7 +947,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xFF: // unk / Unknown { CHECK_MESSAGE_LENGTH(2); - uint16_t value = chip::Encoding::LittleEndian::Read16(message); + uint16_t value = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " value: 0x%04x", value); Callback::Callback * cb = @@ -963,7 +963,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xE2: // UTC / UTCTime { CHECK_MESSAGE_LENGTH(4); - uint32_t value = chip::Encoding::LittleEndian::Read32(message); + uint32_t value = Encoding::LittleEndian::Read32(message); ChipLogProgress(Zcl, " value: 0x%08x", value); Callback::Callback * cb = @@ -978,7 +978,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xF0: // EUI64 / IEEE address { CHECK_MESSAGE_LENGTH(8); - uint64_t value = chip::Encoding::LittleEndian::Read64(message); + uint64_t value = Encoding::LittleEndian::Read64(message); ChipLogProgress(Zcl, " value: 0x" ChipLogFormatX64, ChipLogValueX64(value)); Callback::Callback * cb = @@ -990,7 +990,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x10: // bool / Boolean { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: %d", value); Callback::Callback * cb = @@ -1002,7 +1002,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x28: // int8 / Signed 8-bit integer { CHECK_MESSAGE_LENGTH(1); - int8_t value = chip::CastToSigned(chip::Encoding::Read8(message)); + int8_t value = CastToSigned(Encoding::Read8(message)); ChipLogProgress(Zcl, " value: %" PRId8, value); Callback::Callback * cb = @@ -1014,7 +1014,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x29: // int16 / Signed 16-bit integer { CHECK_MESSAGE_LENGTH(2); - int16_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read16(message)); + int16_t value = CastToSigned(Encoding::LittleEndian::Read16(message)); ChipLogProgress(Zcl, " value: %" PRId16, value); Callback::Callback * cb = @@ -1026,7 +1026,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2B: // int32 / Signed 32-bit integer { CHECK_MESSAGE_LENGTH(4); - int32_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read32(message)); + int32_t value = CastToSigned(Encoding::LittleEndian::Read32(message)); ChipLogProgress(Zcl, " value: %" PRId32, value); Callback::Callback * cb = @@ -1038,7 +1038,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2F: // int64 / Signed 64-bit integer { CHECK_MESSAGE_LENGTH(8); - int64_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read64(message)); + int64_t value = CastToSigned(Encoding::LittleEndian::Read64(message)); ChipLogProgress(Zcl, " value: %" PRId64, value); Callback::Callback * cb = diff --git a/examples/pump-app/pump-common/gen/CHIPClusters.cpp b/examples/pump-app/pump-common/gen/CHIPClusters.cpp index e10d6addebb701..e0f6b8d75be223 100644 --- a/examples/pump-app/pump-common/gen/CHIPClusters.cpp +++ b/examples/pump-app/pump-common/gen/CHIPClusters.cpp @@ -57,6 +57,7 @@ } \ return SendCommand(seqNum, buf.Finalize(), onSuccessCallback, onFailureCallback); +namespace chip { namespace { // TODO: Find a way to calculate maximum message length for clusters // https://github.com/project-chip/connectedhomeip/issues/965 @@ -68,16 +69,15 @@ constexpr uint16_t kMaxBufferSize = 1024; constexpr uint8_t kFrameControlGlobalCommand = 0x00; // Pick source endpoint as 1 for now -constexpr chip::EndpointId kSourceEndpoint = 1; +constexpr EndpointId kSourceEndpoint = 1; const uint8_t kReportingDirectionReported = 0x00; } // namespace -using namespace chip::app::Clusters; -using namespace chip::System; -using namespace chip::Encoding::LittleEndian; +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; -namespace chip { namespace Controller { // TODO(#4502): onCompletion is not used by IM for now. @@ -97,11 +97,11 @@ CHIP_ERROR FlowMeasurementCluster::DiscoverAttributes(Callback::Cancelable * onS CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -131,11 +131,11 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMeasuredValue(Callback::Cancel CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -143,11 +143,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cance CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -155,11 +155,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cance CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -177,11 +177,11 @@ CHIP_ERROR PressureMeasurementCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -211,11 +211,11 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMeasuredValue(Callback::Ca CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -223,11 +223,11 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::C CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -235,11 +235,11 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::C CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -257,11 +257,11 @@ CHIP_ERROR TemperatureMeasurementCluster::DiscoverAttributes(Callback::Cancelabl CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -292,11 +292,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMeasuredValue(Callback: CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -304,11 +304,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -316,11 +316,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/examples/pump-app/pump-common/gen/IMClusterCommandHandler.cpp b/examples/pump-app/pump-common/gen/IMClusterCommandHandler.cpp index 4981bfdc50ba08..b8ba718ad9a917 100644 --- a/examples/pump-app/pump-common/gen/IMClusterCommandHandler.cpp +++ b/examples/pump-app/pump-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Basic { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { ReportCommandUnsupported(apCommandObj, aEndpointId, Clusters::Basic::Id, aCommandId); } @@ -253,8 +251,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -346,10 +343,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -367,8 +363,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -537,10 +532,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -558,8 +553,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LevelControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1060,10 +1054,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LevelControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LevelControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1081,8 +1074,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1651,10 +1643,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1672,8 +1664,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1713,10 +1704,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1734,8 +1724,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2197,10 +2186,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2218,8 +2207,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -2254,10 +2243,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -2268,8 +2256,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -2280,10 +2268,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/pump-app/pump-common/gen/attribute-size.cpp b/examples/pump-app/pump-common/gen/attribute-size.cpp index 1888567e5c4370..ee22339f056061 100644 --- a/examples/pump-app/pump-common/gen/attribute-size.cpp +++ b/examples/pump-app/pump-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -94,7 +94,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -110,7 +110,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -147,8 +147,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -381,7 +381,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/pump-controller-app/pump-controller-common/gen/CHIPClientCallbacks.cpp b/examples/pump-controller-app/pump-controller-common/gen/CHIPClientCallbacks.cpp index 43c26d51ec7941..f1d0daa403aee5 100644 --- a/examples/pump-controller-app/pump-controller-common/gen/CHIPClientCallbacks.cpp +++ b/examples/pump-controller-app/pump-controller-common/gen/CHIPClientCallbacks.cpp @@ -55,7 +55,7 @@ constexpr uint16_t kByteSpanSizeLengthInBytes = 2; #define CHECK_STATUS_VOID(error) CHECK_STATUS_WITH_RETVAL(error, ) #define CHECK_MESSAGE_LENGTH_WITH_RETVAL(value, retval) \ - if (!chip::CanCastTo(value)) \ + if (!CanCastTo(value)) \ { \ ChipLogError(Zcl, "CHECK_MESSAGE_LENGTH expects a uint16_t value, got: %d", value); \ if (onFailureCallback != nullptr) \ @@ -258,130 +258,130 @@ static void LogIMStatus(Protocols::InteractionModel::ProtocolCode status) switch (status) { case Protocols::InteractionModel::ProtocolCode::Success: - ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Failure: - ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidSubscription: - ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAccess: - ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedEndpoint: - ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidAction: - ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCommand: - ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated82: - ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated83: - ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated84: - ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidCommand: - ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAttribute: - ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidValue: - ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedWrite: - ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ResourceExhausted: - ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8a: - ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NotFound: - ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnreportableAttribute: - ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidDataType: - ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8e: - ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedRead: - ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated90: - ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated91: - ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved92: - ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated93: - ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Timeout: - ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved95: - ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved96: - ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved97: - ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved98: - ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved99: - ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved9a: - ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ConstraintError: - ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Busy: - ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc0: - ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc1: - ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc2: - ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCluster: - ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc4: - ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NoUpstreamSubscription: - ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidArgument: - ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", to_underlying(status)); break; default: - ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, chip::to_underlying(status)); + ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, to_underlying(status)); break; } } @@ -413,7 +413,7 @@ bool emberAfDefaultResponseCallback(ClusterId clusterId, CommandId commandId, Em return true; } -bool IMDefaultResponseCallback(const chip::app::Command * commandObj, EmberAfStatus status) +bool IMDefaultResponseCallback(const app::Command * commandObj, EmberAfStatus status) { ChipLogProgress(Zcl, "DefaultResponse:"); ChipLogProgress(Zcl, " Transaction: %p", commandObj); @@ -524,7 +524,7 @@ bool IMReadReportAttributesResponseCallback(const app::ReadClient * apReadClient Callback::Callback * cb = Callback::Callback::FromCancelable(onFailureCallback); // TODO: Should change failure callbacks to accept uint16 status code. - cb->mCall(cb->mContext, static_cast(chip::to_underlying(status))); + cb->mCall(cb->mContext, static_cast(to_underlying(status))); } return true; @@ -541,7 +541,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -553,7 +553,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa else { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -590,7 +590,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -602,7 +602,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me else { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -611,7 +611,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me UNUSED_VAR(direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -637,7 +637,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me return true; } -bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId, uint8_t * message, uint16_t messageLen) +bool emberAfReadReportingConfigurationResponseCallback(ClusterId clusterId, uint8_t * message, uint16_t messageLen) { ChipLogProgress(Zcl, "ReadReportingConfigurationResponse:"); ChipLogProgress(Zcl, " ClusterId: " ChipLogFormatMEI, ChipLogValueMEI(clusterId)); @@ -648,11 +648,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -663,7 +663,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId if (direction == EMBER_ZCL_REPORTING_DIRECTION_REPORTED) { CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -672,11 +672,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId UNUSED_VAR(attributeType); CHECK_MESSAGE_LENGTH(2); - uint16_t minimumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t minimumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " minimumReportingInterval: %" PRIu16, minimumReportingInterval); CHECK_MESSAGE_LENGTH(2); - uint16_t maximumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t maximumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " maximumReportingInterval: %" PRIu16, maximumReportingInterval); // FIXME: unk is not supported yet. @@ -688,7 +688,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId else { CHECK_MESSAGE_LENGTH(2); - uint16_t timeout = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t timeout = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " timeout: %" PRIu16, timeout); Callback::Callback * cb = @@ -714,7 +714,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -723,7 +723,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove UNUSED_VAR(attributeId); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we want @@ -786,7 +786,7 @@ static EmberAfStatus PrepareListFromTLV(TLV::TLVReader * tlvData, const uint8_t reader.Init(*tlvData); reader.EnterContainer(type); tlvError = reader.Next(); - if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && chip::CanCastTo(reader.GetLength())) + if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && CanCastTo(reader.GetLength())) { return EMBER_ZCL_STATUS_INVALID_VALUE; } @@ -820,13 +820,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); GET_REPORT_CALLBACK("emberAfReportAttributesCallback"); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); + uint8_t attributeType = Encoding::Read8(message); ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); switch (attributeType) @@ -866,7 +866,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Short Strings must contains at least one byte for the length CHECK_MESSAGE_LENGTH(1); - uint8_t length = chip::Encoding::Read8(message); + uint8_t length = Encoding::Read8(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFF, it represents a non-value. In this case the data field is zero length. @@ -880,13 +880,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -896,7 +896,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Long Strings must contains at least two bytes for the length CHECK_MESSAGE_LENGTH(2); - uint16_t length = chip::Encoding::LittleEndian::Read16(message); + uint16_t length = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFFFF, it represents a non-value. In this case the data field is zero length. @@ -910,13 +910,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -927,7 +927,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x30: // enum8 / 8-bit enumeration { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: 0x%02x", value); Callback::Callback * cb = @@ -947,7 +947,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xFF: // unk / Unknown { CHECK_MESSAGE_LENGTH(2); - uint16_t value = chip::Encoding::LittleEndian::Read16(message); + uint16_t value = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " value: 0x%04x", value); Callback::Callback * cb = @@ -963,7 +963,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xE2: // UTC / UTCTime { CHECK_MESSAGE_LENGTH(4); - uint32_t value = chip::Encoding::LittleEndian::Read32(message); + uint32_t value = Encoding::LittleEndian::Read32(message); ChipLogProgress(Zcl, " value: 0x%08x", value); Callback::Callback * cb = @@ -978,7 +978,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xF0: // EUI64 / IEEE address { CHECK_MESSAGE_LENGTH(8); - uint64_t value = chip::Encoding::LittleEndian::Read64(message); + uint64_t value = Encoding::LittleEndian::Read64(message); ChipLogProgress(Zcl, " value: 0x" ChipLogFormatX64, ChipLogValueX64(value)); Callback::Callback * cb = @@ -990,7 +990,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x10: // bool / Boolean { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: %d", value); Callback::Callback * cb = @@ -1002,7 +1002,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x28: // int8 / Signed 8-bit integer { CHECK_MESSAGE_LENGTH(1); - int8_t value = chip::CastToSigned(chip::Encoding::Read8(message)); + int8_t value = CastToSigned(Encoding::Read8(message)); ChipLogProgress(Zcl, " value: %" PRId8, value); Callback::Callback * cb = @@ -1014,7 +1014,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x29: // int16 / Signed 16-bit integer { CHECK_MESSAGE_LENGTH(2); - int16_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read16(message)); + int16_t value = CastToSigned(Encoding::LittleEndian::Read16(message)); ChipLogProgress(Zcl, " value: %" PRId16, value); Callback::Callback * cb = @@ -1026,7 +1026,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2B: // int32 / Signed 32-bit integer { CHECK_MESSAGE_LENGTH(4); - int32_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read32(message)); + int32_t value = CastToSigned(Encoding::LittleEndian::Read32(message)); ChipLogProgress(Zcl, " value: %" PRId32, value); Callback::Callback * cb = @@ -1038,7 +1038,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2F: // int64 / Signed 64-bit integer { CHECK_MESSAGE_LENGTH(8); - int64_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read64(message)); + int64_t value = CastToSigned(Encoding::LittleEndian::Read64(message)); ChipLogProgress(Zcl, " value: %" PRId64, value); Callback::Callback * cb = diff --git a/examples/pump-controller-app/pump-controller-common/gen/CHIPClusters.cpp b/examples/pump-controller-app/pump-controller-common/gen/CHIPClusters.cpp index 7bc5f999827c20..8c2561b44f83d9 100644 --- a/examples/pump-controller-app/pump-controller-common/gen/CHIPClusters.cpp +++ b/examples/pump-controller-app/pump-controller-common/gen/CHIPClusters.cpp @@ -57,6 +57,7 @@ } \ return SendCommand(seqNum, buf.Finalize(), onSuccessCallback, onFailureCallback); +namespace chip { namespace { // TODO: Find a way to calculate maximum message length for clusters // https://github.com/project-chip/connectedhomeip/issues/965 @@ -68,16 +69,15 @@ constexpr uint16_t kMaxBufferSize = 1024; constexpr uint8_t kFrameControlGlobalCommand = 0x00; // Pick source endpoint as 1 for now -constexpr chip::EndpointId kSourceEndpoint = 1; +constexpr EndpointId kSourceEndpoint = 1; const uint8_t kReportingDirectionReported = 0x00; } // namespace -using namespace chip::app::Clusters; -using namespace chip::System; -using namespace chip::Encoding::LittleEndian; +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; -namespace chip { namespace Controller { // TODO(#4502): onCompletion is not used by IM for now. @@ -97,11 +97,11 @@ CHIP_ERROR FlowMeasurementCluster::DiscoverAttributes(Callback::Cancelable * onS CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -131,11 +131,11 @@ CHIP_ERROR FlowMeasurementCluster::ReportAttributeMeasuredValue(Callback::Cancel CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -143,11 +143,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cance CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -155,11 +155,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cance CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -180,9 +180,9 @@ CHIP_ERROR LevelControlCluster::Move(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::Move, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -227,9 +227,9 @@ CHIP_ERROR LevelControlCluster::MoveToLevel(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::MoveToLevel, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -275,9 +275,9 @@ CHIP_ERROR LevelControlCluster::MoveToLevelWithOnOff(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::MoveToLevelWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -318,9 +318,9 @@ CHIP_ERROR LevelControlCluster::MoveWithOnOff(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::MoveWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -362,9 +362,9 @@ CHIP_ERROR LevelControlCluster::Step(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::Step, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -411,9 +411,9 @@ CHIP_ERROR LevelControlCluster::StepWithOnOff(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::StepWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -456,9 +456,9 @@ CHIP_ERROR LevelControlCluster::Stop(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::Stop, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -498,9 +498,9 @@ CHIP_ERROR LevelControlCluster::StopWithOnOff(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::StopWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -534,11 +534,11 @@ CHIP_ERROR LevelControlCluster::DiscoverAttributes(Callback::Cancelable * onSucc CHIP_ERROR LevelControlCluster::ReadAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -568,11 +568,11 @@ CHIP_ERROR LevelControlCluster::ReportAttributeCurrentLevel(Callback::Cancelable CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -592,9 +592,9 @@ CHIP_ERROR OnOffCluster::Off(Callback::Cancelable * onSuccessCallback, Callback: VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::Off, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -630,9 +630,9 @@ CHIP_ERROR OnOffCluster::On(Callback::Cancelable * onSuccessCallback, Callback:: VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::On, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -668,9 +668,9 @@ CHIP_ERROR OnOffCluster::Toggle(Callback::Cancelable * onSuccessCallback, Callba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::Toggle, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -702,11 +702,11 @@ CHIP_ERROR OnOffCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCall CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -714,11 +714,11 @@ CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCall CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -736,11 +736,11 @@ CHIP_ERROR PressureMeasurementCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -770,11 +770,11 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMeasuredValue(Callback::Ca CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -782,11 +782,11 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::C CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -794,11 +794,11 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::C CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -816,11 +816,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::DiscoverAttributes(Callback::Canc CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -828,11 +828,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -840,11 +840,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::C CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -852,11 +852,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Ca CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -864,11 +864,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMo CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -876,11 +876,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -911,11 +911,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeCapacity(Callback: CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -940,11 +940,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeOperationMode(Callb CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -962,11 +962,11 @@ CHIP_ERROR TemperatureMeasurementCluster::DiscoverAttributes(Callback::Cancelabl CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -997,11 +997,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMeasuredValue(Callback: CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1009,11 +1009,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1021,11 +1021,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/examples/pump-controller-app/pump-controller-common/gen/IMClusterCommandHandler.cpp b/examples/pump-controller-app/pump-controller-common/gen/IMClusterCommandHandler.cpp index dc69c2a8ee64cd..934d751e3e1393 100644 --- a/examples/pump-controller-app/pump-controller-common/gen/IMClusterCommandHandler.cpp +++ b/examples/pump-controller-app/pump-controller-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Basic { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { ReportCommandUnsupported(apCommandObj, aEndpointId, Clusters::Basic::Id, aCommandId); } @@ -253,8 +251,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -346,10 +343,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -367,8 +363,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -537,10 +532,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -558,8 +553,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1187,10 +1181,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1208,8 +1202,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1671,10 +1664,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1692,8 +1685,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -1722,10 +1715,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -1736,8 +1728,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -1748,10 +1740,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/pump-controller-app/pump-controller-common/gen/attribute-size.cpp b/examples/pump-controller-app/pump-controller-common/gen/attribute-size.cpp index 1888567e5c4370..ee22339f056061 100644 --- a/examples/pump-controller-app/pump-controller-common/gen/attribute-size.cpp +++ b/examples/pump-controller-app/pump-controller-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -94,7 +94,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -110,7 +110,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -147,8 +147,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -381,7 +381,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/temperature-measurement-app/esp32/main/gen/IMClusterCommandHandler.cpp b/examples/temperature-measurement-app/esp32/main/gen/IMClusterCommandHandler.cpp index 4571ca9e3ddd2f..22e9b794f737e2 100644 --- a/examples/temperature-measurement-app/esp32/main/gen/IMClusterCommandHandler.cpp +++ b/examples/temperature-measurement-app/esp32/main/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -336,10 +334,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -357,8 +354,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -527,10 +523,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -548,8 +544,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1043,10 +1038,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1064,8 +1059,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1527,10 +1521,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1548,8 +1542,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -1575,10 +1569,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -1589,8 +1582,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -1601,10 +1594,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/temperature-measurement-app/esp32/main/gen/attribute-size.cpp b/examples/temperature-measurement-app/esp32/main/gen/attribute-size.cpp index 0d7bdbbd5e2001..4baa3d59aec026 100644 --- a/examples/temperature-measurement-app/esp32/main/gen/attribute-size.cpp +++ b/examples/temperature-measurement-app/esp32/main/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -94,7 +94,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -110,7 +110,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -147,8 +147,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -201,7 +201,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/thermostat/thermostat-common/gen/IMClusterCommandHandler.cpp b/examples/thermostat/thermostat-common/gen/IMClusterCommandHandler.cpp index 635db6345a7d70..8839087efab6d8 100644 --- a/examples/thermostat/thermostat-common/gen/IMClusterCommandHandler.cpp +++ b/examples/thermostat/thermostat-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace BarrierControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -332,10 +330,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::BarrierControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::BarrierControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -353,8 +350,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Basic { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { ReportCommandUnsupported(apCommandObj, aEndpointId, Clusters::Basic::Id, aCommandId); } @@ -363,8 +359,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Binding { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -529,10 +524,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Binding::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Binding::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -550,8 +544,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ColorControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1608,10 +1601,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ColorControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ColorControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1629,8 +1621,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1722,10 +1713,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1743,8 +1733,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DoorLock { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3104,10 +3093,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DoorLock::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DoorLock::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3125,8 +3113,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3295,10 +3282,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3316,8 +3303,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Groups { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3654,10 +3640,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Groups::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Groups::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3675,8 +3660,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace IasZone { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3763,10 +3747,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::IasZone::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::IasZone::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3784,8 +3767,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Identify { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3873,10 +3855,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Identify::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Identify::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3894,8 +3875,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LevelControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4396,10 +4376,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LevelControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LevelControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4417,8 +4396,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LowPower { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4448,10 +4426,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LowPower::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LowPower::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4469,8 +4446,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5098,10 +5074,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5119,8 +5095,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OtaSoftwareUpdateProvider { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5364,10 +5339,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5385,8 +5360,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5426,10 +5400,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5447,8 +5420,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5910,10 +5882,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5931,8 +5903,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Scenes { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -6402,10 +6373,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Scenes::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Scenes::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -6423,8 +6393,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace TestCluster { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -6464,10 +6433,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TestCluster::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TestCluster::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -6485,8 +6453,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -6554,10 +6522,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -6568,8 +6535,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -6580,10 +6547,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/thermostat/thermostat-common/gen/attribute-size.cpp b/examples/thermostat/thermostat-common/gen/attribute-size.cpp index d7987a0d8b53e8..e7c819b24a4493 100644 --- a/examples/thermostat/thermostat-common/gen/attribute-size.cpp +++ b/examples/thermostat/thermostat-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -118,7 +118,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo sizeof(entry->index)); // INT8U copyListMember(write ? dest : (uint8_t *) &entry->outputType, write ? (uint8_t *) &entry->outputType : src, write, &entryOffset, sizeof(entry->outputType)); // AudioOutputType - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { @@ -145,7 +145,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return 0; } - chip::ByteSpan * acceptsHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING + ByteSpan * acceptsHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING uint16_t acceptsHeaderListRemainingSpace = static_cast(am->size - entryOffset); if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, acceptsHeaderListRemainingSpace, acceptsHeaderListSpan) @@ -254,16 +254,16 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo } entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _LabelStruct - _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); - chip::ByteSpan * labelSpan = &entry->label; // OCTET_STRING + _LabelStruct * entry = reinterpret_cast<_LabelStruct *>(write ? src : dest); + ByteSpan * labelSpan = &entry->label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, labelSpan) : ReadByteSpan(src + entryOffset, 18, labelSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 18); - chip::ByteSpan * valueSpan = &entry->value; // OCTET_STRING + entryOffset = static_cast(entryOffset + 18); + ByteSpan * valueSpan = &entry->value; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, valueSpan) : ReadByteSpan(src + entryOffset, 18, valueSpan))) { @@ -292,7 +292,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -308,7 +308,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -363,7 +363,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyIndex, write ? (uint8_t *) &entry->GroupKeyIndex : src, write, &entryOffset, sizeof(entry->GroupKeyIndex)); // INT16U - chip::ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING + ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, GroupKeyRootSpan) : ReadByteSpan(src + entryOffset, 18, GroupKeyRootSpan))) @@ -403,15 +403,15 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo sizeof(entry->index)); // INT8U copyListMember(write ? dest : (uint8_t *) &entry->inputType, write ? (uint8_t *) &entry->inputType : src, write, &entryOffset, sizeof(entry->inputType)); // MediaInputType - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * descriptionSpan = &entry->description; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * descriptionSpan = &entry->description; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, descriptionSpan) : ReadByteSpan(src + entryOffset, 34, descriptionSpan))) @@ -446,8 +446,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -480,23 +480,23 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo &entryOffset, sizeof(entry->majorNumber)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->minorNumber, write ? (uint8_t *) &entry->minorNumber : src, write, &entryOffset, sizeof(entry->minorNumber)); // INT16U - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * callSignSpan = &entry->callSign; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * callSignSpan = &entry->callSign; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, callSignSpan) : ReadByteSpan(src + entryOffset, 34, callSignSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * affiliateCallSignSpan = &entry->affiliateCallSign; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * affiliateCallSignSpan = &entry->affiliateCallSign; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, affiliateCallSignSpan) : ReadByteSpan(src + entryOffset, 34, affiliateCallSignSpan))) @@ -528,7 +528,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo _NavigateTargetTargetInfo * entry = reinterpret_cast<_NavigateTargetTargetInfo *>(write ? src : dest); copyListMember(write ? dest : (uint8_t *) &entry->identifier, write ? (uint8_t *) &entry->identifier : src, write, &entryOffset, sizeof(entry->identifier)); // INT8U - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { @@ -567,7 +567,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return 0; } - chip::ByteSpan * listOctetStringSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING + ByteSpan * listOctetStringSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING uint16_t listOctetStringRemainingSpace = static_cast(am->size - entryOffset); if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, listOctetStringRemainingSpace, listOctetStringSpan) @@ -597,8 +597,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo // Struct _TestListStructOctet _TestListStructOctet * entry = reinterpret_cast<_TestListStructOctet *>(write ? src : dest); copyListMember(write ? dest : (uint8_t *) &entry->fabricIndex, write ? (uint8_t *) &entry->fabricIndex : src, write, - &entryOffset, sizeof(entry->fabricIndex)); // INT64U - chip::ByteSpan * operationalCertSpan = &entry->operationalCert; // OCTET_STRING + &entryOffset, sizeof(entry->fabricIndex)); // INT64U + ByteSpan * operationalCertSpan = &entry->operationalCert; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, operationalCertSpan) : ReadByteSpan(src + entryOffset, 34, operationalCertSpan))) @@ -950,7 +950,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp b/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp index 76a2183b430cc0..e197eab357e277 100644 --- a/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp +++ b/examples/tv-app/tv-common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AccountLogin { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -204,10 +203,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AccountLogin::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AccountLogin::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -225,8 +223,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -394,10 +391,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -415,8 +412,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ApplicationBasic { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -499,10 +495,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ApplicationBasic::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ApplicationBasic::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -520,8 +515,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ApplicationLauncher { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -615,10 +609,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ApplicationLauncher::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ApplicationLauncher::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -636,8 +630,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace AudioOutput { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -784,10 +777,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AudioOutput::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AudioOutput::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -805,8 +797,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Basic { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { ReportCommandUnsupported(apCommandObj, aEndpointId, Clusters::Basic::Id, aCommandId); } @@ -815,8 +806,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace Binding { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -981,10 +971,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Binding::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Binding::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1002,8 +991,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace ContentLauncher { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1157,10 +1145,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ContentLauncher::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ContentLauncher::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1178,8 +1165,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace DiagnosticLogs { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1271,10 +1257,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DiagnosticLogs::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DiagnosticLogs::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1292,8 +1277,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1462,10 +1446,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1483,8 +1467,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace KeypadInput { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1567,10 +1550,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::KeypadInput::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::KeypadInput::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1588,8 +1570,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LevelControl { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2090,10 +2071,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LevelControl::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LevelControl::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2111,8 +2091,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace LowPower { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2142,10 +2121,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::LowPower::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::LowPower::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2163,8 +2141,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace MediaInput { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2321,10 +2298,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::MediaInput::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::MediaInput::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2342,8 +2318,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace MediaPlayback { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2584,10 +2559,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::MediaPlayback::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::MediaPlayback::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2605,8 +2579,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3234,10 +3207,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3255,8 +3228,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OtaSoftwareUpdateProvider { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3500,10 +3472,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3521,8 +3493,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OnOff { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3562,10 +3533,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OnOff::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OnOff::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3583,8 +3553,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4046,10 +4015,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4067,8 +4036,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace TvChannel { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4273,10 +4241,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TvChannel::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TvChannel::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4294,8 +4261,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace TargetNavigator { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4384,10 +4350,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TargetNavigator::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TargetNavigator::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4405,8 +4370,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -4480,10 +4445,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -4494,8 +4458,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -4506,10 +4470,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/tv-app/tv-common/gen/attribute-size.cpp b/examples/tv-app/tv-common/gen/attribute-size.cpp index 04da6ae7b128c7..0445a1194ac695 100644 --- a/examples/tv-app/tv-common/gen/attribute-size.cpp +++ b/examples/tv-app/tv-common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -118,7 +118,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo sizeof(entry->index)); // INT8U copyListMember(write ? dest : (uint8_t *) &entry->outputType, write ? (uint8_t *) &entry->outputType : src, write, &entryOffset, sizeof(entry->outputType)); // AudioOutputType - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { @@ -145,7 +145,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return 0; } - chip::ByteSpan * acceptsHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING + ByteSpan * acceptsHeaderListSpan = reinterpret_cast(write ? src : dest); // OCTET_STRING uint16_t acceptsHeaderListRemainingSpace = static_cast(am->size - entryOffset); if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, acceptsHeaderListRemainingSpace, acceptsHeaderListSpan) @@ -255,7 +255,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -271,7 +271,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -326,7 +326,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->GroupKeyIndex, write ? (uint8_t *) &entry->GroupKeyIndex : src, write, &entryOffset, sizeof(entry->GroupKeyIndex)); // INT16U - chip::ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING + ByteSpan * GroupKeyRootSpan = &entry->GroupKeyRoot; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 18, GroupKeyRootSpan) : ReadByteSpan(src + entryOffset, 18, GroupKeyRootSpan))) @@ -366,15 +366,15 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo sizeof(entry->index)); // INT8U copyListMember(write ? dest : (uint8_t *) &entry->inputType, write ? (uint8_t *) &entry->inputType : src, write, &entryOffset, sizeof(entry->inputType)); // MediaInputType - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * descriptionSpan = &entry->description; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * descriptionSpan = &entry->description; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, descriptionSpan) : ReadByteSpan(src + entryOffset, 34, descriptionSpan))) @@ -409,8 +409,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -443,23 +443,23 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo &entryOffset, sizeof(entry->majorNumber)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->minorNumber, write ? (uint8_t *) &entry->minorNumber : src, write, &entryOffset, sizeof(entry->minorNumber)); // INT16U - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * callSignSpan = &entry->callSign; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * callSignSpan = &entry->callSign; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, callSignSpan) : ReadByteSpan(src + entryOffset, 34, callSignSpan))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); return 0; } - entryOffset = static_cast(entryOffset + 34); - chip::ByteSpan * affiliateCallSignSpan = &entry->affiliateCallSign; // OCTET_STRING + entryOffset = static_cast(entryOffset + 34); + ByteSpan * affiliateCallSignSpan = &entry->affiliateCallSign; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, affiliateCallSignSpan) : ReadByteSpan(src + entryOffset, 34, affiliateCallSignSpan))) @@ -491,7 +491,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo _NavigateTargetTargetInfo * entry = reinterpret_cast<_NavigateTargetTargetInfo *>(write ? src : dest); copyListMember(write ? dest : (uint8_t *) &entry->identifier, write ? (uint8_t *) &entry->identifier : src, write, &entryOffset, sizeof(entry->identifier)); // INT8U - chip::ByteSpan * nameSpan = &entry->name; // OCTET_STRING + ByteSpan * nameSpan = &entry->name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, nameSpan) : ReadByteSpan(src + entryOffset, 34, nameSpan))) { @@ -816,7 +816,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/examples/window-app/common/gen/IMClusterCommandHandler.cpp b/examples/window-app/common/gen/IMClusterCommandHandler.cpp index d58e8d4f0ce86f..8a25a46f852c81 100644 --- a/examples/window-app/common/gen/IMClusterCommandHandler.cpp +++ b/examples/window-app/common/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AdministratorCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -222,10 +221,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AdministratorCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AdministratorCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -243,8 +242,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace GeneralCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -413,10 +411,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -434,8 +432,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace NetworkCommissioning { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1063,10 +1060,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1084,8 +1081,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace OperationalCredentials { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1547,10 +1543,10 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1568,8 +1564,7 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman namespace WindowCovering { -void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchServerCommand(CommandHandler * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1851,10 +1846,9 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::WindowCovering::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::WindowCovering::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1872,8 +1866,8 @@ void DispatchServerCommand(app::CommandHandler * apCommandObj, CommandId aComman } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -1899,10 +1893,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -1913,8 +1906,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -1925,10 +1918,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/examples/window-app/common/gen/attribute-size.cpp b/examples/window-app/common/gen/attribute-size.cpp index 1888567e5c4370..ee22339f056061 100644 --- a/examples/window-app/common/gen/attribute-size.cpp +++ b/examples/window-app/common/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -94,7 +94,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo entryOffset = static_cast(entryOffset + ((index - 1) * entryLength)); // Struct _NetworkInterfaceType _NetworkInterfaceType * entry = reinterpret_cast<_NetworkInterfaceType *>(write ? src : dest); - chip::ByteSpan * NameSpan = &entry->Name; // OCTET_STRING + ByteSpan * NameSpan = &entry->Name; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, NameSpan) : ReadByteSpan(src + entryOffset, 34, NameSpan))) { @@ -110,7 +110,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->OffPremiseServicesReachableIPv6, write ? (uint8_t *) &entry->OffPremiseServicesReachableIPv6 : src, write, &entryOffset, sizeof(entry->OffPremiseServicesReachableIPv6)); // BOOLEAN - chip::ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING + ByteSpan * HardwareAddressSpan = &entry->HardwareAddress; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 10, HardwareAddressSpan) : ReadByteSpan(src + entryOffset, 10, HardwareAddressSpan))) @@ -147,8 +147,8 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo copyListMember(write ? dest : (uint8_t *) &entry->VendorId, write ? (uint8_t *) &entry->VendorId : src, write, &entryOffset, sizeof(entry->VendorId)); // INT16U copyListMember(write ? dest : (uint8_t *) &entry->NodeId, write ? (uint8_t *) &entry->NodeId : src, write, &entryOffset, - sizeof(entry->NodeId)); // NODE_ID - chip::ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING + sizeof(entry->NodeId)); // NODE_ID + ByteSpan * LabelSpan = &entry->Label; // OCTET_STRING if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, 34, LabelSpan) : ReadByteSpan(src + entryOffset, 34, LabelSpan))) { @@ -381,7 +381,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); diff --git a/src/app/zap-templates/templates/app/CHIPClientCallbacks-src.zapt b/src/app/zap-templates/templates/app/CHIPClientCallbacks-src.zapt index 919ac053f4b29e..7d3f76cb401ec2 100644 --- a/src/app/zap-templates/templates/app/CHIPClientCallbacks-src.zapt +++ b/src/app/zap-templates/templates/app/CHIPClientCallbacks-src.zapt @@ -39,7 +39,7 @@ constexpr uint16_t kByteSpanSizeLengthInBytes = 2; #define CHECK_STATUS_VOID(error) CHECK_STATUS_WITH_RETVAL(error, ) #define CHECK_MESSAGE_LENGTH_WITH_RETVAL(value, retval) \ - if (!chip::CanCastTo(value)) \ + if (!CanCastTo(value)) \ { \ ChipLogError(Zcl, "CHECK_MESSAGE_LENGTH expects a uint16_t value, got: %d", value); \ if (onFailureCallback != nullptr) \ @@ -243,130 +243,130 @@ static void LogIMStatus(Protocols::InteractionModel::ProtocolCode status) switch (status) { case Protocols::InteractionModel::ProtocolCode::Success: - ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Failure: - ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidSubscription: - ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAccess: - ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedEndpoint: - ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidAction: - ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCommand: - ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated82: - ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated83: - ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated84: - ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidCommand: - ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAttribute: - ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidValue: - ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedWrite: - ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ResourceExhausted: - ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8a: - ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NotFound: - ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnreportableAttribute: - ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidDataType: - ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8e: - ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedRead: - ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated90: - ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated91: - ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved92: - ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated93: - ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Timeout: - ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved95: - ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved96: - ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved97: - ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved98: - ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved99: - ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved9a: - ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ConstraintError: - ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Busy: - ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc0: - ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc1: - ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc2: - ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCluster: - ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc4: - ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NoUpstreamSubscription: - ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidArgument: - ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", to_underlying(status)); break; default: - ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, chip::to_underlying(status)); + ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, to_underlying(status)); break; } } @@ -396,7 +396,7 @@ bool emberAfDefaultResponseCallback(ClusterId clusterId, CommandId commandId, Em return true; } -bool IMDefaultResponseCallback(const chip::app::Command * commandObj, EmberAfStatus status) +bool IMDefaultResponseCallback(const app::Command * commandObj, EmberAfStatus status) { ChipLogProgress(Zcl, "DefaultResponse:"); ChipLogProgress(Zcl, " Transaction: %p", commandObj); @@ -505,7 +505,7 @@ bool IMReadReportAttributesResponseCallback(const app::ReadClient * apReadClient Callback::Callback * cb = Callback::Callback::FromCancelable(onFailureCallback); // TODO: Should change failure callbacks to accept uint16 status code. - cb->mCall(cb->mContext, static_cast(chip::to_underlying(status))); + cb->mCall(cb->mContext, static_cast(to_underlying(status))); } return true; @@ -522,7 +522,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -533,7 +533,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa else { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -569,7 +569,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -580,7 +580,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me else { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -589,7 +589,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me UNUSED_VAR(direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -614,7 +614,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me return true; } -bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId, uint8_t * message, uint16_t messageLen) +bool emberAfReadReportingConfigurationResponseCallback(ClusterId clusterId, uint8_t * message, uint16_t messageLen) { ChipLogProgress(Zcl, "ReadReportingConfigurationResponse:"); ChipLogProgress(Zcl, " ClusterId: " ChipLogFormatMEI, ChipLogValueMEI(clusterId)); @@ -625,11 +625,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -640,7 +640,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId if (direction == EMBER_ZCL_REPORTING_DIRECTION_REPORTED) { CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -649,11 +649,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId UNUSED_VAR(attributeType); CHECK_MESSAGE_LENGTH(2); - uint16_t minimumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t minimumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " minimumReportingInterval: %" PRIu16, minimumReportingInterval); CHECK_MESSAGE_LENGTH(2); - uint16_t maximumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t maximumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " maximumReportingInterval: %" PRIu16, maximumReportingInterval); // FIXME: unk is not supported yet. @@ -664,7 +664,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId else { CHECK_MESSAGE_LENGTH(2); - uint16_t timeout = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t timeout = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " timeout: %" PRIu16, timeout); Callback::Callback * cb = Callback::Callback::FromCancelable(onSuccessCallback); @@ -689,7 +689,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -698,7 +698,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove UNUSED_VAR(attributeId); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we want @@ -761,7 +761,7 @@ static EmberAfStatus PrepareListFromTLV(TLV::TLVReader * tlvData, const uint8_t reader.Init(*tlvData); reader.EnterContainer(type); tlvError = reader.Next(); - if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && chip::CanCastTo(reader.GetLength())) + if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && CanCastTo(reader.GetLength())) { return EMBER_ZCL_STATUS_INVALID_VALUE; } @@ -796,7 +796,7 @@ void {{asCamelCased parent.name false}}Cluster{{asCamelCased name false}}ListAtt } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); {{chipType}} data[count]; for (size_t i = 0; i < count; i++) { @@ -835,14 +835,14 @@ void {{asCamelCased parent.name false}}Cluster{{asCamelCased name false}}ListAtt {{#chip_client_clusters}} {{#chip_cluster_responses}} -bool emberAf{{asCamelCased parent.name false}}Cluster{{asCamelCased name false}}Callback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj{{#chip_cluster_response_arguments}}, {{asUnderlyingZclType type}} {{asSymbol label}}{{/chip_cluster_response_arguments}}) +bool emberAf{{asCamelCased parent.name false}}Cluster{{asCamelCased name false}}Callback(EndpointId endpoint, app::CommandSender * commandObj{{#chip_cluster_response_arguments}}, {{asUnderlyingZclType type}} {{asSymbol label}}{{/chip_cluster_response_arguments}}) { ChipLogProgress(Zcl, "{{asCamelCased name false}}:"); {{#chip_cluster_response_arguments}} {{#if (isOctetString type)}} ChipLogProgress(Zcl, " {{asSymbol label}}: %zu", {{asSymbol label}}.size()); {{else if (isCharString type)}} - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " {{asSymbol label}}: %.*s", {{asSymbol label}}.size(), {{asSymbol label}}.data()); {{else}} ChipLogProgress(Zcl, " {{asSymbol label}}: {{asPrintFormat type}}", {{asSymbol label}}); @@ -876,13 +876,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); GET_REPORT_CALLBACK("emberAfReportAttributesCallback"); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); + uint8_t attributeType = Encoding::Read8(message); ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); switch (attributeType) @@ -922,7 +922,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Short Strings must contains at least one byte for the length CHECK_MESSAGE_LENGTH(1); - uint8_t length = chip::Encoding::Read8(message); + uint8_t length = Encoding::Read8(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFF, it represents a non-value. In this case the data field is zero length. @@ -935,12 +935,12 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin if (attributeType == 0x41) { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -950,7 +950,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Long Strings must contains at least two bytes for the length CHECK_MESSAGE_LENGTH(2); - uint16_t length = chip::Encoding::LittleEndian::Read16(message); + uint16_t length = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFFFF, it represents a non-value. In this case the data field is zero length. @@ -963,12 +963,12 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin if (attributeType == 0x43) { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -979,7 +979,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x30: // enum8 / 8-bit enumeration { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: 0x%02x", value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -998,7 +998,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xFF: // unk / Unknown { CHECK_MESSAGE_LENGTH(2); - uint16_t value = chip::Encoding::LittleEndian::Read16(message); + uint16_t value = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " value: 0x%04x", value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1013,7 +1013,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xE2: // UTC / UTCTime { CHECK_MESSAGE_LENGTH(4); - uint32_t value = chip::Encoding::LittleEndian::Read32(message); + uint32_t value = Encoding::LittleEndian::Read32(message); ChipLogProgress(Zcl, " value: 0x%08x", value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1027,7 +1027,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xF0: // EUI64 / IEEE address { CHECK_MESSAGE_LENGTH(8); - uint64_t value = chip::Encoding::LittleEndian::Read64(message); + uint64_t value = Encoding::LittleEndian::Read64(message); ChipLogProgress(Zcl, " value: 0x" ChipLogFormatX64, ChipLogValueX64(value)); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1038,7 +1038,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x10: // bool / Boolean { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: %d", value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1049,7 +1049,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x28: // int8 / Signed 8-bit integer { CHECK_MESSAGE_LENGTH(1); - int8_t value = chip::CastToSigned(chip::Encoding::Read8(message)); + int8_t value = CastToSigned(Encoding::Read8(message)); ChipLogProgress(Zcl, " value: %" PRId8, value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1060,7 +1060,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x29: // int16 / Signed 16-bit integer { CHECK_MESSAGE_LENGTH(2); - int16_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read16(message)); + int16_t value = CastToSigned(Encoding::LittleEndian::Read16(message)); ChipLogProgress(Zcl, " value: %" PRId16, value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1071,7 +1071,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2B: // int32 / Signed 32-bit integer { CHECK_MESSAGE_LENGTH(4); - int32_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read32(message)); + int32_t value = CastToSigned(Encoding::LittleEndian::Read32(message)); ChipLogProgress(Zcl, " value: %" PRId32, value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); @@ -1082,7 +1082,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2F: // int64 / Signed 64-bit integer { CHECK_MESSAGE_LENGTH(8); - int64_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read64(message)); + int64_t value = CastToSigned(Encoding::LittleEndian::Read64(message)); ChipLogProgress(Zcl, " value: %" PRId64, value); Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); diff --git a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt index b418e7b17c3091..6bb55f679d25c3 100644 --- a/src/app/zap-templates/templates/app/CHIPClusters-src.zapt +++ b/src/app/zap-templates/templates/app/CHIPClusters-src.zapt @@ -41,6 +41,7 @@ } \ return SendCommand(seqNum, buf.Finalize(), onSuccessCallback, onFailureCallback); +namespace chip { namespace { // TODO: Find a way to calculate maximum message length for clusters // https://github.com/project-chip/connectedhomeip/issues/965 @@ -52,16 +53,15 @@ namespace { constexpr uint8_t kFrameControlGlobalCommand = 0x00; // Pick source endpoint as 1 for now - constexpr chip::EndpointId kSourceEndpoint = 1; + constexpr EndpointId kSourceEndpoint = 1; const uint8_t kReportingDirectionReported = 0x00; } -using namespace chip::app::Clusters; -using namespace chip::System; -using namespace chip::Encoding::LittleEndian; +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; -namespace chip { namespace Controller { // TODO(#4502): onCompletion is not used by IM for now. @@ -86,9 +86,9 @@ CHIP_ERROR {{asUpperCamelCase clusterName}}Cluster::{{asUpperCamelCase name}}(Ca VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, {{asUpperCamelCase parent.name}}::Commands::Ids::{{asUpperCamelCase name}}, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -134,11 +134,11 @@ CHIP_ERROR {{asCamelCased name false}}Cluster::DiscoverAttributes(Callback::Canc {{#chip_server_cluster_attributes}} CHIP_ERROR {{asUpperCamelCase parent.name}}Cluster::ReadAttribute{{asUpperCamelCase name}}(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = {{asHex code 8}}; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback,{{#if isList}}{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}ListAttributeFilter{{else}}BasicAttributeFilter<{{chipCallback.name}}AttributeCallback>{{/if}}); } diff --git a/src/app/zap-templates/templates/app/attribute-size-src.zapt b/src/app/zap-templates/templates/app/attribute-size-src.zapt index 6560ec29fe0c49..c8fcd6acc67604 100644 --- a/src/app/zap-templates/templates/app/attribute-size-src.zapt +++ b/src/app/zap-templates/templates/app/attribute-size-src.zapt @@ -51,7 +51,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -85,7 +85,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo {{chipType}} * entry = reinterpret_cast<{{chipType}} *>(write ? src : dest); {{#chip_attribute_list_entryTypes}} {{#if (isString type)}} - chip::ByteSpan * {{name}}Span = &entry->{{name}}; // {{type}} + ByteSpan * {{name}}Span = &entry->{{name}}; // {{type}} if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, {{size}}, {{name}}Span) : ReadByteSpan(src + entryOffset, {{size}}, {{name}}Span))) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Not enough remaining space", index); @@ -105,7 +105,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return 0; } - chip::ByteSpan * {{asCamelCased name}}Span = reinterpret_cast(write ? src : dest); // {{type}} + ByteSpan * {{asCamelCased name}}Span = reinterpret_cast(write ? src : dest); // {{type}} uint16_t {{asCamelCased name}}RemainingSpace = static_cast(am->size - entryOffset); if (CHIP_NO_ERROR != (write ? WriteByteSpan(dest + entryOffset, {{asCamelCased name}}RemainingSpace, {{asCamelCased name}}Span) : ReadByteSpan(src + entryOffset, {{asCamelCased name}}RemainingSpace, {{asCamelCased name}}Span))) { @@ -179,7 +179,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId)); return 0; diff --git a/src/app/zap-templates/templates/app/im-cluster-command-handler.zapt b/src/app/zap-templates/templates/app/im-cluster-command-handler.zapt index b0cccadcec0e1b..984323c1e25a4d 100644 --- a/src/app/zap-templates/templates/app/im-cluster-command-handler.zapt +++ b/src/app/zap-templates/templates/app/im-cluster-command-handler.zapt @@ -20,7 +20,7 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, + CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId aClusterId, aCommandId, @@ -39,7 +39,7 @@ namespace clusters { {{#if (user_cluster_has_enabled_command name side)}} namespace {{asCamelCased name false}} { -void Dispatch{{asCamelCased side false}}Command({{#if (isServer side)}}app::CommandHandler{{else}}app::CommandSender{{/if}} * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) +void Dispatch{{asCamelCased side false}}Command({{#if (isServer side)}}CommandHandler{{else}}CommandSender{{/if}} * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { {{#chip_available_cluster_commands}} {{#first}} @@ -72,11 +72,11 @@ void Dispatch{{asCamelCased side false}}Command({{#if (isServer side)}}app::Comm if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, + CommandPathParams returnStatusParam = { aEndpointId, 0, // GroupId Clusters::{{asUpperCamelCase parent.name}}::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, "Failed to dispatch command, %" PRIu32 "/%" PRIu32 " arguments parsed, TLVError=%" CHIP_ERROR_FORMAT ", UnpackError=%" CHIP_ERROR_FORMAT " (last decoded tag = %" PRIu32, validArgumentCount, expectArgumentCount, TLVError.Format(), TLVUnpackError.Format(), currentDecodeTagId); @@ -98,8 +98,8 @@ void Dispatch{{asCamelCased side false}}Command({{#if (isServer side)}}app::Comm } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -117,11 +117,11 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC {{/chip_server_clusters}} default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, + CommandPathParams returnStatusParam = { aEndPointId, 0, // GroupId aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -132,8 +132,8 @@ exit: aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -151,11 +151,11 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm {{/chip_client_clusters}} default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, + CommandPathParams returnStatusParam = { aEndPointId, 0, // GroupId aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/src/controller/data_model/gen/CHIPClientCallbacks.cpp b/src/controller/data_model/gen/CHIPClientCallbacks.cpp index fe52dc1f2bc4f9..d1d5453b7c04e3 100644 --- a/src/controller/data_model/gen/CHIPClientCallbacks.cpp +++ b/src/controller/data_model/gen/CHIPClientCallbacks.cpp @@ -55,7 +55,7 @@ constexpr uint16_t kByteSpanSizeLengthInBytes = 2; #define CHECK_STATUS_VOID(error) CHECK_STATUS_WITH_RETVAL(error, ) #define CHECK_MESSAGE_LENGTH_WITH_RETVAL(value, retval) \ - if (!chip::CanCastTo(value)) \ + if (!CanCastTo(value)) \ { \ ChipLogError(Zcl, "CHECK_MESSAGE_LENGTH expects a uint16_t value, got: %d", value); \ if (onFailureCallback != nullptr) \ @@ -258,130 +258,130 @@ static void LogIMStatus(Protocols::InteractionModel::ProtocolCode status) switch (status) { case Protocols::InteractionModel::ProtocolCode::Success: - ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Success (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Failure: - ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Failure (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidSubscription: - ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAccess: - ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAccess (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedEndpoint: - ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedEndpoint (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidAction: - ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidAction (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCommand: - ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated82: - ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated82 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated83: - ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated83 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated84: - ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated84 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidCommand: - ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidCommand (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedAttribute: - ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidValue: - ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidValue (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedWrite: - ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedWrite (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ResourceExhausted: - ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ResourceExhausted (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8a: - ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NotFound: - ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NotFound (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnreportableAttribute: - ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnreportableAttribute (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidDataType: - ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidDataType (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated8e: - ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated8e (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedRead: - ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedRead (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated90: - ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated90 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated91: - ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated91 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved92: - ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved92 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecated93: - ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecated93 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Timeout: - ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Timeout (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved95: - ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved95 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved96: - ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved96 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved97: - ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved97 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved98: - ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved98 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved99: - ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved99 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Reserved9a: - ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Reserved9a (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::ConstraintError: - ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: ConstraintError (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Busy: - ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Busy (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc0: - ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc0 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc1: - ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc1 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc2: - ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc2 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::UnsupportedCluster: - ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: UnsupportedCluster (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::Deprecatedc4: - ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: Deprecatedc4 (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::NoUpstreamSubscription: - ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: NoUpstreamSubscription (0x%04" PRIx16 ")", to_underlying(status)); break; case Protocols::InteractionModel::ProtocolCode::InvalidArgument: - ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", chip::to_underlying(status)); + ChipLogProgress(Zcl, " status: InvalidArgument (0x%04" PRIx16 ")", to_underlying(status)); break; default: - ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, chip::to_underlying(status)); + ChipLogError(Zcl, "Unknown status: 0x%04" PRIx16, to_underlying(status)); break; } } @@ -413,7 +413,7 @@ bool emberAfDefaultResponseCallback(ClusterId clusterId, CommandId commandId, Em return true; } -bool IMDefaultResponseCallback(const chip::app::Command * commandObj, EmberAfStatus status) +bool IMDefaultResponseCallback(const app::Command * commandObj, EmberAfStatus status) { ChipLogProgress(Zcl, "DefaultResponse:"); ChipLogProgress(Zcl, " Transaction: %p", commandObj); @@ -524,7 +524,7 @@ bool IMReadReportAttributesResponseCallback(const app::ReadClient * apReadClient Callback::Callback * cb = Callback::Callback::FromCancelable(onFailureCallback); // TODO: Should change failure callbacks to accept uint16 status code. - cb->mCall(cb->mContext, static_cast(chip::to_underlying(status))); + cb->mCall(cb->mContext, static_cast(to_underlying(status))); } return true; @@ -541,7 +541,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -553,7 +553,7 @@ bool emberAfWriteAttributesResponseCallback(ClusterId clusterId, uint8_t * messa else { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -590,7 +590,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t status = chip::Encoding::Read8(message); // zclStatus + uint8_t status = Encoding::Read8(message); // zclStatus LogStatus(status); if (status == EMBER_ZCL_STATUS_SUCCESS) @@ -602,7 +602,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me else { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -611,7 +611,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me UNUSED_VAR(direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -637,7 +637,7 @@ bool emberAfConfigureReportingResponseCallback(ClusterId clusterId, uint8_t * me return true; } -bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId, uint8_t * message, uint16_t messageLen) +bool emberAfReadReportingConfigurationResponseCallback(ClusterId clusterId, uint8_t * message, uint16_t messageLen) { ChipLogProgress(Zcl, "ReadReportingConfigurationResponse:"); ChipLogProgress(Zcl, " ClusterId: " ChipLogFormatMEI, ChipLogValueMEI(clusterId)); @@ -648,11 +648,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId while (messageLen) { CHECK_MESSAGE_LENGTH(1); - uint8_t direction = chip::Encoding::Read8(message); // reportingRole + uint8_t direction = Encoding::Read8(message); // reportingRole ChipLogProgress(Zcl, " direction: 0x%02x", direction); CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -663,7 +663,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId if (direction == EMBER_ZCL_REPORTING_DIRECTION_REPORTED) { CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we @@ -672,11 +672,11 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId UNUSED_VAR(attributeType); CHECK_MESSAGE_LENGTH(2); - uint16_t minimumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t minimumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " minimumReportingInterval: %" PRIu16, minimumReportingInterval); CHECK_MESSAGE_LENGTH(2); - uint16_t maximumReportingInterval = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t maximumReportingInterval = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " maximumReportingInterval: %" PRIu16, maximumReportingInterval); // FIXME: unk is not supported yet. @@ -688,7 +688,7 @@ bool emberAfReadReportingConfigurationResponseCallback(chip::ClusterId clusterId else { CHECK_MESSAGE_LENGTH(2); - uint16_t timeout = chip::Encoding::LittleEndian::Read16(message); // uint16 + uint16_t timeout = Encoding::LittleEndian::Read16(message); // uint16 ChipLogProgress(Zcl, " timeout: %" PRIu16, timeout); Callback::Callback * cb = @@ -714,7 +714,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read32 unconditionally here, because we @@ -723,7 +723,7 @@ bool emberAfDiscoverAttributesResponseCallback(ClusterId clusterId, bool discove UNUSED_VAR(attributeId); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); // zclType + uint8_t attributeType = Encoding::Read8(message); // zclType ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); // Silence unused var warning if progress logging is disabled. Note // that we _do_ want to call Read8 unconditionally here, because we want @@ -786,7 +786,7 @@ static EmberAfStatus PrepareListFromTLV(TLV::TLVReader * tlvData, const uint8_t reader.Init(*tlvData); reader.EnterContainer(type); tlvError = reader.Next(); - if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && chip::CanCastTo(reader.GetLength())) + if (tlvError != CHIP_NO_ERROR && tlvError != CHIP_END_OF_TLV && CanCastTo(reader.GetLength())) { return EMBER_ZCL_STATUS_INVALID_VALUE; } @@ -820,7 +820,7 @@ void ApplicationLauncherClusterApplicationLauncherListListAttributeFilter(TLV::T } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); uint16_t data[count]; for (size_t i = 0; i < count; i++) { @@ -849,7 +849,7 @@ void AudioOutputClusterAudioOutputListListAttributeFilter(TLV::TLVReader * tlvDa } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _AudioOutputInfo data[count]; for (size_t i = 0; i < count; i++) { @@ -884,7 +884,7 @@ void ContentLauncherClusterAcceptsHeaderListListAttributeFilter(TLV::TLVReader * } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); chip::ByteSpan data[count]; for (size_t i = 0; i < count; i++) { @@ -915,7 +915,7 @@ void ContentLauncherClusterSupportedStreamingTypesListAttributeFilter(TLV::TLVRe } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); uint8_t data[count]; for (size_t i = 0; i < count; i++) { @@ -944,7 +944,7 @@ void DescriptorClusterDeviceListListAttributeFilter(TLV::TLVReader * tlvData, Ca } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _DeviceType data[count]; for (size_t i = 0; i < count; i++) { @@ -976,7 +976,7 @@ void DescriptorClusterServerListListAttributeFilter(TLV::TLVReader * tlvData, Ca } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); chip::ClusterId data[count]; for (size_t i = 0; i < count; i++) { @@ -1005,7 +1005,7 @@ void DescriptorClusterClientListListAttributeFilter(TLV::TLVReader * tlvData, Ca } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); chip::ClusterId data[count]; for (size_t i = 0; i < count; i++) { @@ -1034,7 +1034,7 @@ void DescriptorClusterPartsListListAttributeFilter(TLV::TLVReader * tlvData, Cal } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); chip::EndpointId data[count]; for (size_t i = 0; i < count; i++) { @@ -1063,7 +1063,7 @@ void FixedLabelClusterLabelListListAttributeFilter(TLV::TLVReader * tlvData, Cal } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _LabelStruct data[count]; for (size_t i = 0; i < count; i++) { @@ -1096,7 +1096,7 @@ void GeneralDiagnosticsClusterNetworkInterfacesListAttributeFilter(TLV::TLVReade } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _NetworkInterfaceType data[count]; for (size_t i = 0; i < count; i++) { @@ -1140,7 +1140,7 @@ void GroupKeyManagementClusterGroupsListAttributeFilter(TLV::TLVReader * tlvData } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _GroupState data[count]; for (size_t i = 0; i < count; i++) { @@ -1175,7 +1175,7 @@ void GroupKeyManagementClusterGroupKeysListAttributeFilter(TLV::TLVReader * tlvD } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _GroupKey data[count]; for (size_t i = 0; i < count; i++) { @@ -1216,7 +1216,7 @@ void MediaInputClusterMediaInputListListAttributeFilter(TLV::TLVReader * tlvData } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _MediaInputInfo data[count]; for (size_t i = 0; i < count; i++) { @@ -1254,7 +1254,7 @@ void OperationalCredentialsClusterFabricsListListAttributeFilter(TLV::TLVReader } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _FabricDescriptor data[count]; for (size_t i = 0; i < count; i++) { @@ -1292,7 +1292,7 @@ void TvChannelClusterTvChannelListListAttributeFilter(TLV::TLVReader * tlvData, } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _TvChannelInfo data[count]; for (size_t i = 0; i < count; i++) { @@ -1334,7 +1334,7 @@ void TargetNavigatorClusterTargetNavigatorListListAttributeFilter(TLV::TLVReader } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _NavigateTargetTargetInfo data[count]; for (size_t i = 0; i < count; i++) { @@ -1366,7 +1366,7 @@ void TestClusterClusterListInt8uListAttributeFilter(TLV::TLVReader * tlvData, Ca } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); uint8_t data[count]; for (size_t i = 0; i < count; i++) { @@ -1395,7 +1395,7 @@ void TestClusterClusterListOctetStringListAttributeFilter(TLV::TLVReader * tlvDa } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); chip::ByteSpan data[count]; for (size_t i = 0; i < count; i++) { @@ -1425,7 +1425,7 @@ void TestClusterClusterListStructOctetStringListAttributeFilter(TLV::TLVReader * } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _TestListStructOctet data[count]; for (size_t i = 0; i < count; i++) { @@ -1458,7 +1458,7 @@ void ThreadNetworkDiagnosticsClusterNeighborTableListListAttributeFilter(TLV::TL } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _NeighborTable data[count]; for (size_t i = 0; i < count; i++) { @@ -1527,7 +1527,7 @@ void ThreadNetworkDiagnosticsClusterRouteTableListListAttributeFilter(TLV::TLVRe } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _RouteTable data[count]; for (size_t i = 0; i < count; i++) { @@ -1584,7 +1584,7 @@ void ThreadNetworkDiagnosticsClusterSecurityPolicyListAttributeFilter(TLV::TLVRe } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _SecurityPolicy data[count]; for (size_t i = 0; i < count; i++) { @@ -1617,7 +1617,7 @@ void ThreadNetworkDiagnosticsClusterOperationalDatasetComponentsListAttributeFil } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); _OperationalDatasetComponents data[count]; for (size_t i = 0; i < count; i++) { @@ -1681,7 +1681,7 @@ void ThreadNetworkDiagnosticsClusterActiveNetworkFaultsListListAttributeFilter(T } CHECK_MESSAGE_LENGTH_VOID(2); - uint16_t count = chip::Encoding::LittleEndian::Read16(message); + uint16_t count = Encoding::LittleEndian::Read16(message); uint8_t data[count]; for (size_t i = 0; i < count; i++) { @@ -1694,11 +1694,10 @@ void ThreadNetworkDiagnosticsClusterActiveNetworkFaultsListListAttributeFilter(T cb->mCall(cb->mContext, count, data); } -bool emberAfAccountLoginClusterGetSetupPINResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t * setupPIN) +bool emberAfAccountLoginClusterGetSetupPINResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t * setupPIN) { ChipLogProgress(Zcl, "GetSetupPINResponse:"); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " setupPIN: %.*s", setupPIN.size(), setupPIN.data()); GET_CLUSTER_RESPONSE_CALLBACKS("AccountLoginClusterGetSetupPINResponseCallback"); @@ -1709,12 +1708,12 @@ bool emberAfAccountLoginClusterGetSetupPINResponseCallback(chip::EndpointId endp return true; } -bool emberAfApplicationLauncherClusterLaunchAppResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfApplicationLauncherClusterLaunchAppResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, uint8_t * data) { ChipLogProgress(Zcl, "LaunchAppResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " data: %.*s", data.size(), data.data()); GET_CLUSTER_RESPONSE_CALLBACKS("ApplicationLauncherClusterLaunchAppResponseCallback"); @@ -1725,11 +1724,11 @@ bool emberAfApplicationLauncherClusterLaunchAppResponseCallback(chip::EndpointId return true; } -bool emberAfContentLauncherClusterLaunchContentResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfContentLauncherClusterLaunchContentResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t * data, uint8_t contentLaunchStatus) { ChipLogProgress(Zcl, "LaunchContentResponse:"); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " data: %.*s", data.size(), data.data()); ChipLogProgress(Zcl, " contentLaunchStatus: %" PRIu8 "", contentLaunchStatus); @@ -1741,11 +1740,11 @@ bool emberAfContentLauncherClusterLaunchContentResponseCallback(chip::EndpointId return true; } -bool emberAfContentLauncherClusterLaunchURLResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t * data, uint8_t contentLaunchStatus) +bool emberAfContentLauncherClusterLaunchURLResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t * data, + uint8_t contentLaunchStatus) { ChipLogProgress(Zcl, "LaunchURLResponse:"); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " data: %.*s", data.size(), data.data()); ChipLogProgress(Zcl, " contentLaunchStatus: %" PRIu8 "", contentLaunchStatus); @@ -1757,8 +1756,7 @@ bool emberAfContentLauncherClusterLaunchURLResponseCallback(chip::EndpointId end return true; } -bool emberAfDoorLockClusterClearAllPinsResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterClearAllPinsResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearAllPinsResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -1771,8 +1769,7 @@ bool emberAfDoorLockClusterClearAllPinsResponseCallback(chip::EndpointId endpoin return true; } -bool emberAfDoorLockClusterClearAllRfidsResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterClearAllRfidsResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearAllRfidsResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -1785,7 +1782,7 @@ bool emberAfDoorLockClusterClearAllRfidsResponseCallback(chip::EndpointId endpoi return true; } -bool emberAfDoorLockClusterClearHolidayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfDoorLockClusterClearHolidayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearHolidayScheduleResponse:"); @@ -1799,8 +1796,7 @@ bool emberAfDoorLockClusterClearHolidayScheduleResponseCallback(chip::EndpointId return true; } -bool emberAfDoorLockClusterClearPinResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterClearPinResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearPinResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -1813,8 +1809,7 @@ bool emberAfDoorLockClusterClearPinResponseCallback(chip::EndpointId endpoint, c return true; } -bool emberAfDoorLockClusterClearRfidResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterClearRfidResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearRfidResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -1827,7 +1822,7 @@ bool emberAfDoorLockClusterClearRfidResponseCallback(chip::EndpointId endpoint, return true; } -bool emberAfDoorLockClusterClearWeekdayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfDoorLockClusterClearWeekdayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearWeekdayScheduleResponse:"); @@ -1841,7 +1836,7 @@ bool emberAfDoorLockClusterClearWeekdayScheduleResponseCallback(chip::EndpointId return true; } -bool emberAfDoorLockClusterClearYeardayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfDoorLockClusterClearYeardayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "ClearYeardayScheduleResponse:"); @@ -1855,7 +1850,7 @@ bool emberAfDoorLockClusterClearYeardayScheduleResponseCallback(chip::EndpointId return true; } -bool emberAfDoorLockClusterGetHolidayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfDoorLockClusterGetHolidayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t scheduleId, uint8_t status, uint32_t localStartTime, uint32_t localEndTime, uint8_t operatingModeDuringHoliday) { @@ -1874,8 +1869,8 @@ bool emberAfDoorLockClusterGetHolidayScheduleResponseCallback(chip::EndpointId e return true; } -bool emberAfDoorLockClusterGetLogRecordResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t logEntryId, uint32_t timestamp, uint8_t eventType, uint8_t source, +bool emberAfDoorLockClusterGetLogRecordResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint16_t logEntryId, + uint32_t timestamp, uint8_t eventType, uint8_t source, uint8_t eventIdOrAlarmCode, uint16_t userId, uint8_t * pin) { ChipLogProgress(Zcl, "GetLogRecordResponse:"); @@ -1885,7 +1880,7 @@ bool emberAfDoorLockClusterGetLogRecordResponseCallback(chip::EndpointId endpoin ChipLogProgress(Zcl, " source: %" PRIu8 "", source); ChipLogProgress(Zcl, " eventIdOrAlarmCode: %" PRIu8 "", eventIdOrAlarmCode); ChipLogProgress(Zcl, " userId: %" PRIu16 "", userId); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " pin: %.*s", pin.size(), pin.data()); GET_CLUSTER_RESPONSE_CALLBACKS("DoorLockClusterGetLogRecordResponseCallback"); @@ -1896,14 +1891,14 @@ bool emberAfDoorLockClusterGetLogRecordResponseCallback(chip::EndpointId endpoin return true; } -bool emberAfDoorLockClusterGetPinResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint16_t userId, +bool emberAfDoorLockClusterGetPinResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint16_t userId, uint8_t userStatus, uint8_t userType, uint8_t * pin) { ChipLogProgress(Zcl, "GetPinResponse:"); ChipLogProgress(Zcl, " userId: %" PRIu16 "", userId); ChipLogProgress(Zcl, " userStatus: %" PRIu8 "", userStatus); ChipLogProgress(Zcl, " userType: %" PRIu8 "", userType); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " pin: %.*s", pin.size(), pin.data()); GET_CLUSTER_RESPONSE_CALLBACKS("DoorLockClusterGetPinResponseCallback"); @@ -1914,14 +1909,14 @@ bool emberAfDoorLockClusterGetPinResponseCallback(chip::EndpointId endpoint, chi return true; } -bool emberAfDoorLockClusterGetRfidResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t userId, uint8_t userStatus, uint8_t userType, uint8_t * rfid) +bool emberAfDoorLockClusterGetRfidResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint16_t userId, + uint8_t userStatus, uint8_t userType, uint8_t * rfid) { ChipLogProgress(Zcl, "GetRfidResponse:"); ChipLogProgress(Zcl, " userId: %" PRIu16 "", userId); ChipLogProgress(Zcl, " userStatus: %" PRIu8 "", userStatus); ChipLogProgress(Zcl, " userType: %" PRIu8 "", userType); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " rfid: %.*s", rfid.size(), rfid.data()); GET_CLUSTER_RESPONSE_CALLBACKS("DoorLockClusterGetRfidResponseCallback"); @@ -1932,8 +1927,8 @@ bool emberAfDoorLockClusterGetRfidResponseCallback(chip::EndpointId endpoint, ch return true; } -bool emberAfDoorLockClusterGetUserTypeResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t userId, uint8_t userType) +bool emberAfDoorLockClusterGetUserTypeResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint16_t userId, + uint8_t userType) { ChipLogProgress(Zcl, "GetUserTypeResponse:"); ChipLogProgress(Zcl, " userId: %" PRIu16 "", userId); @@ -1947,7 +1942,7 @@ bool emberAfDoorLockClusterGetUserTypeResponseCallback(chip::EndpointId endpoint return true; } -bool emberAfDoorLockClusterGetWeekdayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfDoorLockClusterGetWeekdayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t scheduleId, uint16_t userId, uint8_t status, uint8_t daysMask, uint8_t startHour, uint8_t startMinute, uint8_t endHour, uint8_t endMinute) @@ -1970,7 +1965,7 @@ bool emberAfDoorLockClusterGetWeekdayScheduleResponseCallback(chip::EndpointId e return true; } -bool emberAfDoorLockClusterGetYeardayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfDoorLockClusterGetYeardayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t scheduleId, uint16_t userId, uint8_t status, uint32_t localStartTime, uint32_t localEndTime) { @@ -1989,8 +1984,7 @@ bool emberAfDoorLockClusterGetYeardayScheduleResponseCallback(chip::EndpointId e return true; } -bool emberAfDoorLockClusterLockDoorResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterLockDoorResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "LockDoorResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2003,8 +1997,7 @@ bool emberAfDoorLockClusterLockDoorResponseCallback(chip::EndpointId endpoint, c return true; } -bool emberAfDoorLockClusterSetHolidayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterSetHolidayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SetHolidayScheduleResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2017,7 +2010,7 @@ bool emberAfDoorLockClusterSetHolidayScheduleResponseCallback(chip::EndpointId e return true; } -bool emberAfDoorLockClusterSetPinResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t status) +bool emberAfDoorLockClusterSetPinResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SetPinResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2030,7 +2023,7 @@ bool emberAfDoorLockClusterSetPinResponseCallback(chip::EndpointId endpoint, chi return true; } -bool emberAfDoorLockClusterSetRfidResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t status) +bool emberAfDoorLockClusterSetRfidResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SetRfidResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2043,8 +2036,7 @@ bool emberAfDoorLockClusterSetRfidResponseCallback(chip::EndpointId endpoint, ch return true; } -bool emberAfDoorLockClusterSetUserTypeResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterSetUserTypeResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SetUserTypeResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2057,8 +2049,7 @@ bool emberAfDoorLockClusterSetUserTypeResponseCallback(chip::EndpointId endpoint return true; } -bool emberAfDoorLockClusterSetWeekdayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterSetWeekdayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SetWeekdayScheduleResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2071,8 +2062,7 @@ bool emberAfDoorLockClusterSetWeekdayScheduleResponseCallback(chip::EndpointId e return true; } -bool emberAfDoorLockClusterSetYeardayScheduleResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterSetYeardayScheduleResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SetYeardayScheduleResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2085,8 +2075,7 @@ bool emberAfDoorLockClusterSetYeardayScheduleResponseCallback(chip::EndpointId e return true; } -bool emberAfDoorLockClusterUnlockDoorResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterUnlockDoorResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "UnlockDoorResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2099,8 +2088,7 @@ bool emberAfDoorLockClusterUnlockDoorResponseCallback(chip::EndpointId endpoint, return true; } -bool emberAfDoorLockClusterUnlockWithTimeoutResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfDoorLockClusterUnlockWithTimeoutResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "UnlockWithTimeoutResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2113,12 +2101,12 @@ bool emberAfDoorLockClusterUnlockWithTimeoutResponseCallback(chip::EndpointId en return true; } -bool emberAfGeneralCommissioningClusterArmFailSafeResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfGeneralCommissioningClusterArmFailSafeResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "ArmFailSafeResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("GeneralCommissioningClusterArmFailSafeResponseCallback"); @@ -2129,13 +2117,12 @@ bool emberAfGeneralCommissioningClusterArmFailSafeResponseCallback(chip::Endpoin return true; } -bool emberAfGeneralCommissioningClusterCommissioningCompleteResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, +bool emberAfGeneralCommissioningClusterCommissioningCompleteResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "CommissioningCompleteResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("GeneralCommissioningClusterCommissioningCompleteResponseCallback"); @@ -2146,13 +2133,12 @@ bool emberAfGeneralCommissioningClusterCommissioningCompleteResponseCallback(chi return true; } -bool emberAfGeneralCommissioningClusterSetRegulatoryConfigResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfGeneralCommissioningClusterSetRegulatoryConfigResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "SetRegulatoryConfigResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("GeneralCommissioningClusterSetRegulatoryConfigResponseCallback"); @@ -2163,7 +2149,7 @@ bool emberAfGeneralCommissioningClusterSetRegulatoryConfigResponseCallback(chip: return true; } -bool emberAfGroupsClusterAddGroupResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t status, +bool emberAfGroupsClusterAddGroupResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, uint16_t groupId) { ChipLogProgress(Zcl, "AddGroupResponse:"); @@ -2178,8 +2164,8 @@ bool emberAfGroupsClusterAddGroupResponseCallback(chip::EndpointId endpoint, chi return true; } -bool emberAfGroupsClusterGetGroupMembershipResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t capacity, uint8_t groupCount, +bool emberAfGroupsClusterGetGroupMembershipResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t capacity, + uint8_t groupCount, /* TYPE WARNING: array array defaults to */ uint8_t * groupList) { ChipLogProgress(Zcl, "GetGroupMembershipResponse:"); @@ -2195,8 +2181,8 @@ bool emberAfGroupsClusterGetGroupMembershipResponseCallback(chip::EndpointId end return true; } -bool emberAfGroupsClusterRemoveGroupResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status, uint16_t groupId) +bool emberAfGroupsClusterRemoveGroupResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, + uint16_t groupId) { ChipLogProgress(Zcl, "RemoveGroupResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2210,13 +2196,13 @@ bool emberAfGroupsClusterRemoveGroupResponseCallback(chip::EndpointId endpoint, return true; } -bool emberAfGroupsClusterViewGroupResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t status, +bool emberAfGroupsClusterViewGroupResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, uint16_t groupId, uint8_t * groupName) { ChipLogProgress(Zcl, "ViewGroupResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); ChipLogProgress(Zcl, " groupId: %" PRIu16 "", groupId); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " groupName: %.*s", groupName.size(), groupName.data()); GET_CLUSTER_RESPONSE_CALLBACKS("GroupsClusterViewGroupResponseCallback"); @@ -2227,8 +2213,7 @@ bool emberAfGroupsClusterViewGroupResponseCallback(chip::EndpointId endpoint, ch return true; } -bool emberAfIdentifyClusterIdentifyQueryResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t timeout) +bool emberAfIdentifyClusterIdentifyQueryResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint16_t timeout) { ChipLogProgress(Zcl, "IdentifyQueryResponse:"); ChipLogProgress(Zcl, " timeout: %" PRIu16 "", timeout); @@ -2241,8 +2226,7 @@ bool emberAfIdentifyClusterIdentifyQueryResponseCallback(chip::EndpointId endpoi return true; } -bool emberAfKeypadInputClusterSendKeyResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status) +bool emberAfKeypadInputClusterSendKeyResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status) { ChipLogProgress(Zcl, "SendKeyResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2255,7 +2239,7 @@ bool emberAfKeypadInputClusterSendKeyResponseCallback(chip::EndpointId endpoint, return true; } -bool emberAfMediaPlaybackClusterMediaFastForwardResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaFastForwardResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaFastForwardResponse:"); @@ -2269,7 +2253,7 @@ bool emberAfMediaPlaybackClusterMediaFastForwardResponseCallback(chip::EndpointI return true; } -bool emberAfMediaPlaybackClusterMediaNextResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaNextResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaNextResponse:"); @@ -2283,7 +2267,7 @@ bool emberAfMediaPlaybackClusterMediaNextResponseCallback(chip::EndpointId endpo return true; } -bool emberAfMediaPlaybackClusterMediaPauseResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaPauseResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaPauseResponse:"); @@ -2297,7 +2281,7 @@ bool emberAfMediaPlaybackClusterMediaPauseResponseCallback(chip::EndpointId endp return true; } -bool emberAfMediaPlaybackClusterMediaPlayResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaPlayResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaPlayResponse:"); @@ -2311,7 +2295,7 @@ bool emberAfMediaPlaybackClusterMediaPlayResponseCallback(chip::EndpointId endpo return true; } -bool emberAfMediaPlaybackClusterMediaPreviousResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaPreviousResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaPreviousResponse:"); @@ -2325,7 +2309,7 @@ bool emberAfMediaPlaybackClusterMediaPreviousResponseCallback(chip::EndpointId e return true; } -bool emberAfMediaPlaybackClusterMediaRewindResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaRewindResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaRewindResponse:"); @@ -2339,7 +2323,7 @@ bool emberAfMediaPlaybackClusterMediaRewindResponseCallback(chip::EndpointId end return true; } -bool emberAfMediaPlaybackClusterMediaSeekResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaSeekResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaSeekResponse:"); @@ -2353,7 +2337,7 @@ bool emberAfMediaPlaybackClusterMediaSeekResponseCallback(chip::EndpointId endpo return true; } -bool emberAfMediaPlaybackClusterMediaSkipBackwardResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaSkipBackwardResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaSkipBackwardResponse:"); @@ -2367,7 +2351,7 @@ bool emberAfMediaPlaybackClusterMediaSkipBackwardResponseCallback(chip::Endpoint return true; } -bool emberAfMediaPlaybackClusterMediaSkipForwardResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaSkipForwardResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaSkipForwardResponse:"); @@ -2381,7 +2365,7 @@ bool emberAfMediaPlaybackClusterMediaSkipForwardResponseCallback(chip::EndpointI return true; } -bool emberAfMediaPlaybackClusterMediaStartOverResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaStartOverResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaStartOverResponse:"); @@ -2395,7 +2379,7 @@ bool emberAfMediaPlaybackClusterMediaStartOverResponseCallback(chip::EndpointId return true; } -bool emberAfMediaPlaybackClusterMediaStopResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfMediaPlaybackClusterMediaStopResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t mediaPlaybackStatus) { ChipLogProgress(Zcl, "MediaStopResponse:"); @@ -2409,13 +2393,12 @@ bool emberAfMediaPlaybackClusterMediaStopResponseCallback(chip::EndpointId endpo return true; } -bool emberAfNetworkCommissioningClusterAddThreadNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterAddThreadNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "AddThreadNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterAddThreadNetworkResponseCallback"); @@ -2426,13 +2409,12 @@ bool emberAfNetworkCommissioningClusterAddThreadNetworkResponseCallback(chip::En return true; } -bool emberAfNetworkCommissioningClusterAddWiFiNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterAddWiFiNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "AddWiFiNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterAddWiFiNetworkResponseCallback"); @@ -2443,13 +2425,12 @@ bool emberAfNetworkCommissioningClusterAddWiFiNetworkResponseCallback(chip::Endp return true; } -bool emberAfNetworkCommissioningClusterDisableNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterDisableNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "DisableNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterDisableNetworkResponseCallback"); @@ -2460,13 +2441,12 @@ bool emberAfNetworkCommissioningClusterDisableNetworkResponseCallback(chip::Endp return true; } -bool emberAfNetworkCommissioningClusterEnableNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterEnableNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "EnableNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterEnableNetworkResponseCallback"); @@ -2477,13 +2457,12 @@ bool emberAfNetworkCommissioningClusterEnableNetworkResponseCallback(chip::Endpo return true; } -bool emberAfNetworkCommissioningClusterRemoveNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterRemoveNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "RemoveNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterRemoveNetworkResponseCallback"); @@ -2495,13 +2474,13 @@ bool emberAfNetworkCommissioningClusterRemoveNetworkResponseCallback(chip::Endpo } bool emberAfNetworkCommissioningClusterScanNetworksResponseCallback( - chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t errorCode, uint8_t * debugText, + EndpointId endpoint, app::CommandSender * commandObj, uint8_t errorCode, uint8_t * debugText, /* TYPE WARNING: array array defaults to */ uint8_t * wifiScanResults, /* TYPE WARNING: array array defaults to */ uint8_t * threadScanResults) { ChipLogProgress(Zcl, "ScanNetworksResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); ChipLogProgress(Zcl, " wifiScanResults: %p", wifiScanResults); ChipLogProgress(Zcl, " threadScanResults: %p", threadScanResults); @@ -2514,13 +2493,12 @@ bool emberAfNetworkCommissioningClusterScanNetworksResponseCallback( return true; } -bool emberAfNetworkCommissioningClusterUpdateThreadNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterUpdateThreadNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "UpdateThreadNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterUpdateThreadNetworkResponseCallback"); @@ -2531,13 +2509,12 @@ bool emberAfNetworkCommissioningClusterUpdateThreadNetworkResponseCallback(chip: return true; } -bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t errorCode, - uint8_t * debugText) +bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t errorCode, uint8_t * debugText) { ChipLogProgress(Zcl, "UpdateWiFiNetworkResponse:"); ChipLogProgress(Zcl, " errorCode: %" PRIu8 "", errorCode); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " debugText: %.*s", debugText.size(), debugText.data()); GET_CLUSTER_RESPONSE_CALLBACKS("NetworkCommissioningClusterUpdateWiFiNetworkResponseCallback"); @@ -2548,8 +2525,7 @@ bool emberAfNetworkCommissioningClusterUpdateWiFiNetworkResponseCallback(chip::E return true; } -bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, +bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t action, uint32_t delayedActionTime) { ChipLogProgress(Zcl, "ApplyUpdateRequestResponse:"); @@ -2564,16 +2540,16 @@ bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestResponseCallback(c return true; } -bool emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(chip::EndpointId endpoint, - chip::app::CommandSender * commandObj, uint8_t status, - uint32_t delayedActionTime, uint8_t * imageURI, - uint32_t softwareVersion, chip::ByteSpan updateToken, - bool userConsentNeeded, chip::ByteSpan metadataForRequestor) +bool emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, + uint8_t status, uint32_t delayedActionTime, + uint8_t * imageURI, uint32_t softwareVersion, + chip::ByteSpan updateToken, bool userConsentNeeded, + chip::ByteSpan metadataForRequestor) { ChipLogProgress(Zcl, "QueryImageResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); ChipLogProgress(Zcl, " delayedActionTime: %" PRIu32 "", delayedActionTime); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " imageURI: %.*s", imageURI.size(), imageURI.data()); ChipLogProgress(Zcl, " softwareVersion: %" PRIu32 "", softwareVersion); ChipLogProgress(Zcl, " updateToken: %zu", updateToken.size()); @@ -2589,7 +2565,7 @@ bool emberAfOtaSoftwareUpdateProviderClusterQueryImageResponseCallback(chip::End return true; } -bool emberAfOperationalCredentialsClusterNOCResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfOperationalCredentialsClusterNOCResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t StatusCode, uint8_t FabricIndex, chip::ByteSpan DebugText) { ChipLogProgress(Zcl, "NOCResponse:"); @@ -2605,7 +2581,7 @@ bool emberAfOperationalCredentialsClusterNOCResponseCallback(chip::EndpointId en return true; } -bool emberAfOperationalCredentialsClusterOpCSRResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfOperationalCredentialsClusterOpCSRResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, chip::ByteSpan NOCSRElements, chip::ByteSpan AttestationSignature) { ChipLogProgress(Zcl, "OpCSRResponse:"); @@ -2620,7 +2596,7 @@ bool emberAfOperationalCredentialsClusterOpCSRResponseCallback(chip::EndpointId return true; } -bool emberAfOperationalCredentialsClusterSetFabricResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfOperationalCredentialsClusterSetFabricResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, chip::FabricId FabricId) { ChipLogProgress(Zcl, "SetFabricResponse:"); @@ -2634,7 +2610,7 @@ bool emberAfOperationalCredentialsClusterSetFabricResponseCallback(chip::Endpoin return true; } -bool emberAfScenesClusterAddSceneResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t status, +bool emberAfScenesClusterAddSceneResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, uint16_t groupId, uint8_t sceneId) { ChipLogProgress(Zcl, "AddSceneResponse:"); @@ -2650,8 +2626,8 @@ bool emberAfScenesClusterAddSceneResponseCallback(chip::EndpointId endpoint, chi return true; } -bool emberAfScenesClusterGetSceneMembershipResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status, uint8_t capacity, uint16_t groupId, uint8_t sceneCount, +bool emberAfScenesClusterGetSceneMembershipResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, + uint8_t capacity, uint16_t groupId, uint8_t sceneCount, /* TYPE WARNING: array array defaults to */ uint8_t * sceneList) { ChipLogProgress(Zcl, "GetSceneMembershipResponse:"); @@ -2669,8 +2645,8 @@ bool emberAfScenesClusterGetSceneMembershipResponseCallback(chip::EndpointId end return true; } -bool emberAfScenesClusterRemoveAllScenesResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status, uint16_t groupId) +bool emberAfScenesClusterRemoveAllScenesResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, + uint16_t groupId) { ChipLogProgress(Zcl, "RemoveAllScenesResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2684,8 +2660,8 @@ bool emberAfScenesClusterRemoveAllScenesResponseCallback(chip::EndpointId endpoi return true; } -bool emberAfScenesClusterRemoveSceneResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status, uint16_t groupId, uint8_t sceneId) +bool emberAfScenesClusterRemoveSceneResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, + uint16_t groupId, uint8_t sceneId) { ChipLogProgress(Zcl, "RemoveSceneResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2700,8 +2676,8 @@ bool emberAfScenesClusterRemoveSceneResponseCallback(chip::EndpointId endpoint, return true; } -bool emberAfScenesClusterStoreSceneResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t status, uint16_t groupId, uint8_t sceneId) +bool emberAfScenesClusterStoreSceneResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, + uint16_t groupId, uint8_t sceneId) { ChipLogProgress(Zcl, "StoreSceneResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); @@ -2716,7 +2692,7 @@ bool emberAfScenesClusterStoreSceneResponseCallback(chip::EndpointId endpoint, c return true; } -bool emberAfScenesClusterViewSceneResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, uint8_t status, +bool emberAfScenesClusterViewSceneResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, uint16_t groupId, uint8_t sceneId, uint16_t transitionTime, uint8_t * sceneName, /* TYPE WARNING: array array defaults to */ uint8_t * extensionFieldSets) { @@ -2725,7 +2701,7 @@ bool emberAfScenesClusterViewSceneResponseCallback(chip::EndpointId endpoint, ch ChipLogProgress(Zcl, " groupId: %" PRIu16 "", groupId); ChipLogProgress(Zcl, " sceneId: %" PRIu8 "", sceneId); ChipLogProgress(Zcl, " transitionTime: %" PRIu16 "", transitionTime); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " sceneName: %.*s", sceneName.size(), sceneName.data()); ChipLogProgress(Zcl, " extensionFieldSets: %p", extensionFieldSets); @@ -2737,7 +2713,7 @@ bool emberAfScenesClusterViewSceneResponseCallback(chip::EndpointId endpoint, ch return true; } -bool emberAfTvChannelClusterChangeChannelResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfTvChannelClusterChangeChannelResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, /* TYPE WARNING: array array defaults to */ uint8_t * ChannelMatch, uint8_t ErrorType) { @@ -2753,12 +2729,12 @@ bool emberAfTvChannelClusterChangeChannelResponseCallback(chip::EndpointId endpo return true; } -bool emberAfTargetNavigatorClusterNavigateTargetResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfTargetNavigatorClusterNavigateTargetResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t status, uint8_t * data) { ChipLogProgress(Zcl, "NavigateTargetResponse:"); ChipLogProgress(Zcl, " status: %" PRIu8 "", status); - // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits chip::ByteSpan + // Currently the generated code emits `uint8_t *` for CHAR_STRING, it needs to emits ByteSpan // ChipLogProgress(Zcl, " data: %.*s", data.size(), data.data()); GET_CLUSTER_RESPONSE_CALLBACKS("TargetNavigatorClusterNavigateTargetResponseCallback"); @@ -2769,7 +2745,7 @@ bool emberAfTargetNavigatorClusterNavigateTargetResponseCallback(chip::EndpointI return true; } -bool emberAfTestClusterClusterTestAddArgumentsResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfTestClusterClusterTestAddArgumentsResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t returnValue) { ChipLogProgress(Zcl, "TestAddArgumentsResponse:"); @@ -2783,7 +2759,7 @@ bool emberAfTestClusterClusterTestAddArgumentsResponseCallback(chip::EndpointId return true; } -bool emberAfTestClusterClusterTestSpecificResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, +bool emberAfTestClusterClusterTestSpecificResponseCallback(EndpointId endpoint, app::CommandSender * commandObj, uint8_t returnValue) { ChipLogProgress(Zcl, "TestSpecificResponse:"); @@ -2814,13 +2790,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin while (messageLen) { CHECK_MESSAGE_LENGTH(4); - AttributeId attributeId = chip::Encoding::LittleEndian::Read32(message); // attribId + AttributeId attributeId = Encoding::LittleEndian::Read32(message); // attribId ChipLogProgress(Zcl, " attributeId: " ChipLogFormatMEI, ChipLogValueMEI(attributeId)); GET_REPORT_CALLBACK("emberAfReportAttributesCallback"); CHECK_MESSAGE_LENGTH(1); - uint8_t attributeType = chip::Encoding::Read8(message); + uint8_t attributeType = Encoding::Read8(message); ChipLogProgress(Zcl, " attributeType: 0x%02x", attributeType); switch (attributeType) @@ -2860,7 +2836,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Short Strings must contains at least one byte for the length CHECK_MESSAGE_LENGTH(1); - uint8_t length = chip::Encoding::Read8(message); + uint8_t length = Encoding::Read8(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFF, it represents a non-value. In this case the data field is zero length. @@ -2874,13 +2850,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -2890,7 +2866,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { // Long Strings must contains at least two bytes for the length CHECK_MESSAGE_LENGTH(2); - uint16_t length = chip::Encoding::LittleEndian::Read16(message); + uint16_t length = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " length: 0x%02x", length); // When the length is set to 0xFFFF, it represents a non-value. In this case the data field is zero length. @@ -2904,13 +2880,13 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } else { Callback::Callback * cb = Callback::Callback::FromCancelable(onReportCallback); - cb->mCall(cb->mContext, chip::ByteSpan(message, length)); + cb->mCall(cb->mContext, ByteSpan(message, length)); } break; } @@ -2921,7 +2897,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x30: // enum8 / 8-bit enumeration { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: 0x%02x", value); Callback::Callback * cb = @@ -2941,7 +2917,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xFF: // unk / Unknown { CHECK_MESSAGE_LENGTH(2); - uint16_t value = chip::Encoding::LittleEndian::Read16(message); + uint16_t value = Encoding::LittleEndian::Read16(message); ChipLogProgress(Zcl, " value: 0x%04x", value); Callback::Callback * cb = @@ -2957,7 +2933,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xE2: // UTC / UTCTime { CHECK_MESSAGE_LENGTH(4); - uint32_t value = chip::Encoding::LittleEndian::Read32(message); + uint32_t value = Encoding::LittleEndian::Read32(message); ChipLogProgress(Zcl, " value: 0x%08x", value); Callback::Callback * cb = @@ -2972,7 +2948,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0xF0: // EUI64 / IEEE address { CHECK_MESSAGE_LENGTH(8); - uint64_t value = chip::Encoding::LittleEndian::Read64(message); + uint64_t value = Encoding::LittleEndian::Read64(message); ChipLogProgress(Zcl, " value: 0x" ChipLogFormatX64, ChipLogValueX64(value)); Callback::Callback * cb = @@ -2984,7 +2960,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x10: // bool / Boolean { CHECK_MESSAGE_LENGTH(1); - uint8_t value = chip::Encoding::Read8(message); + uint8_t value = Encoding::Read8(message); ChipLogProgress(Zcl, " value: %d", value); Callback::Callback * cb = @@ -2996,7 +2972,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x28: // int8 / Signed 8-bit integer { CHECK_MESSAGE_LENGTH(1); - int8_t value = chip::CastToSigned(chip::Encoding::Read8(message)); + int8_t value = CastToSigned(Encoding::Read8(message)); ChipLogProgress(Zcl, " value: %" PRId8, value); Callback::Callback * cb = @@ -3008,7 +2984,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x29: // int16 / Signed 16-bit integer { CHECK_MESSAGE_LENGTH(2); - int16_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read16(message)); + int16_t value = CastToSigned(Encoding::LittleEndian::Read16(message)); ChipLogProgress(Zcl, " value: %" PRId16, value); Callback::Callback * cb = @@ -3020,7 +2996,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2B: // int32 / Signed 32-bit integer { CHECK_MESSAGE_LENGTH(4); - int32_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read32(message)); + int32_t value = CastToSigned(Encoding::LittleEndian::Read32(message)); ChipLogProgress(Zcl, " value: %" PRId32, value); Callback::Callback * cb = @@ -3032,7 +3008,7 @@ bool emberAfReportAttributesCallback(ClusterId clusterId, uint8_t * message, uin case 0x2F: // int64 / Signed 64-bit integer { CHECK_MESSAGE_LENGTH(8); - int64_t value = chip::CastToSigned(chip::Encoding::LittleEndian::Read64(message)); + int64_t value = CastToSigned(Encoding::LittleEndian::Read64(message)); ChipLogProgress(Zcl, " value: %" PRId64, value); Callback::Callback * cb = diff --git a/src/controller/data_model/gen/CHIPClusters.cpp b/src/controller/data_model/gen/CHIPClusters.cpp index 4bb170daa08f46..554a30d3f8e20f 100644 --- a/src/controller/data_model/gen/CHIPClusters.cpp +++ b/src/controller/data_model/gen/CHIPClusters.cpp @@ -57,6 +57,7 @@ } \ return SendCommand(seqNum, buf.Finalize(), onSuccessCallback, onFailureCallback); +namespace chip { namespace { // TODO: Find a way to calculate maximum message length for clusters // https://github.com/project-chip/connectedhomeip/issues/965 @@ -68,16 +69,15 @@ constexpr uint16_t kMaxBufferSize = 1024; constexpr uint8_t kFrameControlGlobalCommand = 0x00; // Pick source endpoint as 1 for now -constexpr chip::EndpointId kSourceEndpoint = 1; +constexpr EndpointId kSourceEndpoint = 1; const uint8_t kReportingDirectionReported = 0x00; } // namespace -using namespace chip::app::Clusters; -using namespace chip::System; -using namespace chip::Encoding::LittleEndian; +using namespace app::Clusters; +using namespace System; +using namespace Encoding::LittleEndian; -namespace chip { namespace Controller { // TODO(#4502): onCompletion is not used by IM for now. @@ -100,9 +100,9 @@ CHIP_ERROR AccountLoginCluster::GetSetupPIN(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AccountLogin::Commands::Ids::GetSetupPIN, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -141,9 +141,9 @@ CHIP_ERROR AccountLoginCluster::Login(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AccountLogin::Commands::Ids::Login, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -181,11 +181,11 @@ CHIP_ERROR AccountLoginCluster::DiscoverAttributes(Callback::Cancelable * onSucc CHIP_ERROR AccountLoginCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -208,9 +208,9 @@ CHIP_ERROR AdministratorCommissioningCluster::OpenBasicCommissioningWindow(Callb app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AdministratorCommissioning::Commands::Ids::OpenBasicCommissioningWindow, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -253,9 +253,9 @@ CHIP_ERROR AdministratorCommissioningCluster::OpenCommissioningWindow(Callback:: app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AdministratorCommissioning::Commands::Ids::OpenCommissioningWindow, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -305,9 +305,9 @@ CHIP_ERROR AdministratorCommissioningCluster::RevokeCommissioning(Callback::Canc app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AdministratorCommissioning::Commands::Ids::RevokeCommissioning, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -341,11 +341,11 @@ CHIP_ERROR AdministratorCommissioningCluster::DiscoverAttributes(Callback::Cance CHIP_ERROR AdministratorCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -366,9 +366,9 @@ CHIP_ERROR ApplicationBasicCluster::ChangeStatus(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ApplicationBasic::Commands::Ids::ChangeStatus, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -404,11 +404,11 @@ CHIP_ERROR ApplicationBasicCluster::DiscoverAttributes(Callback::Cancelable * on CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -416,11 +416,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorName(Callback::Cancelable CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -428,11 +428,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeVendorId(Callback::Cancelable * CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -440,11 +440,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationName(Callback::Cance CHIP_ERROR ApplicationBasicCluster::ReadAttributeProductId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -452,11 +452,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeProductId(Callback::Cancelable CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -464,11 +464,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationId(Callback::Cancela CHIP_ERROR ApplicationBasicCluster::ReadAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -476,11 +476,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeCatalogVendorId(Callback::Cance CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -488,11 +488,11 @@ CHIP_ERROR ApplicationBasicCluster::ReadAttributeApplicationStatus(Callback::Can CHIP_ERROR ApplicationBasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -513,9 +513,9 @@ CHIP_ERROR ApplicationLauncherCluster::LaunchApp(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ApplicationLauncher::Commands::Ids::LaunchApp, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -555,11 +555,11 @@ CHIP_ERROR ApplicationLauncherCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationLauncherList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ApplicationLauncherClusterApplicationLauncherListListAttributeFilter); } @@ -567,11 +567,11 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationLauncherList(Call CHIP_ERROR ApplicationLauncherCluster::ReadAttributeCatalogVendorId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -579,11 +579,11 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeCatalogVendorId(Callback::Ca CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -591,11 +591,11 @@ CHIP_ERROR ApplicationLauncherCluster::ReadAttributeApplicationId(Callback::Canc CHIP_ERROR ApplicationLauncherCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -616,9 +616,9 @@ CHIP_ERROR AudioOutputCluster::RenameOutput(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AudioOutput::Commands::Ids::RenameOutput, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -659,9 +659,9 @@ CHIP_ERROR AudioOutputCluster::SelectOutput(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, AudioOutput::Commands::Ids::SelectOutput, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -697,11 +697,11 @@ CHIP_ERROR AudioOutputCluster::DiscoverAttributes(Callback::Cancelable * onSucce CHIP_ERROR AudioOutputCluster::ReadAttributeAudioOutputList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, AudioOutputClusterAudioOutputListListAttributeFilter); } @@ -709,11 +709,11 @@ CHIP_ERROR AudioOutputCluster::ReadAttributeAudioOutputList(Callback::Cancelable CHIP_ERROR AudioOutputCluster::ReadAttributeCurrentAudioOutput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -721,11 +721,11 @@ CHIP_ERROR AudioOutputCluster::ReadAttributeCurrentAudioOutput(Callback::Cancela CHIP_ERROR AudioOutputCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -747,9 +747,9 @@ CHIP_ERROR BarrierControlCluster::BarrierControlGoToPercent(Callback::Cancelable app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, BarrierControl::Commands::Ids::BarrierControlGoToPercent, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -788,9 +788,9 @@ CHIP_ERROR BarrierControlCluster::BarrierControlStop(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, BarrierControl::Commands::Ids::BarrierControlStop, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -824,11 +824,11 @@ CHIP_ERROR BarrierControlCluster::DiscoverAttributes(Callback::Cancelable * onSu CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierMovingState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -836,11 +836,11 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierMovingState(Callback::Canc CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -848,11 +848,11 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierSafetyStatus(Callback::Can CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -860,11 +860,11 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierCapabilities(Callback::Can CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -872,11 +872,11 @@ CHIP_ERROR BarrierControlCluster::ReadAttributeBarrierPosition(Callback::Cancela CHIP_ERROR BarrierControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -896,9 +896,9 @@ CHIP_ERROR BasicCluster::MfgSpecificPing(Callback::Cancelable * onSuccessCallbac VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Basic::Commands::Ids::MfgSpecificPing, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -931,33 +931,33 @@ CHIP_ERROR BasicCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCall CHIP_ERROR BasicCluster::ReadAttributeInteractionModelVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR BasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR BasicCluster::ReadAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -965,33 +965,33 @@ CHIP_ERROR BasicCluster::ReadAttributeVendorID(Callback::Cancelable * onSuccessC CHIP_ERROR BasicCluster::ReadAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR BasicCluster::ReadAttributeProductID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR BasicCluster::ReadAttributeUserLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1015,11 +1015,11 @@ CHIP_ERROR BasicCluster::WriteAttributeUserLabel(Callback::Cancelable * onSucces CHIP_ERROR BasicCluster::ReadAttributeLocation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1044,11 +1044,11 @@ CHIP_ERROR BasicCluster::WriteAttributeLocation(Callback::Cancelable * onSuccess CHIP_ERROR BasicCluster::ReadAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1056,11 +1056,11 @@ CHIP_ERROR BasicCluster::ReadAttributeHardwareVersion(Callback::Cancelable * onS CHIP_ERROR BasicCluster::ReadAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1068,11 +1068,11 @@ CHIP_ERROR BasicCluster::ReadAttributeHardwareVersionString(Callback::Cancelable CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1080,11 +1080,11 @@ CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersion(Callback::Cancelable * onS CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1092,33 +1092,33 @@ CHIP_ERROR BasicCluster::ReadAttributeSoftwareVersionString(Callback::Cancelable CHIP_ERROR BasicCluster::ReadAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR BasicCluster::ReadAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR BasicCluster::ReadAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1126,11 +1126,11 @@ CHIP_ERROR BasicCluster::ReadAttributeProductURL(Callback::Cancelable * onSucces CHIP_ERROR BasicCluster::ReadAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1138,11 +1138,11 @@ CHIP_ERROR BasicCluster::ReadAttributeProductLabel(Callback::Cancelable * onSucc CHIP_ERROR BasicCluster::ReadAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1150,11 +1150,11 @@ CHIP_ERROR BasicCluster::ReadAttributeSerialNumber(Callback::Cancelable * onSucc CHIP_ERROR BasicCluster::ReadAttributeLocalConfigDisabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1178,11 +1178,11 @@ CHIP_ERROR BasicCluster::WriteAttributeLocalConfigDisabled(Callback::Cancelable CHIP_ERROR BasicCluster::ReadAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1190,11 +1190,11 @@ CHIP_ERROR BasicCluster::ReadAttributeReachable(Callback::Cancelable * onSuccess CHIP_ERROR BasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1212,11 +1212,11 @@ CHIP_ERROR BinaryInputBasicCluster::DiscoverAttributes(Callback::Cancelable * on CHIP_ERROR BinaryInputBasicCluster::ReadAttributeOutOfService(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000051; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1241,11 +1241,11 @@ CHIP_ERROR BinaryInputBasicCluster::WriteAttributeOutOfService(Callback::Cancela CHIP_ERROR BinaryInputBasicCluster::ReadAttributePresentValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000055; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1291,11 +1291,11 @@ CHIP_ERROR BinaryInputBasicCluster::ReportAttributePresentValue(Callback::Cancel CHIP_ERROR BinaryInputBasicCluster::ReadAttributeStatusFlags(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000006F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1324,11 +1324,11 @@ CHIP_ERROR BinaryInputBasicCluster::ReportAttributeStatusFlags(Callback::Cancela CHIP_ERROR BinaryInputBasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1349,9 +1349,9 @@ CHIP_ERROR BindingCluster::Bind(Callback::Cancelable * onSuccessCallback, Callba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Binding::Commands::Ids::Bind, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1397,9 +1397,9 @@ CHIP_ERROR BindingCluster::Unbind(Callback::Cancelable * onSuccessCallback, Call VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Binding::Commands::Ids::Unbind, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1440,11 +1440,11 @@ CHIP_ERROR BindingCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCa CHIP_ERROR BindingCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1462,11 +1462,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1474,11 +1474,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorName(Callback::Cancelab CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorID(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1486,11 +1486,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeVendorID(Callback::Cancelable CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1498,11 +1498,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductName(Callback::Cancela CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeUserLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1527,11 +1527,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::WriteAttributeUserLabel(Callback::Cancelab CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeHardwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1539,11 +1539,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeHardwareVersion(Callback::Can CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeHardwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1551,11 +1551,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeHardwareVersionString(Callbac CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSoftwareVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1563,11 +1563,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSoftwareVersion(Callback::Can CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSoftwareVersionString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1575,11 +1575,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSoftwareVersionString(Callbac CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeManufacturingDate(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1587,11 +1587,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeManufacturingDate(Callback::C CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributePartNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1599,11 +1599,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributePartNumber(Callback::Cancelab CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductURL(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1611,11 +1611,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductURL(Callback::Cancelab CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductLabel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1623,11 +1623,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeProductLabel(Callback::Cancel CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSerialNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1635,11 +1635,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeSerialNumber(Callback::Cancel CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeReachable(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1647,11 +1647,11 @@ CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeReachable(Callback::Cancelabl CHIP_ERROR BridgedDeviceBasicCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -1673,9 +1673,9 @@ CHIP_ERROR ColorControlCluster::ColorLoopSet(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::ColorLoopSet, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1726,9 +1726,9 @@ CHIP_ERROR ColorControlCluster::EnhancedMoveHue(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::EnhancedMoveHue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1774,9 +1774,9 @@ CHIP_ERROR ColorControlCluster::EnhancedMoveToHue(Callback::Cancelable * onSucce VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::EnhancedMoveToHue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1826,9 +1826,9 @@ CHIP_ERROR ColorControlCluster::EnhancedMoveToHueAndSaturation(Callback::Cancela app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::EnhancedMoveToHueAndSaturation, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1876,9 +1876,9 @@ CHIP_ERROR ColorControlCluster::EnhancedStepHue(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::EnhancedStepHue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1925,9 +1925,9 @@ CHIP_ERROR ColorControlCluster::MoveColor(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveColor, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -1974,9 +1974,9 @@ CHIP_ERROR ColorControlCluster::MoveColorTemperature(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveColorTemperature, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2025,9 +2025,9 @@ CHIP_ERROR ColorControlCluster::MoveHue(Callback::Cancelable * onSuccessCallback VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveHue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2072,9 +2072,9 @@ CHIP_ERROR ColorControlCluster::MoveSaturation(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveSaturation, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2120,9 +2120,9 @@ CHIP_ERROR ColorControlCluster::MoveToColor(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveToColor, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2171,9 +2171,9 @@ CHIP_ERROR ColorControlCluster::MoveToColorTemperature(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveToColorTemperature, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2219,9 +2219,9 @@ CHIP_ERROR ColorControlCluster::MoveToHue(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveToHue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2270,9 +2270,9 @@ CHIP_ERROR ColorControlCluster::MoveToHueAndSaturation(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveToHueAndSaturation, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2320,9 +2320,9 @@ CHIP_ERROR ColorControlCluster::MoveToSaturation(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::MoveToSaturation, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2368,9 +2368,9 @@ CHIP_ERROR ColorControlCluster::StepColor(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::StepColor, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2419,9 +2419,9 @@ CHIP_ERROR ColorControlCluster::StepColorTemperature(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::StepColorTemperature, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2473,9 +2473,9 @@ CHIP_ERROR ColorControlCluster::StepHue(Callback::Cancelable * onSuccessCallback VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::StepHue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2523,9 +2523,9 @@ CHIP_ERROR ColorControlCluster::StepSaturation(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::StepSaturation, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2572,9 +2572,9 @@ CHIP_ERROR ColorControlCluster::StopMoveStep(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ColorControl::Commands::Ids::StopMoveStep, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -2612,11 +2612,11 @@ CHIP_ERROR ColorControlCluster::DiscoverAttributes(Callback::Cancelable * onSucc CHIP_ERROR ColorControlCluster::ReadAttributeCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2646,11 +2646,11 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentHue(Callback::Cancelable * CHIP_ERROR ColorControlCluster::ReadAttributeCurrentSaturation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2680,11 +2680,11 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentSaturation(Callback::Cance CHIP_ERROR ColorControlCluster::ReadAttributeRemainingTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2692,11 +2692,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeRemainingTime(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeCurrentX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2726,11 +2726,11 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentX(Callback::Cancelable * o CHIP_ERROR ColorControlCluster::ReadAttributeCurrentY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2760,11 +2760,11 @@ CHIP_ERROR ColorControlCluster::ReportAttributeCurrentY(Callback::Cancelable * o CHIP_ERROR ColorControlCluster::ReadAttributeDriftCompensation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2772,11 +2772,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeDriftCompensation(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributeCompensationText(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2784,11 +2784,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCompensationText(Callback::Cancelab CHIP_ERROR ColorControlCluster::ReadAttributeColorTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2818,11 +2818,11 @@ CHIP_ERROR ColorControlCluster::ReportAttributeColorTemperature(Callback::Cancel CHIP_ERROR ColorControlCluster::ReadAttributeColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2830,11 +2830,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorMode(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributeColorControlOptions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2859,11 +2859,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorControlOptions(Callback::Canc CHIP_ERROR ColorControlCluster::ReadAttributeNumberOfPrimaries(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2871,11 +2871,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeNumberOfPrimaries(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributePrimary1X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2883,11 +2883,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary1X(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2895,11 +2895,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Y(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2907,11 +2907,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary1Intensity(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributePrimary2X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2919,11 +2919,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary2X(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2931,11 +2931,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Y(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2943,11 +2943,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary2Intensity(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributePrimary3X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2955,11 +2955,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary3X(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2967,11 +2967,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Y(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2979,11 +2979,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary3Intensity(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributePrimary4X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -2991,11 +2991,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary4X(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3003,11 +3003,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Y(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3015,11 +3015,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary4Intensity(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributePrimary5X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000024; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3027,11 +3027,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary5X(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000025; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3039,11 +3039,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Y(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000026; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3051,11 +3051,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary5Intensity(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributePrimary6X(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000028; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3063,11 +3063,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary6X(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Y(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000029; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3075,11 +3075,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Y(Callback::Cancelable * on CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Intensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3087,11 +3087,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributePrimary6Intensity(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000030; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3116,11 +3116,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeWhitePointX(Callback::Cancelable * CHIP_ERROR ColorControlCluster::ReadAttributeWhitePointY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000031; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3145,11 +3145,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeWhitePointY(Callback::Cancelable * CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000032; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3174,11 +3174,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRX(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000033; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3203,11 +3203,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRY(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorPointRIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000034; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3232,11 +3232,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointRIntensity(Callback::Can CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000036; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3261,11 +3261,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGX(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000037; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3290,11 +3290,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGY(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorPointGIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000038; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3319,11 +3319,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointGIntensity(Callback::Can CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBX(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3348,11 +3348,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBX(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBY(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3377,11 +3377,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBY(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorPointBIntensity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3406,11 +3406,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeColorPointBIntensity(Callback::Can CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedCurrentHue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3418,11 +3418,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedCurrentHue(Callback::Cancel CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedColorMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3430,11 +3430,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeEnhancedColorMode(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopActive(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3442,11 +3442,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopActive(Callback::Cancelabl CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopDirection(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3454,11 +3454,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopDirection(Callback::Cancel CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3466,11 +3466,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorLoopTime(Callback::Cancelable CHIP_ERROR ColorControlCluster::ReadAttributeColorCapabilities(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3478,11 +3478,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorCapabilities(Callback::Cancela CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3490,11 +3490,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMin(Callback::Canc CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3502,11 +3502,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeColorTempPhysicalMax(Callback::Canc CHIP_ERROR ColorControlCluster::ReadAttributeCoupleColorTempToLevelMinMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000400D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3514,11 +3514,11 @@ CHIP_ERROR ColorControlCluster::ReadAttributeCoupleColorTempToLevelMinMireds(Cal CHIP_ERROR ColorControlCluster::ReadAttributeStartUpColorTemperatureMireds(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004010; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3544,11 +3544,11 @@ CHIP_ERROR ColorControlCluster::WriteAttributeStartUpColorTemperatureMireds(Call CHIP_ERROR ColorControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3569,9 +3569,9 @@ CHIP_ERROR ContentLauncherCluster::LaunchContent(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ContentLauncher::Commands::Ids::LaunchContent, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3612,9 +3612,9 @@ CHIP_ERROR ContentLauncherCluster::LaunchURL(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ContentLauncher::Commands::Ids::LaunchURL, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3652,11 +3652,11 @@ CHIP_ERROR ContentLauncherCluster::DiscoverAttributes(Callback::Cancelable * onS CHIP_ERROR ContentLauncherCluster::ReadAttributeAcceptsHeaderList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ContentLauncherClusterAcceptsHeaderListListAttributeFilter); } @@ -3664,11 +3664,11 @@ CHIP_ERROR ContentLauncherCluster::ReadAttributeAcceptsHeaderList(Callback::Canc CHIP_ERROR ContentLauncherCluster::ReadAttributeSupportedStreamingTypes(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ContentLauncherClusterSupportedStreamingTypesListAttributeFilter); } @@ -3676,11 +3676,11 @@ CHIP_ERROR ContentLauncherCluster::ReadAttributeSupportedStreamingTypes(Callback CHIP_ERROR ContentLauncherCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3697,11 +3697,11 @@ CHIP_ERROR DescriptorCluster::DiscoverAttributes(Callback::Cancelable * onSucces CHIP_ERROR DescriptorCluster::ReadAttributeDeviceList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterDeviceListListAttributeFilter); } @@ -3709,11 +3709,11 @@ CHIP_ERROR DescriptorCluster::ReadAttributeDeviceList(Callback::Cancelable * onS CHIP_ERROR DescriptorCluster::ReadAttributeServerList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterServerListListAttributeFilter); } @@ -3721,11 +3721,11 @@ CHIP_ERROR DescriptorCluster::ReadAttributeServerList(Callback::Cancelable * onS CHIP_ERROR DescriptorCluster::ReadAttributeClientList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterClientListListAttributeFilter); } @@ -3733,11 +3733,11 @@ CHIP_ERROR DescriptorCluster::ReadAttributeClientList(Callback::Cancelable * onS CHIP_ERROR DescriptorCluster::ReadAttributePartsList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, DescriptorClusterPartsListListAttributeFilter); } @@ -3745,11 +3745,11 @@ CHIP_ERROR DescriptorCluster::ReadAttributePartsList(Callback::Cancelable * onSu CHIP_ERROR DescriptorCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -3772,9 +3772,9 @@ CHIP_ERROR DiagnosticLogsCluster::RetrieveLogsRequest(Callback::Cancelable * onS app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DiagnosticLogs::Commands::Ids::RetrieveLogsRequest, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3826,9 +3826,9 @@ CHIP_ERROR DoorLockCluster::ClearAllPins(Callback::Cancelable * onSuccessCallbac VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearAllPins, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3864,9 +3864,9 @@ CHIP_ERROR DoorLockCluster::ClearAllRfids(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearAllRfids, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3903,9 +3903,9 @@ CHIP_ERROR DoorLockCluster::ClearHolidaySchedule(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearHolidaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3944,9 +3944,9 @@ CHIP_ERROR DoorLockCluster::ClearPin(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearPin, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -3985,9 +3985,9 @@ CHIP_ERROR DoorLockCluster::ClearRfid(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearRfid, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4026,9 +4026,9 @@ CHIP_ERROR DoorLockCluster::ClearWeekdaySchedule(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearWeekdaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4069,9 +4069,9 @@ CHIP_ERROR DoorLockCluster::ClearYeardaySchedule(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::ClearYeardaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4112,9 +4112,9 @@ CHIP_ERROR DoorLockCluster::GetHolidaySchedule(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetHolidaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4153,9 +4153,9 @@ CHIP_ERROR DoorLockCluster::GetLogRecord(Callback::Cancelable * onSuccessCallbac VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetLogRecord, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4194,9 +4194,9 @@ CHIP_ERROR DoorLockCluster::GetPin(Callback::Cancelable * onSuccessCallback, Cal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetPin, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4235,9 +4235,9 @@ CHIP_ERROR DoorLockCluster::GetRfid(Callback::Cancelable * onSuccessCallback, Ca VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetRfid, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4276,9 +4276,9 @@ CHIP_ERROR DoorLockCluster::GetUserType(Callback::Cancelable * onSuccessCallback VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetUserType, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4317,9 +4317,9 @@ CHIP_ERROR DoorLockCluster::GetWeekdaySchedule(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetWeekdaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4360,9 +4360,9 @@ CHIP_ERROR DoorLockCluster::GetYeardaySchedule(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::GetYeardaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4403,9 +4403,9 @@ CHIP_ERROR DoorLockCluster::LockDoor(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::LockDoor, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4445,9 +4445,9 @@ CHIP_ERROR DoorLockCluster::SetHolidaySchedule(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::SetHolidaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4492,9 +4492,9 @@ CHIP_ERROR DoorLockCluster::SetPin(Callback::Cancelable * onSuccessCallback, Cal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::SetPin, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4539,9 +4539,9 @@ CHIP_ERROR DoorLockCluster::SetRfid(Callback::Cancelable * onSuccessCallback, Ca VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::SetRfid, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4586,9 +4586,9 @@ CHIP_ERROR DoorLockCluster::SetUserType(Callback::Cancelable * onSuccessCallback VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::SetUserType, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4630,9 +4630,9 @@ CHIP_ERROR DoorLockCluster::SetWeekdaySchedule(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::SetWeekdaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4683,9 +4683,9 @@ CHIP_ERROR DoorLockCluster::SetYeardaySchedule(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::SetYeardaySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4730,9 +4730,9 @@ CHIP_ERROR DoorLockCluster::UnlockDoor(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::UnlockDoor, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4771,9 +4771,9 @@ CHIP_ERROR DoorLockCluster::UnlockWithTimeout(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, DoorLock::Commands::Ids::UnlockWithTimeout, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -4810,11 +4810,11 @@ CHIP_ERROR DoorLockCluster::DiscoverAttributes(Callback::Cancelable * onSuccessC CHIP_ERROR DoorLockCluster::ReadAttributeLockState(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4843,11 +4843,11 @@ CHIP_ERROR DoorLockCluster::ReportAttributeLockState(Callback::Cancelable * onRe CHIP_ERROR DoorLockCluster::ReadAttributeLockType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4855,11 +4855,11 @@ CHIP_ERROR DoorLockCluster::ReadAttributeLockType(Callback::Cancelable * onSucce CHIP_ERROR DoorLockCluster::ReadAttributeActuatorEnabled(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4867,11 +4867,11 @@ CHIP_ERROR DoorLockCluster::ReadAttributeActuatorEnabled(Callback::Cancelable * CHIP_ERROR DoorLockCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4889,11 +4889,11 @@ CHIP_ERROR ElectricalMeasurementCluster::DiscoverAttributes(Callback::Cancelable CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeMeasurementType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4901,11 +4901,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeMeasurementType(Callback:: CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeTotalActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000304; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4913,11 +4913,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeTotalActivePower(Callback: CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000505; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4925,11 +4925,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltage(Callback::Cance CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000506; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4937,11 +4937,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMin(Callback::Ca CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000507; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4949,11 +4949,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsVoltageMax(Callback::Ca CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrent(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000508; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4961,11 +4961,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrent(Callback::Cance CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000509; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4973,11 +4973,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMin(Callback::Ca CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4985,11 +4985,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeRmsCurrentMax(Callback::Ca CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePower(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -4997,11 +4997,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePower(Callback::Canc CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMin(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5009,11 +5009,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMin(Callback::C CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMax(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000050D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5021,11 +5021,11 @@ CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeActivePowerMax(Callback::C CHIP_ERROR ElectricalMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5047,9 +5047,9 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ResetCounts(Callback::Cancelable * app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, EthernetNetworkDiagnostics::Commands::Ids::ResetCounts, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5083,11 +5083,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::DiscoverAttributes(Callback::Cance CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketRxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5095,11 +5095,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketRxCount(Callbac CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketTxCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5107,11 +5107,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributePacketTxCount(Callbac CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeTxErrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5119,11 +5119,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeTxErrCount(Callback:: CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeCollisionCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5131,11 +5131,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeCollisionCount(Callba CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5143,11 +5143,11 @@ CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback CHIP_ERROR EthernetNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5164,11 +5164,11 @@ CHIP_ERROR FixedLabelCluster::DiscoverAttributes(Callback::Cancelable * onSucces CHIP_ERROR FixedLabelCluster::ReadAttributeLabelList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, FixedLabelClusterLabelListListAttributeFilter); } @@ -5176,11 +5176,11 @@ CHIP_ERROR FixedLabelCluster::ReadAttributeLabelList(Callback::Cancelable * onSu CHIP_ERROR FixedLabelCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5198,11 +5198,11 @@ CHIP_ERROR FlowMeasurementCluster::DiscoverAttributes(Callback::Cancelable * onS CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5210,11 +5210,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelab CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5222,11 +5222,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cance CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5234,11 +5234,11 @@ CHIP_ERROR FlowMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cance CHIP_ERROR FlowMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5260,9 +5260,9 @@ CHIP_ERROR GeneralCommissioningCluster::ArmFailSafe(Callback::Cancelable * onSuc VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, GeneralCommissioning::Commands::Ids::ArmFailSafe, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5306,9 +5306,9 @@ CHIP_ERROR GeneralCommissioningCluster::CommissioningComplete(Callback::Cancelab app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, GeneralCommissioning::Commands::Ids::CommissioningComplete, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5347,9 +5347,9 @@ CHIP_ERROR GeneralCommissioningCluster::SetRegulatoryConfig(Callback::Cancelable app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, GeneralCommissioning::Commands::Ids::SetRegulatoryConfig, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5391,11 +5391,11 @@ CHIP_ERROR GeneralCommissioningCluster::DiscoverAttributes(Callback::Cancelable CHIP_ERROR GeneralCommissioningCluster::ReadAttributeFabricId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5403,11 +5403,11 @@ CHIP_ERROR GeneralCommissioningCluster::ReadAttributeFabricId(Callback::Cancelab CHIP_ERROR GeneralCommissioningCluster::ReadAttributeBreadcrumb(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5432,11 +5432,11 @@ CHIP_ERROR GeneralCommissioningCluster::WriteAttributeBreadcrumb(Callback::Cance CHIP_ERROR GeneralCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5454,11 +5454,11 @@ CHIP_ERROR GeneralDiagnosticsCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeNetworkInterfaces(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GeneralDiagnosticsClusterNetworkInterfacesListAttributeFilter); } @@ -5466,11 +5466,11 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeNetworkInterfaces(Callback::C CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeRebootCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5478,11 +5478,11 @@ CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeRebootCount(Callback::Cancela CHIP_ERROR GeneralDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5500,11 +5500,11 @@ CHIP_ERROR GroupKeyManagementCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroups(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GroupKeyManagementClusterGroupsListAttributeFilter); } @@ -5512,11 +5512,11 @@ CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroups(Callback::Cancelable * CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroupKeys(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, GroupKeyManagementClusterGroupKeysListAttributeFilter); } @@ -5524,11 +5524,11 @@ CHIP_ERROR GroupKeyManagementCluster::ReadAttributeGroupKeys(Callback::Cancelabl CHIP_ERROR GroupKeyManagementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5549,9 +5549,9 @@ CHIP_ERROR GroupsCluster::AddGroup(Callback::Cancelable * onSuccessCallback, Cal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Groups::Commands::Ids::AddGroup, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5592,9 +5592,9 @@ CHIP_ERROR GroupsCluster::AddGroupIfIdentifying(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Groups::Commands::Ids::AddGroupIfIdentifying, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5635,9 +5635,9 @@ CHIP_ERROR GroupsCluster::GetGroupMembership(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Groups::Commands::Ids::GetGroupMembership, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5677,9 +5677,9 @@ CHIP_ERROR GroupsCluster::RemoveAllGroups(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Groups::Commands::Ids::RemoveAllGroups, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5716,9 +5716,9 @@ CHIP_ERROR GroupsCluster::RemoveGroup(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Groups::Commands::Ids::RemoveGroup, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5757,9 +5757,9 @@ CHIP_ERROR GroupsCluster::ViewGroup(Callback::Cancelable * onSuccessCallback, Ca VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Groups::Commands::Ids::ViewGroup, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5794,11 +5794,11 @@ CHIP_ERROR GroupsCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCal CHIP_ERROR GroupsCluster::ReadAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5806,11 +5806,11 @@ CHIP_ERROR GroupsCluster::ReadAttributeNameSupport(Callback::Cancelable * onSucc CHIP_ERROR GroupsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5831,9 +5831,9 @@ CHIP_ERROR IdentifyCluster::Identify(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Identify::Commands::Ids::Identify, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5871,9 +5871,9 @@ CHIP_ERROR IdentifyCluster::IdentifyQuery(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Identify::Commands::Ids::IdentifyQuery, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5906,11 +5906,11 @@ CHIP_ERROR IdentifyCluster::DiscoverAttributes(Callback::Cancelable * onSuccessC CHIP_ERROR IdentifyCluster::ReadAttributeIdentifyTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5935,11 +5935,11 @@ CHIP_ERROR IdentifyCluster::WriteAttributeIdentifyTime(Callback::Cancelable * on CHIP_ERROR IdentifyCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -5960,9 +5960,9 @@ CHIP_ERROR KeypadInputCluster::SendKey(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, KeypadInput::Commands::Ids::SendKey, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -5998,11 +5998,11 @@ CHIP_ERROR KeypadInputCluster::DiscoverAttributes(Callback::Cancelable * onSucce CHIP_ERROR KeypadInputCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6023,9 +6023,9 @@ CHIP_ERROR LevelControlCluster::Move(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::Move, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6070,9 +6070,9 @@ CHIP_ERROR LevelControlCluster::MoveToLevel(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::MoveToLevel, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6118,9 +6118,9 @@ CHIP_ERROR LevelControlCluster::MoveToLevelWithOnOff(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::MoveToLevelWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6161,9 +6161,9 @@ CHIP_ERROR LevelControlCluster::MoveWithOnOff(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::MoveWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6205,9 +6205,9 @@ CHIP_ERROR LevelControlCluster::Step(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::Step, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6254,9 +6254,9 @@ CHIP_ERROR LevelControlCluster::StepWithOnOff(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::StepWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6299,9 +6299,9 @@ CHIP_ERROR LevelControlCluster::Stop(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::Stop, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6341,9 +6341,9 @@ CHIP_ERROR LevelControlCluster::StopWithOnOff(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LevelControl::Commands::Ids::StopWithOnOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6377,11 +6377,11 @@ CHIP_ERROR LevelControlCluster::DiscoverAttributes(Callback::Cancelable * onSucc CHIP_ERROR LevelControlCluster::ReadAttributeCurrentLevel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6411,11 +6411,11 @@ CHIP_ERROR LevelControlCluster::ReportAttributeCurrentLevel(Callback::Cancelable CHIP_ERROR LevelControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6435,9 +6435,9 @@ CHIP_ERROR LowPowerCluster::Sleep(Callback::Cancelable * onSuccessCallback, Call VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, LowPower::Commands::Ids::Sleep, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6470,11 +6470,11 @@ CHIP_ERROR LowPowerCluster::DiscoverAttributes(Callback::Cancelable * onSuccessC CHIP_ERROR LowPowerCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6494,9 +6494,9 @@ CHIP_ERROR MediaInputCluster::HideInputStatus(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaInput::Commands::Ids::HideInputStatus, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6533,9 +6533,9 @@ CHIP_ERROR MediaInputCluster::RenameInput(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaInput::Commands::Ids::RenameInput, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6576,9 +6576,9 @@ CHIP_ERROR MediaInputCluster::SelectInput(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaInput::Commands::Ids::SelectInput, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6616,9 +6616,9 @@ CHIP_ERROR MediaInputCluster::ShowInputStatus(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaInput::Commands::Ids::ShowInputStatus, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6651,11 +6651,11 @@ CHIP_ERROR MediaInputCluster::DiscoverAttributes(Callback::Cancelable * onSucces CHIP_ERROR MediaInputCluster::ReadAttributeMediaInputList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, MediaInputClusterMediaInputListListAttributeFilter); } @@ -6663,11 +6663,11 @@ CHIP_ERROR MediaInputCluster::ReadAttributeMediaInputList(Callback::Cancelable * CHIP_ERROR MediaInputCluster::ReadAttributeCurrentMediaInput(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6675,11 +6675,11 @@ CHIP_ERROR MediaInputCluster::ReadAttributeCurrentMediaInput(Callback::Cancelabl CHIP_ERROR MediaInputCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -6700,9 +6700,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaFastForward(Callback::Cancelable * onSucce VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaFastForward, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6738,9 +6738,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaNext(Callback::Cancelable * onSuccessCallb VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaNext, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6776,9 +6776,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaPause(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaPause, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6814,9 +6814,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaPlay(Callback::Cancelable * onSuccessCallb VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaPlay, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6852,9 +6852,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaPrevious(Callback::Cancelable * onSuccessC VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaPrevious, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6890,9 +6890,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaRewind(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaRewind, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6929,9 +6929,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaSeek(Callback::Cancelable * onSuccessCallb VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaSeek, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -6970,9 +6970,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaSkipBackward(Callback::Cancelable * onSucc VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaSkipBackward, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7011,9 +7011,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaSkipForward(Callback::Cancelable * onSucce VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaSkipForward, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7051,9 +7051,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaStartOver(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaStartOver, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7089,9 +7089,9 @@ CHIP_ERROR MediaPlaybackCluster::MediaStop(Callback::Cancelable * onSuccessCallb VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, MediaPlayback::Commands::Ids::MediaStop, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7125,11 +7125,11 @@ CHIP_ERROR MediaPlaybackCluster::DiscoverAttributes(Callback::Cancelable * onSuc CHIP_ERROR MediaPlaybackCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7152,9 +7152,9 @@ CHIP_ERROR NetworkCommissioningCluster::AddThreadNetwork(Callback::Cancelable * app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::AddThreadNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7199,9 +7199,9 @@ CHIP_ERROR NetworkCommissioningCluster::AddWiFiNetwork(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::AddWiFiNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7248,9 +7248,9 @@ CHIP_ERROR NetworkCommissioningCluster::DisableNetwork(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::DisableNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7295,9 +7295,9 @@ CHIP_ERROR NetworkCommissioningCluster::EnableNetwork(Callback::Cancelable * onS app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::EnableNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7342,9 +7342,9 @@ CHIP_ERROR NetworkCommissioningCluster::GetLastNetworkCommissioningResult(Callba app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::GetLastNetworkCommissioningResult, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7385,9 +7385,9 @@ CHIP_ERROR NetworkCommissioningCluster::RemoveNetwork(Callback::Cancelable * onS app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::RemoveNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7431,9 +7431,9 @@ CHIP_ERROR NetworkCommissioningCluster::ScanNetworks(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::ScanNetworks, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7479,9 +7479,9 @@ CHIP_ERROR NetworkCommissioningCluster::UpdateThreadNetwork(Callback::Cancelable app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::UpdateThreadNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7526,9 +7526,9 @@ CHIP_ERROR NetworkCommissioningCluster::UpdateWiFiNetwork(Callback::Cancelable * app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, NetworkCommissioning::Commands::Ids::UpdateWiFiNetwork, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7570,11 +7570,11 @@ CHIP_ERROR NetworkCommissioningCluster::DiscoverAttributes(Callback::Cancelable CHIP_ERROR NetworkCommissioningCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7582,11 +7582,11 @@ CHIP_ERROR NetworkCommissioningCluster::ReadAttributeFeatureMap(Callback::Cancel CHIP_ERROR NetworkCommissioningCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7609,9 +7609,9 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::ApplyUpdateRequest(Callback::Cancel app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OtaSoftwareUpdateProvider::Commands::Ids::ApplyUpdateRequest, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7654,9 +7654,9 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::NotifyUpdateApplied(Callback::Cance app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OtaSoftwareUpdateProvider::Commands::Ids::NotifyUpdateApplied, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7702,9 +7702,9 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::QueryImage(Callback::Cancelable * o app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OtaSoftwareUpdateProvider::Commands::Ids::QueryImage, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7756,11 +7756,11 @@ CHIP_ERROR OtaSoftwareUpdateProviderCluster::DiscoverAttributes(Callback::Cancel CHIP_ERROR OtaSoftwareUpdateProviderCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7778,11 +7778,11 @@ CHIP_ERROR OccupancySensingCluster::DiscoverAttributes(Callback::Cancelable * on CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7811,11 +7811,11 @@ CHIP_ERROR OccupancySensingCluster::ReportAttributeOccupancy(Callback::Cancelabl CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7823,11 +7823,11 @@ CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorType(Callback::C CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorTypeBitmap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7835,11 +7835,11 @@ CHIP_ERROR OccupancySensingCluster::ReadAttributeOccupancySensorTypeBitmap(Callb CHIP_ERROR OccupancySensingCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -7859,9 +7859,9 @@ CHIP_ERROR OnOffCluster::Off(Callback::Cancelable * onSuccessCallback, Callback: VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::Off, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7898,9 +7898,9 @@ CHIP_ERROR OnOffCluster::OffWithEffect(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::OffWithEffect, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7940,9 +7940,9 @@ CHIP_ERROR OnOffCluster::On(Callback::Cancelable * onSuccessCallback, Callback:: VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::On, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -7978,9 +7978,9 @@ CHIP_ERROR OnOffCluster::OnWithRecallGlobalScene(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::OnWithRecallGlobalScene, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8017,9 +8017,9 @@ CHIP_ERROR OnOffCluster::OnWithTimedOff(Callback::Cancelable * onSuccessCallback VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::OnWithTimedOff, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8061,9 +8061,9 @@ CHIP_ERROR OnOffCluster::Toggle(Callback::Cancelable * onSuccessCallback, Callba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OnOff::Commands::Ids::Toggle, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8095,11 +8095,11 @@ CHIP_ERROR OnOffCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCall CHIP_ERROR OnOffCluster::ReadAttributeOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8127,22 +8127,22 @@ CHIP_ERROR OnOffCluster::ReportAttributeOnOff(Callback::Cancelable * onReportCal CHIP_ERROR OnOffCluster::ReadAttributeGlobalSceneControl(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } CHIP_ERROR OnOffCluster::ReadAttributeOnTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8167,11 +8167,11 @@ CHIP_ERROR OnOffCluster::WriteAttributeOnTime(Callback::Cancelable * onSuccessCa CHIP_ERROR OnOffCluster::ReadAttributeOffWaitTime(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8196,11 +8196,11 @@ CHIP_ERROR OnOffCluster::WriteAttributeOffWaitTime(Callback::Cancelable * onSucc CHIP_ERROR OnOffCluster::ReadAttributeStartUpOnOff(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00004003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8224,11 +8224,11 @@ CHIP_ERROR OnOffCluster::WriteAttributeStartUpOnOff(Callback::Cancelable * onSuc CHIP_ERROR OnOffCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8236,11 +8236,11 @@ CHIP_ERROR OnOffCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSucces CHIP_ERROR OnOffCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8262,9 +8262,9 @@ CHIP_ERROR OperationalCredentialsCluster::AddNOC(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::AddNOC, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8311,9 +8311,9 @@ CHIP_ERROR OperationalCredentialsCluster::AddTrustedRootCertificate(Callback::Ca app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::AddTrustedRootCertificate, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8353,9 +8353,9 @@ CHIP_ERROR OperationalCredentialsCluster::OpCSRRequest(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::OpCSRRequest, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8395,9 +8395,9 @@ CHIP_ERROR OperationalCredentialsCluster::RemoveAllFabrics(Callback::Cancelable app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::RemoveAllFabrics, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8436,9 +8436,9 @@ CHIP_ERROR OperationalCredentialsCluster::RemoveFabric(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::RemoveFabric, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8483,9 +8483,9 @@ CHIP_ERROR OperationalCredentialsCluster::RemoveTrustedRootCertificate(Callback: app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::RemoveTrustedRootCertificate, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8524,9 +8524,9 @@ CHIP_ERROR OperationalCredentialsCluster::SetFabric(Callback::Cancelable * onSuc VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::SetFabric, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8566,9 +8566,9 @@ CHIP_ERROR OperationalCredentialsCluster::UpdateFabricLabel(Callback::Cancelable app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, OperationalCredentials::Commands::Ids::UpdateFabricLabel, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -8604,11 +8604,11 @@ CHIP_ERROR OperationalCredentialsCluster::DiscoverAttributes(Callback::Cancelabl CHIP_ERROR OperationalCredentialsCluster::ReadAttributeFabricsList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, OperationalCredentialsClusterFabricsListListAttributeFilter); } @@ -8616,11 +8616,11 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeFabricsList(Callback::Can CHIP_ERROR OperationalCredentialsCluster::ReadAttributeSupportedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8628,11 +8628,11 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeSupportedFabrics(Callback CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCommissionedFabrics(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8640,11 +8640,11 @@ CHIP_ERROR OperationalCredentialsCluster::ReadAttributeCommissionedFabrics(Callb CHIP_ERROR OperationalCredentialsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8662,11 +8662,11 @@ CHIP_ERROR PressureMeasurementCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR PressureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8696,11 +8696,11 @@ CHIP_ERROR PressureMeasurementCluster::ReportAttributeMeasuredValue(Callback::Ca CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8708,11 +8708,11 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::C CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8720,11 +8720,11 @@ CHIP_ERROR PressureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::C CHIP_ERROR PressureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8742,11 +8742,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::DiscoverAttributes(Callback::Canc CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8754,11 +8754,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxPressure(Callback CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8766,11 +8766,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxSpeed(Callback::C CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8778,11 +8778,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeMaxFlow(Callback::Ca CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8790,11 +8790,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveOperationMo CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8802,11 +8802,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeEffectiveControlMode CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeCapacity(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8837,11 +8837,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::ReportAttributeCapacity(Callback: CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeOperationMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8866,11 +8866,11 @@ CHIP_ERROR PumpConfigurationAndControlCluster::WriteAttributeOperationMode(Callb CHIP_ERROR PumpConfigurationAndControlCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8888,11 +8888,11 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::DiscoverAttributes(Callback::Canc CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8923,11 +8923,11 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReportAttributeMeasuredValue(Call CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8935,11 +8935,11 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMinMeasuredValue(Cal CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8947,11 +8947,11 @@ CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeMaxMeasuredValue(Cal CHIP_ERROR RelativeHumidityMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -8973,9 +8973,9 @@ CHIP_ERROR ScenesCluster::AddScene(Callback::Cancelable * onSuccessCallback, Cal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::AddScene, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9026,9 +9026,9 @@ CHIP_ERROR ScenesCluster::GetSceneMembership(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::GetSceneMembership, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9067,9 +9067,9 @@ CHIP_ERROR ScenesCluster::RecallScene(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::RecallScene, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9112,9 +9112,9 @@ CHIP_ERROR ScenesCluster::RemoveAllScenes(Callback::Cancelable * onSuccessCallba VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::RemoveAllScenes, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9153,9 +9153,9 @@ CHIP_ERROR ScenesCluster::RemoveScene(Callback::Cancelable * onSuccessCallback, VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::RemoveScene, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9196,9 +9196,9 @@ CHIP_ERROR ScenesCluster::StoreScene(Callback::Cancelable * onSuccessCallback, C VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::StoreScene, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9239,9 +9239,9 @@ CHIP_ERROR ScenesCluster::ViewScene(Callback::Cancelable * onSuccessCallback, Ca VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Scenes::Commands::Ids::ViewScene, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9278,11 +9278,11 @@ CHIP_ERROR ScenesCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCal CHIP_ERROR ScenesCluster::ReadAttributeSceneCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9290,11 +9290,11 @@ CHIP_ERROR ScenesCluster::ReadAttributeSceneCount(Callback::Cancelable * onSucce CHIP_ERROR ScenesCluster::ReadAttributeCurrentScene(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9302,11 +9302,11 @@ CHIP_ERROR ScenesCluster::ReadAttributeCurrentScene(Callback::Cancelable * onSuc CHIP_ERROR ScenesCluster::ReadAttributeCurrentGroup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9314,11 +9314,11 @@ CHIP_ERROR ScenesCluster::ReadAttributeCurrentGroup(Callback::Cancelable * onSuc CHIP_ERROR ScenesCluster::ReadAttributeSceneValid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9326,11 +9326,11 @@ CHIP_ERROR ScenesCluster::ReadAttributeSceneValid(Callback::Cancelable * onSucce CHIP_ERROR ScenesCluster::ReadAttributeNameSupport(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9338,11 +9338,11 @@ CHIP_ERROR ScenesCluster::ReadAttributeNameSupport(Callback::Cancelable * onSucc CHIP_ERROR ScenesCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9364,9 +9364,9 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ResetWatermarks(Callback::Cancelable * on app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, SoftwareDiagnostics::Commands::Ids::ResetWatermarks, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9400,11 +9400,11 @@ CHIP_ERROR SoftwareDiagnosticsCluster::DiscoverAttributes(Callback::Cancelable * CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapHighWatermark(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9412,11 +9412,11 @@ CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeCurrentHeapHighWatermark(Cal CHIP_ERROR SoftwareDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9433,11 +9433,11 @@ CHIP_ERROR SwitchCluster::DiscoverAttributes(Callback::Cancelable * onSuccessCal CHIP_ERROR SwitchCluster::ReadAttributeNumberOfPositions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9445,11 +9445,11 @@ CHIP_ERROR SwitchCluster::ReadAttributeNumberOfPositions(Callback::Cancelable * CHIP_ERROR SwitchCluster::ReadAttributeCurrentPosition(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9479,11 +9479,11 @@ CHIP_ERROR SwitchCluster::ReportAttributeCurrentPosition(Callback::Cancelable * CHIP_ERROR SwitchCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9504,9 +9504,9 @@ CHIP_ERROR TvChannelCluster::ChangeChannel(Callback::Cancelable * onSuccessCallb VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TvChannel::Commands::Ids::ChangeChannel, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9546,9 +9546,9 @@ CHIP_ERROR TvChannelCluster::ChangeChannelByNumber(Callback::Cancelable * onSucc VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TvChannel::Commands::Ids::ChangeChannelByNumber, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9589,9 +9589,9 @@ CHIP_ERROR TvChannelCluster::SkipChannel(Callback::Cancelable * onSuccessCallbac VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TvChannel::Commands::Ids::SkipChannel, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9626,11 +9626,11 @@ CHIP_ERROR TvChannelCluster::DiscoverAttributes(Callback::Cancelable * onSuccess CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TvChannelClusterTvChannelListListAttributeFilter); } @@ -9638,11 +9638,11 @@ CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelList(Callback::Cancelable * o CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelLineup(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9650,11 +9650,11 @@ CHIP_ERROR TvChannelCluster::ReadAttributeTvChannelLineup(Callback::Cancelable * CHIP_ERROR TvChannelCluster::ReadAttributeCurrentTvChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9662,11 +9662,11 @@ CHIP_ERROR TvChannelCluster::ReadAttributeCurrentTvChannel(Callback::Cancelable CHIP_ERROR TvChannelCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9687,9 +9687,9 @@ CHIP_ERROR TargetNavigatorCluster::NavigateTarget(Callback::Cancelable * onSucce VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TargetNavigator::Commands::Ids::NavigateTarget, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9727,11 +9727,11 @@ CHIP_ERROR TargetNavigatorCluster::DiscoverAttributes(Callback::Cancelable * onS CHIP_ERROR TargetNavigatorCluster::ReadAttributeTargetNavigatorList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TargetNavigatorClusterTargetNavigatorListListAttributeFilter); } @@ -9739,11 +9739,11 @@ CHIP_ERROR TargetNavigatorCluster::ReadAttributeTargetNavigatorList(Callback::Ca CHIP_ERROR TargetNavigatorCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9761,11 +9761,11 @@ CHIP_ERROR TemperatureMeasurementCluster::DiscoverAttributes(Callback::Cancelabl CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9796,11 +9796,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReportAttributeMeasuredValue(Callback: CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9808,11 +9808,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMinMeasuredValue(Callback CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9820,11 +9820,11 @@ CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeMaxMeasuredValue(Callback CHIP_ERROR TemperatureMeasurementCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -9844,9 +9844,9 @@ CHIP_ERROR TestClusterCluster::Test(Callback::Cancelable * onSuccessCallback, Ca VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TestCluster::Commands::Ids::Test, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9883,9 +9883,9 @@ CHIP_ERROR TestClusterCluster::TestAddArguments(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TestCluster::Commands::Ids::TestAddArguments, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9925,9 +9925,9 @@ CHIP_ERROR TestClusterCluster::TestNotHandled(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TestCluster::Commands::Ids::TestNotHandled, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -9963,9 +9963,9 @@ CHIP_ERROR TestClusterCluster::TestSpecific(Callback::Cancelable * onSuccessCall VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TestCluster::Commands::Ids::TestSpecific, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10002,9 +10002,9 @@ CHIP_ERROR TestClusterCluster::TestUnknownCommand(Callback::Cancelable * onSucce VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, TestCluster::Commands::Ids::TestUnknownCommand, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10038,11 +10038,11 @@ CHIP_ERROR TestClusterCluster::DiscoverAttributes(Callback::Cancelable * onSucce CHIP_ERROR TestClusterCluster::ReadAttributeBoolean(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10067,11 +10067,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeBoolean(Callback::Cancelable * onSu CHIP_ERROR TestClusterCluster::ReadAttributeBitmap8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10096,11 +10096,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeBitmap8(Callback::Cancelable * onSu CHIP_ERROR TestClusterCluster::ReadAttributeBitmap16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10125,11 +10125,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeBitmap16(Callback::Cancelable * onS CHIP_ERROR TestClusterCluster::ReadAttributeBitmap32(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10154,11 +10154,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeBitmap32(Callback::Cancelable * onS CHIP_ERROR TestClusterCluster::ReadAttributeBitmap64(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10183,11 +10183,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeBitmap64(Callback::Cancelable * onS CHIP_ERROR TestClusterCluster::ReadAttributeInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10212,11 +10212,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt8u(Callback::Cancelable * onSucc CHIP_ERROR TestClusterCluster::ReadAttributeInt16u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10241,11 +10241,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt16u(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeInt32u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10270,11 +10270,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt32u(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeInt64u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10299,11 +10299,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt64u(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeInt8s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10328,11 +10328,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt8s(Callback::Cancelable * onSucc CHIP_ERROR TestClusterCluster::ReadAttributeInt16s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10357,11 +10357,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt16s(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeInt32s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10386,11 +10386,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt32s(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeInt64s(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000014; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10415,11 +10415,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeInt64s(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeEnum8(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10444,11 +10444,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeEnum8(Callback::Cancelable * onSucc CHIP_ERROR TestClusterCluster::ReadAttributeEnum16(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10473,11 +10473,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeEnum16(Callback::Cancelable * onSuc CHIP_ERROR TestClusterCluster::ReadAttributeOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10502,11 +10502,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeOctetString(Callback::Cancelable * CHIP_ERROR TestClusterCluster::ReadAttributeListInt8u(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListInt8uListAttributeFilter); } @@ -10514,11 +10514,11 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListInt8u(Callback::Cancelable * onS CHIP_ERROR TestClusterCluster::ReadAttributeListOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListOctetStringListAttributeFilter); } @@ -10526,11 +10526,11 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListOctetString(Callback::Cancelable CHIP_ERROR TestClusterCluster::ReadAttributeListStructOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, TestClusterClusterListStructOctetStringListAttributeFilter); } @@ -10538,11 +10538,11 @@ CHIP_ERROR TestClusterCluster::ReadAttributeListStructOctetString(Callback::Canc CHIP_ERROR TestClusterCluster::ReadAttributeLongOctetString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10567,11 +10567,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeLongOctetString(Callback::Cancelabl CHIP_ERROR TestClusterCluster::ReadAttributeCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10596,11 +10596,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeCharString(Callback::Cancelable * o CHIP_ERROR TestClusterCluster::ReadAttributeLongCharString(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10625,11 +10625,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeLongCharString(Callback::Cancelable CHIP_ERROR TestClusterCluster::ReadAttributeUnsupported(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x000000FF; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10654,11 +10654,11 @@ CHIP_ERROR TestClusterCluster::WriteAttributeUnsupported(Callback::Cancelable * CHIP_ERROR TestClusterCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10679,9 +10679,9 @@ CHIP_ERROR ThermostatCluster::ClearWeeklySchedule(Callback::Cancelable * onSucce VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Thermostat::Commands::Ids::ClearWeeklySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10717,9 +10717,9 @@ CHIP_ERROR ThermostatCluster::GetRelayStatusLog(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Thermostat::Commands::Ids::GetRelayStatusLog, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10756,9 +10756,9 @@ CHIP_ERROR ThermostatCluster::GetWeeklySchedule(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Thermostat::Commands::Ids::GetWeeklySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10800,9 +10800,9 @@ CHIP_ERROR ThermostatCluster::SetWeeklySchedule(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Thermostat::Commands::Ids::SetWeeklySchedule, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10847,9 +10847,9 @@ CHIP_ERROR ThermostatCluster::SetpointRaiseLower(Callback::Cancelable * onSucces VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, Thermostat::Commands::Ids::SetpointRaiseLower, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -10886,11 +10886,11 @@ CHIP_ERROR ThermostatCluster::DiscoverAttributes(Callback::Cancelable * onSucces CHIP_ERROR ThermostatCluster::ReadAttributeLocalTemperature(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10920,11 +10920,11 @@ CHIP_ERROR ThermostatCluster::ReportAttributeLocalTemperature(Callback::Cancelab CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedCoolingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10949,11 +10949,11 @@ CHIP_ERROR ThermostatCluster::WriteAttributeOccupiedCoolingSetpoint(Callback::Ca CHIP_ERROR ThermostatCluster::ReadAttributeOccupiedHeatingSetpoint(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -10978,11 +10978,11 @@ CHIP_ERROR ThermostatCluster::WriteAttributeOccupiedHeatingSetpoint(Callback::Ca CHIP_ERROR ThermostatCluster::ReadAttributeControlSequenceOfOperation(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11007,11 +11007,11 @@ CHIP_ERROR ThermostatCluster::WriteAttributeControlSequenceOfOperation(Callback: CHIP_ERROR ThermostatCluster::ReadAttributeSystemMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11036,11 +11036,11 @@ CHIP_ERROR ThermostatCluster::WriteAttributeSystemMode(Callback::Cancelable * on CHIP_ERROR ThermostatCluster::ReadAttributeStartOfWeek(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11048,11 +11048,11 @@ CHIP_ERROR ThermostatCluster::ReadAttributeStartOfWeek(Callback::Cancelable * on CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfWeeklyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11060,11 +11060,11 @@ CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfWeeklyTransitions(Callback::C CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfDailyTransitions(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11072,11 +11072,11 @@ CHIP_ERROR ThermostatCluster::ReadAttributeNumberOfDailyTransitions(Callback::Ca CHIP_ERROR ThermostatCluster::ReadAttributeFeatureMap(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFC; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11084,11 +11084,11 @@ CHIP_ERROR ThermostatCluster::ReadAttributeFeatureMap(Callback::Cancelable * onS CHIP_ERROR ThermostatCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11107,11 +11107,11 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeTemperatureDisplayMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11136,11 +11136,11 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeTemperatur CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeKeypadLockout(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11167,11 +11167,11 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeScheduleProgrammingVisibility(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11196,11 +11196,11 @@ CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::WriteAttributeSchedulePr CHIP_ERROR ThermostatUserInterfaceConfigurationCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11222,9 +11222,9 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ResetCounts(Callback::Cancelable * o app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, ThreadNetworkDiagnostics::Commands::Ids::ResetCounts, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -11258,11 +11258,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::DiscoverAttributes(Callback::Cancela CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannel(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11270,11 +11270,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannel(Callback::Cance CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRoutingRole(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11282,11 +11282,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRoutingRole(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNetworkName(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11294,11 +11294,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNetworkName(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11306,11 +11306,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePanId(Callback::Cancela CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeExtendedPanId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11318,11 +11318,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeExtendedPanId(Callback: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeMeshLocalPrefix(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000005; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11330,11 +11330,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeMeshLocalPrefix(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000006; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11342,11 +11342,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOverrunCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNeighborTableList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterNeighborTableListListAttributeFilter); } @@ -11354,11 +11354,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeNeighborTableList(Callb CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouteTableList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterRouteTableListListAttributeFilter); } @@ -11366,11 +11366,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouteTableList(Callback CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11378,11 +11378,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionId(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeWeighting(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11390,11 +11390,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeWeighting(Callback::Can CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11402,11 +11402,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDataVersion(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeStableDataVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11414,11 +11414,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeStableDataVersion(Callb CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRouterId(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11426,11 +11426,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRouterId(Callback CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDetachedRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11438,11 +11438,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeDetachedRoleCount(Callb CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChildRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11450,11 +11450,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChildRoleCount(Callback CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouterRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11462,11 +11462,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRouterRoleCount(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRoleCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11474,11 +11474,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeLeaderRoleCount(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11486,11 +11486,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeAttachAttemptCount(Call CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionIdChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11498,11 +11498,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributePartitionIdChangeCount( CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeBetterPartitionAttachAttemptCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000014; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11510,11 +11510,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeBetterPartitionAttachAt CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeParentChangeCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000015; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11522,11 +11522,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeParentChangeCount(Callb CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000016; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11534,11 +11534,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxTotalCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11546,11 +11546,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxUnicastCount(Callback CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000018; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11558,11 +11558,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBroadcastCount(Callba CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000019; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11570,11 +11570,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckRequestedCount(Cal CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11582,11 +11582,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxAckedCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxNoAckRequestedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11594,11 +11594,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxNoAckRequestedCount(C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11606,11 +11606,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataCount(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11618,11 +11618,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDataPollCount(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11630,11 +11630,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconCount(Callback: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11642,11 +11642,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxBeaconRequestCount(Ca CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000020; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11654,11 +11654,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxOtherCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxRetryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000021; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11666,11 +11666,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxRetryCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000022; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11678,11 +11678,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxDirectMaxRetryExpiryC CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxIndirectMaxRetryExpiryCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000023; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11690,11 +11690,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxIndirectMaxRetryExpir CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrCcaCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000024; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11702,11 +11702,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrCcaCount(Callback: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrAbortCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000025; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11714,11 +11714,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrAbortCount(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrBusyChannelCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000026; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11726,11 +11726,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeTxErrBusyChannelCount(C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxTotalCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000027; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11738,11 +11738,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxTotalCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxUnicastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000028; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11750,11 +11750,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxUnicastCount(Callback CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBroadcastCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000029; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11762,11 +11762,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBroadcastCount(Callba CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11774,11 +11774,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataCount(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataPollCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11786,11 +11786,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDataPollCount(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11798,11 +11798,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconCount(Callback: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconRequestCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11810,11 +11810,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxBeaconRequestCount(Ca CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11822,11 +11822,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxOtherCount(Callback:: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxAddressFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000002F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11834,11 +11834,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxAddressFilteredCount( CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDestAddrFilteredCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000030; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11846,11 +11846,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDestAddrFilteredCount CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDuplicatedCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000031; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11858,11 +11858,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxDuplicatedCount(Callb CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrNoFrameCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000032; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11870,11 +11870,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrNoFrameCount(Callb CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrUnknownNeighborCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000033; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11882,11 +11882,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrUnknownNeighborCou CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrInvalidSrcAddrCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000034; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11894,11 +11894,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrInvalidSrcAddrCoun CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrSecCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000035; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11906,11 +11906,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrSecCount(Callback: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrFcsCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000036; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11918,11 +11918,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrFcsCount(Callback: CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrOtherCount(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000037; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11930,11 +11930,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeRxErrOtherCount(Callbac CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeSecurityPolicy(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterSecurityPolicyListAttributeFilter); } @@ -11942,11 +11942,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeSecurityPolicy(Callback CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannelMask(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11954,11 +11954,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeChannelMask(Callback::C CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOperationalDatasetComponents(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterOperationalDatasetComponentsListAttributeFilter); } @@ -11966,11 +11966,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeOperationalDatasetCompo CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeActiveNetworkFaultsList(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000003E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, ThreadNetworkDiagnosticsClusterActiveNetworkFaultsListListAttributeFilter); } @@ -11978,11 +11978,11 @@ CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeActiveNetworkFaultsList CHIP_ERROR ThreadNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -11999,11 +11999,11 @@ CHIP_ERROR WakeOnLanCluster::DiscoverAttributes(Callback::Cancelable * onSuccess CHIP_ERROR WakeOnLanCluster::ReadAttributeWakeOnLanMacAddress(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12011,11 +12011,11 @@ CHIP_ERROR WakeOnLanCluster::ReadAttributeWakeOnLanMacAddress(Callback::Cancelab CHIP_ERROR WakeOnLanCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12037,9 +12037,9 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ResetCounts(Callback::Cancelable * onS app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WiFiNetworkDiagnostics::Commands::Ids::ResetCounts, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12073,11 +12073,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::DiscoverAttributes(Callback::Cancelabl CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBssid(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12085,11 +12085,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeBssid(Callback::Cancelabl CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeSecurityType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000001; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12097,11 +12097,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeSecurityType(Callback::Ca CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeWiFiVersion(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000002; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12109,11 +12109,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeWiFiVersion(Callback::Can CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeChannelNumber(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12121,11 +12121,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeChannelNumber(Callback::C CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeRssi(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12133,11 +12133,11 @@ CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeRssi(Callback::Cancelable CHIP_ERROR WiFiNetworkDiagnosticsCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12157,9 +12157,9 @@ CHIP_ERROR WindowCoveringCluster::DownOrClose(Callback::Cancelable * onSuccessCa VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::DownOrClose, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12197,9 +12197,9 @@ CHIP_ERROR WindowCoveringCluster::GoToLiftPercentage(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::GoToLiftPercentage, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12240,9 +12240,9 @@ CHIP_ERROR WindowCoveringCluster::GoToLiftValue(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::GoToLiftValue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12282,9 +12282,9 @@ CHIP_ERROR WindowCoveringCluster::GoToTiltPercentage(Callback::Cancelable * onSu VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::GoToTiltPercentage, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12325,9 +12325,9 @@ CHIP_ERROR WindowCoveringCluster::GoToTiltValue(Callback::Cancelable * onSuccess VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::GoToTiltValue, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12365,9 +12365,9 @@ CHIP_ERROR WindowCoveringCluster::StopMotion(Callback::Cancelable * onSuccessCal VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::StopMotion, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12403,9 +12403,9 @@ CHIP_ERROR WindowCoveringCluster::UpOrOpen(Callback::Cancelable * onSuccessCallb VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); app::CommandPathParams cmdParams = { mEndpoint, /* group id */ 0, mClusterId, WindowCovering::Commands::Ids::UpOrOpen, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + (app::CommandPathFlags::kEndpointIdValid) }; - SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); + SuccessOrExit(err = app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender)); SuccessOrExit(err = sender->PrepareCommand(cmdParams)); @@ -12439,11 +12439,11 @@ CHIP_ERROR WindowCoveringCluster::DiscoverAttributes(Callback::Cancelable * onSu CHIP_ERROR WindowCoveringCluster::ReadAttributeType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000000; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12451,11 +12451,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeType(Callback::Cancelable * onSuc CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000003; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12463,11 +12463,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLift(Callback::Can CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000004; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12475,11 +12475,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTilt(Callback::Can CHIP_ERROR WindowCoveringCluster::ReadAttributeConfigStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000007; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12487,11 +12487,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeConfigStatus(Callback::Cancelable CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLiftPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000008; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12522,11 +12522,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionLiftPercentage(C CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTiltPercentage(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000009; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12557,11 +12557,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionTiltPercentage(C CHIP_ERROR WindowCoveringCluster::ReadAttributeOperationalStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12590,11 +12590,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeOperationalStatus(Callback::Can CHIP_ERROR WindowCoveringCluster::ReadAttributeTargetPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000B; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12625,11 +12625,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeTargetPositionLiftPercent100ths CHIP_ERROR WindowCoveringCluster::ReadAttributeTargetPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000C; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12660,11 +12660,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeTargetPositionTiltPercent100ths CHIP_ERROR WindowCoveringCluster::ReadAttributeEndProductType(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000D; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12672,11 +12672,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeEndProductType(Callback::Cancelab CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionLiftPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000E; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12707,11 +12707,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionLiftPercent100th CHIP_ERROR WindowCoveringCluster::ReadAttributeCurrentPositionTiltPercent100ths(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000000F; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12742,11 +12742,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeCurrentPositionTiltPercent100th CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000010; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12754,11 +12754,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitLift(Callback:: CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitLift(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000011; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12766,11 +12766,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitLift(Callback CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000012; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12778,11 +12778,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledOpenLimitTilt(Callback:: CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitTilt(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000013; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12790,11 +12790,11 @@ CHIP_ERROR WindowCoveringCluster::ReadAttributeInstalledClosedLimitTilt(Callback CHIP_ERROR WindowCoveringCluster::ReadAttributeMode(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x00000017; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12819,11 +12819,11 @@ CHIP_ERROR WindowCoveringCluster::WriteAttributeMode(Callback::Cancelable * onSu CHIP_ERROR WindowCoveringCluster::ReadAttributeSafetyStatus(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000001A; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } @@ -12852,11 +12852,11 @@ CHIP_ERROR WindowCoveringCluster::ReportAttributeSafetyStatus(Callback::Cancelab CHIP_ERROR WindowCoveringCluster::ReadAttributeClusterRevision(Callback::Cancelable * onSuccessCallback, Callback::Cancelable * onFailureCallback) { - chip::app::AttributePathParams attributePath; + app::AttributePathParams attributePath; attributePath.mEndpointId = mEndpoint; attributePath.mClusterId = mClusterId; attributePath.mFieldId = 0x0000FFFD; - attributePath.mFlags.Set(chip::app::AttributePathParams::Flags::kFieldIdValid); + attributePath.mFlags.Set(app::AttributePathParams::Flags::kFieldIdValid); return mDevice->SendReadAttributeRequest(attributePath, onSuccessCallback, onFailureCallback, BasicAttributeFilter); } diff --git a/src/controller/data_model/gen/IMClusterCommandHandler.cpp b/src/controller/data_model/gen/IMClusterCommandHandler.cpp index 1cdcb71d3e788f..79d38ce6092073 100644 --- a/src/controller/data_model/gen/IMClusterCommandHandler.cpp +++ b/src/controller/data_model/gen/IMClusterCommandHandler.cpp @@ -37,9 +37,9 @@ namespace app { namespace { void ReportCommandUnsupported(Command * aCommandObj, EndpointId aEndpointId, ClusterId aClusterId, CommandId aCommandId) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; aCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command " ChipLogFormatMEI " for cluster " ChipLogFormatMEI, ChipLogValueMEI(aCommandId), @@ -53,8 +53,7 @@ namespace clusters { namespace AccountLogin { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -139,10 +138,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::AccountLogin::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::AccountLogin::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -160,8 +158,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace ApplicationLauncher { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -250,10 +247,10 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ApplicationLauncher::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ApplicationLauncher::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -271,8 +268,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace ContentLauncher { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -425,10 +421,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::ContentLauncher::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::ContentLauncher::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -446,8 +441,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace DoorLock { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -1928,10 +1922,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::DoorLock::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::DoorLock::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -1949,8 +1942,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace GeneralCommissioning { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2167,10 +2159,10 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::GeneralCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::GeneralCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2188,8 +2180,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace Groups { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2474,10 +2465,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Groups::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Groups::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2495,8 +2485,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace Identify { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2579,10 +2568,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Identify::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Identify::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2600,8 +2588,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace KeypadInput { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -2684,10 +2671,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::KeypadInput::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::KeypadInput::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -2705,8 +2691,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace MediaPlayback { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3374,10 +3359,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::MediaPlayback::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::MediaPlayback::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3395,8 +3379,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace NetworkCommissioning { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -3943,10 +3926,10 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::NetworkCommissioning::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::NetworkCommissioning::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -3964,8 +3947,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace OtaSoftwareUpdateProvider { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4138,10 +4120,10 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OtaSoftwareUpdateProvider::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4159,8 +4141,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace OperationalCredentials { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4373,10 +4354,10 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::OperationalCredentials::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::OperationalCredentials::Id, aCommandId, + (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4394,8 +4375,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace Scenes { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4838,10 +4818,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::Scenes::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::Scenes::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4859,8 +4838,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace TvChannel { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -4949,10 +4927,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TvChannel::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TvChannel::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -4970,8 +4947,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace TargetNavigator { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5060,10 +5036,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TargetNavigator::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TargetNavigator::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5081,8 +5056,7 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand namespace TestCluster { -void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, - TLV::TLVReader & aDataTlv) +void DispatchClientCommand(CommandSender * apCommandObj, CommandId aCommandId, EndpointId aEndpointId, TLV::TLVReader & aDataTlv) { // We are using TLVUnpackError and TLVError here since both of them can be CHIP_END_OF_TLV // When TLVError is CHIP_END_OF_TLV, it means we have iterated all of the items, which is not a real error. @@ -5223,10 +5197,9 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand if (CHIP_NO_ERROR != TLVError || CHIP_NO_ERROR != TLVUnpackError || expectArgumentCount != validArgumentCount || !wasHandled) { - chip::app::CommandPathParams returnStatusParam = { aEndpointId, - 0, // GroupId - Clusters::TestCluster::Id, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndpointId, + 0, // GroupId + Clusters::TestCluster::Id, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, @@ -5244,8 +5217,8 @@ void DispatchClientCommand(app::CommandSender * apCommandObj, CommandId aCommand } // namespace clusters -void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandHandler * apCommandObj) +void DispatchSingleClusterCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, TLV::TLVReader & aReader, + CommandHandler * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=" ChipLogFormatMEI " Command=" ChipLogFormatMEI " Endpoint=%" PRIx16, ChipLogValueMEI(aClusterId), ChipLogValueMEI(aCommandId), aEndPointId); @@ -5256,10 +5229,9 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC { default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster %" PRIx32, aClusterId); @@ -5270,8 +5242,8 @@ void DispatchSingleClusterCommand(chip::ClusterId aClusterId, chip::CommandId aC aReader.ExitContainer(dataTlvType); } -void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::CommandId aCommandId, chip::EndpointId aEndPointId, - chip::TLV::TLVReader & aReader, CommandSender * apCommandObj) +void DispatchSingleClusterResponseCommand(ClusterId aClusterId, CommandId aCommandId, EndpointId aEndPointId, + TLV::TLVReader & aReader, CommandSender * apCommandObj) { ChipLogDetail(Zcl, "Received Cluster Command: Cluster=%" PRIx32 " Command=%" PRIx32 " Endpoint=%" PRIx16, aClusterId, aCommandId, aEndPointId); @@ -5330,10 +5302,9 @@ void DispatchSingleClusterResponseCommand(chip::ClusterId aClusterId, chip::Comm break; default: // Unrecognized cluster ID, error status will apply. - chip::app::CommandPathParams returnStatusParam = { aEndPointId, - 0, // GroupId - aClusterId, aCommandId, - (chip::app::CommandPathFlags::kEndpointIdValid) }; + CommandPathParams returnStatusParam = { aEndPointId, + 0, // GroupId + aClusterId, aCommandId, (CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogError(Zcl, "Unknown cluster " ChipLogFormatMEI, ChipLogValueMEI(aClusterId)); diff --git a/src/controller/data_model/gen/attribute-size.cpp b/src/controller/data_model/gen/attribute-size.cpp index 6006cea707c746..268d19bd084733 100644 --- a/src/controller/data_model/gen/attribute-size.cpp +++ b/src/controller/data_model/gen/attribute-size.cpp @@ -69,7 +69,7 @@ uint16_t emberAfCopyList(ClusterId clusterId, EmberAfAttributeMetadata * am, boo return kSizeLengthInBytes; } - if (!chip::CanCastTo(index)) + if (!CanCastTo(index)) { ChipLogError(Zcl, "Index %" PRId32 " is invalid. Should be between 1 and 65534", index); return 0; @@ -100,7 +100,7 @@ uint16_t emberAfAttributeValueListSize(ClusterId clusterId, AttributeId attribut } uint32_t totalSize = kSizeLengthInBytes + (entryCount * entryLength); - if (!chip::CanCastTo(totalSize)) + if (!CanCastTo(totalSize)) { ChipLogError(Zcl, "Cluster " ChipLogFormatMEI ": Size of attribute " ChipLogFormatMEI " is too large.", ChipLogValueMEI(clusterId), ChipLogValueMEI(attributeId));