From fb1145d3a7efca34c23fca1315b13d8ce9a4d6d3 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Wed, 12 Jan 2022 19:00:36 +0100 Subject: [PATCH] Update generated code --- .../zap-generated/cluster/Commands.h | 6322 ++++++++++++----- .../chip-tool/zap-generated/test/Commands.h | 102 + 2 files changed, 4518 insertions(+), 1906 deletions(-) diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index a206875590380e..b2dde4401247ce 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -148,6 +148,89 @@ CHIP_ERROR LogValue(const char * label, size_t indent, CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::TestCluster::Structs::TestListStructOctet::DecodableType & value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::BridgedActions::Events::StateChanged::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::BridgedActions::Events::ActionFailed::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::StartUp::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::ShutDown::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::Leave::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::ReachableChanged::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::StateTransition::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::VersionApplied::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::DownloadError::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::HardwareFaultChange::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::RadioFaultChange::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::NetworkFaultChange::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::BootReason::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::SoftwareDiagnostics::Events::SoftwareFault::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::ThreadNetworkDiagnostics::Events::ConnectionStatus::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::Disconnection::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::AssociationFailure::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::ConnectionStatus::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::SwitchLatched::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::InitialPress::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::LongPress::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::ShortRelease::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::LongRelease::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::MultiPressOngoing::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::Switch::Events::MultiPressComplete::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::BooleanState::Events::StateChange::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::DoorLockAlarm::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::DoorStateChange::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::LockOperation::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::DoorLock::Events::LockOperationError::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::LockUserChange::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SupplyVoltageLow::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SupplyVoltageHigh::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::PowerMissingPhase::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SystemPressureLow::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SystemPressureHigh::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::DryRunning::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::MotorTemperatureHigh::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::PumpMotorFatalFailure::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicTemperatureHigh::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::PumpBlocked::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SensorFailure::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicNonFatalFailure::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicFatalFailure::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::GeneralFault::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::Leakage::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::AirDetection::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::TurbineOperation::DecodableType value); +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::TestCluster::Events::TestEvent::DecodableType value); + #if CHIP_PROGRESS_LOGGING std::string IndentStr(size_t indent) { @@ -2456,6 +2539,917 @@ CHIP_ERROR LogValue(const char * label, size_t indent, } #pragma GCC diagnostic pop +// We output helpers for all events here, including ones we might not actually +// be logging. +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::BridgedActions::Events::StateChanged::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("ActionID", indent + 1, value.actionID); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ActionID'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("InvokeID", indent + 1, value.invokeID); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'InvokeID'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("NewState", indent + 1, value.newState); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewState'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::BridgedActions::Events::ActionFailed::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("ActionID", indent + 1, value.actionID); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ActionID'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("InvokeID", indent + 1, value.invokeID); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'InvokeID'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("NewState", indent + 1, value.newState); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewState'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Error", indent + 1, value.error); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Error'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::StartUp::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("SoftwareVersion", indent + 1, value.softwareVersion); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SoftwareVersion'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::ShutDown::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::Leave::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Basic::Events::ReachableChanged::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("ReachableNewValue", indent + 1, value.reachableNewValue); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ReachableNewValue'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::StateTransition::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("PreviousState", indent + 1, value.previousState); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'PreviousState'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("NewState", indent + 1, value.newState); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewState'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Reason", indent + 1, value.reason); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Reason'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("TargetSoftwareVersion", indent + 1, value.targetSoftwareVersion); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'TargetSoftwareVersion'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::VersionApplied::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("SoftwareVersion", indent + 1, value.softwareVersion); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SoftwareVersion'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("ProductID", indent + 1, value.productID); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ProductID'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::DownloadError::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("SoftwareVersion", indent + 1, value.softwareVersion); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SoftwareVersion'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("BytesDownloaded", indent + 1, value.bytesDownloaded); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'BytesDownloaded'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("ProgressPercent", indent + 1, value.progressPercent); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ProgressPercent'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("PlatformCode", indent + 1, value.platformCode); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'PlatformCode'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::HardwareFaultChange::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("Current", indent + 1, value.current); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Current'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Previous", indent + 1, value.previous); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Previous'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::RadioFaultChange::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("Current", indent + 1, value.current); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Current'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Previous", indent + 1, value.previous); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Previous'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::NetworkFaultChange::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("Current", indent + 1, value.current); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Current'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Previous", indent + 1, value.previous); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Previous'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::GeneralDiagnostics::Events::BootReason::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("BootReason", indent + 1, value.bootReason); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'BootReason'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::SoftwareDiagnostics::Events::SoftwareFault::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("SoftwareFault", indent + 1, value.softwareFault); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SoftwareFault'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::ThreadNetworkDiagnostics::Events::ConnectionStatus::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("ConnectionStatus", indent + 1, value.connectionStatus); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ConnectionStatus'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::Disconnection::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("ReasonCode", indent + 1, value.reasonCode); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ReasonCode'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::AssociationFailure::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("AssociationFailure", indent + 1, value.associationFailure); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'AssociationFailure'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Status", indent + 1, value.status); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Status'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::ConnectionStatus::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("ConnectionStatus", indent + 1, value.connectionStatus); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'ConnectionStatus'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::SwitchLatched::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("NewPosition", indent + 1, value.newPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewPosition'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::InitialPress::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("NewPosition", indent + 1, value.newPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewPosition'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::LongPress::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("NewPosition", indent + 1, value.newPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewPosition'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::ShortRelease::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("PreviousPosition", indent + 1, value.previousPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'PreviousPosition'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::LongRelease::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("PreviousPosition", indent + 1, value.previousPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'PreviousPosition'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::MultiPressOngoing::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("NewPosition", indent + 1, value.newPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewPosition'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("CurrentNumberOfPressesCounted", indent + 1, value.currentNumberOfPressesCounted); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'CurrentNumberOfPressesCounted'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::Switch::Events::MultiPressComplete::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("NewPosition", indent + 1, value.newPosition); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'NewPosition'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("TotalNumberOfPressesCounted", indent + 1, value.totalNumberOfPressesCounted); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'TotalNumberOfPressesCounted'", + IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::BooleanState::Events::StateChange::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("StateValue", indent + 1, value.stateValue); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'StateValue'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::DoorLockAlarm::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("AlarmCode", indent + 1, value.alarmCode); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'AlarmCode'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::DoorStateChange::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("DoorState", indent + 1, value.doorState); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'DoorState'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::LockOperation::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("LockOperationType", indent + 1, value.lockOperationType); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'LockOperationType'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("OperationSource", indent + 1, value.operationSource); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'OperationSource'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("UserIndex", indent + 1, value.userIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'UserIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("FabricIndex", indent + 1, value.fabricIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'FabricIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("SourceNode", indent + 1, value.sourceNode); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SourceNode'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Credentials", indent + 1, value.credentials); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Credentials'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::DoorLock::Events::LockOperationError::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("LockOperationType", indent + 1, value.lockOperationType); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'LockOperationType'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("OperationSource", indent + 1, value.operationSource); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'OperationSource'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("OperationError", indent + 1, value.operationError); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'OperationError'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("UserIndex", indent + 1, value.userIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'UserIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("FabricIndex", indent + 1, value.fabricIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'FabricIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("SourceNode", indent + 1, value.sourceNode); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SourceNode'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Credentials", indent + 1, value.credentials); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Credentials'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::DoorLock::Events::LockUserChange::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("LockDataType", indent + 1, value.lockDataType); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'LockDataType'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("DataOperationType", indent + 1, value.dataOperationType); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'DataOperationType'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("OperationSource", indent + 1, value.operationSource); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'OperationSource'", + IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("UserIndex", indent + 1, value.userIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'UserIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("FabricIndex", indent + 1, value.fabricIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'FabricIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("SourceNode", indent + 1, value.sourceNode); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'SourceNode'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("DataIndex", indent + 1, value.dataIndex); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'DataIndex'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SupplyVoltageLow::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SupplyVoltageHigh::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::PowerMissingPhase::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SystemPressureLow::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SystemPressureHigh::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::DryRunning::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::MotorTemperatureHigh::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::PumpMotorFatalFailure::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicTemperatureHigh::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::PumpBlocked::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::SensorFailure::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicNonFatalFailure::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicFatalFailure::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::GeneralFault::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::Leakage::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::AirDetection::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, + chip::app::Clusters::PumpConfigurationAndControl::Events::TurbineOperation::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +CHIP_ERROR LogValue(const char * label, size_t indent, chip::app::Clusters::TestCluster::Events::TestEvent::DecodableType value) +{ + ChipLogProgress(chipTool, "%s%s: {", IndentStr(indent).c_str(), label); + { + CHIP_ERROR err = LogValue("Arg1", indent + 1, value.arg1); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Arg1'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Arg2", indent + 1, value.arg2); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Arg2'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Arg3", indent + 1, value.arg3); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Arg3'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Arg4", indent + 1, value.arg4); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Arg4'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Arg5", indent + 1, value.arg5); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Arg5'", IndentStr(indent + 1).c_str()); + return err; + } + } + { + CHIP_ERROR err = LogValue("Arg6", indent + 1, value.arg6); + if (err != CHIP_NO_ERROR) + { + ChipLogProgress(chipTool, "%sEvent truncated due to invalid value for 'Arg6'", IndentStr(indent + 1).c_str()); + return err; + } + } + ChipLogProgress(chipTool, "%s}", IndentStr(indent).c_str()); + return CHIP_NO_ERROR; +} +#pragma GCC diagnostic pop } // anonymous namespace static void OnDefaultSuccessResponseWithoutExit(void * context) @@ -2485,7 +3479,7 @@ static void OnDefaultSuccess(void * context, const chip::app::DataModel::NullObj }; template -static void OnGeneralAttributeResponse(void * context, const char * label, T value) +static void OnGeneralAttributeEventResponse(void * context, const char * label, T value) { CHIP_ERROR err = LogValue(label, 0, value); @@ -3538,7 +4532,7 @@ class ReadAccessControlAcl : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); @@ -3551,7 +4545,7 @@ class ReadAccessControlAcl : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AccessControl.Acl response", value); + OnGeneralAttributeEventResponse(context, "AccessControl.Acl response", value); } }; @@ -3571,7 +4565,7 @@ class ReportAccessControlAcl : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); @@ -3616,7 +4610,7 @@ class ReadAccessControlExtension : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); @@ -3629,7 +4623,7 @@ class ReadAccessControlExtension : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AccessControl.Extension response", value); + OnGeneralAttributeEventResponse(context, "AccessControl.Extension response", value); } }; @@ -3649,7 +4643,7 @@ class ReportAccessControlExtension : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); @@ -3694,7 +4688,7 @@ class ReadAccessControlAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); @@ -3704,7 +4698,7 @@ class ReadAccessControlAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AccessControl.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "AccessControl.AttributeList response", value); } }; @@ -3724,7 +4718,7 @@ class ReadAccessControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccessControlCluster cluster; cluster.Associate(device, endpointId); @@ -3734,7 +4728,7 @@ class ReadAccessControlClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "AccessControl.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "AccessControl.ClusterRevision response", value); } }; @@ -3836,7 +4830,7 @@ class ReadAccountLoginAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccountLoginCluster cluster; cluster.Associate(device, endpointId); @@ -3846,7 +4840,7 @@ class ReadAccountLoginAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AccountLogin.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "AccountLogin.AttributeList response", value); } }; @@ -3866,7 +4860,7 @@ class ReadAccountLoginClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccountLoginCluster cluster; cluster.Associate(device, endpointId); @@ -3876,7 +4870,7 @@ class ReadAccountLoginClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "AccountLogin.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "AccountLogin.ClusterRevision response", value); } }; @@ -3896,7 +4890,7 @@ class ReportAccountLoginClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AccountLoginCluster cluster; cluster.Associate(device, endpointId); @@ -4024,7 +5018,7 @@ class ReadAdministratorCommissioningWindowStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -4034,7 +5028,7 @@ class ReadAdministratorCommissioningWindowStatus : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "AdministratorCommissioning.WindowStatus response", value); + OnGeneralAttributeEventResponse(context, "AdministratorCommissioning.WindowStatus response", value); } }; @@ -4054,7 +5048,7 @@ class ReadAdministratorCommissioningAdminFabricIndex : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -4064,7 +5058,7 @@ class ReadAdministratorCommissioningAdminFabricIndex : public ModelCommand static void OnAttributeResponse(void * context, chip::FabricIndex value) { - OnGeneralAttributeResponse(context, "AdministratorCommissioning.AdminFabricIndex response", value); + OnGeneralAttributeEventResponse(context, "AdministratorCommissioning.AdminFabricIndex response", value); } }; @@ -4084,7 +5078,7 @@ class ReadAdministratorCommissioningAdminVendorId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -4094,7 +5088,7 @@ class ReadAdministratorCommissioningAdminVendorId : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "AdministratorCommissioning.AdminVendorId response", value); + OnGeneralAttributeEventResponse(context, "AdministratorCommissioning.AdminVendorId response", value); } }; @@ -4114,7 +5108,7 @@ class ReadAdministratorCommissioningAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -4124,7 +5118,7 @@ class ReadAdministratorCommissioningAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AdministratorCommissioning.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "AdministratorCommissioning.AttributeList response", value); } }; @@ -4144,7 +5138,7 @@ class ReadAdministratorCommissioningClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -4154,7 +5148,7 @@ class ReadAdministratorCommissioningClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "AdministratorCommissioning.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "AdministratorCommissioning.ClusterRevision response", value); } }; @@ -4174,7 +5168,7 @@ class ReportAdministratorCommissioningClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003C) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003C) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AdministratorCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -4234,7 +5228,7 @@ class ReadApplicationBasicVendorName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4244,7 +5238,7 @@ class ReadApplicationBasicVendorName : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.VendorName response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.VendorName response", value); } }; @@ -4264,7 +5258,7 @@ class ReportApplicationBasicVendorName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4303,7 +5297,7 @@ class ReadApplicationBasicVendorId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4313,7 +5307,7 @@ class ReadApplicationBasicVendorId : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.VendorId response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.VendorId response", value); } }; @@ -4333,7 +5327,7 @@ class ReportApplicationBasicVendorId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4372,7 +5366,7 @@ class ReadApplicationBasicApplicationName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4382,7 +5376,7 @@ class ReadApplicationBasicApplicationName : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.ApplicationName response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.ApplicationName response", value); } }; @@ -4402,7 +5396,7 @@ class ReportApplicationBasicApplicationName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4444,7 +5438,7 @@ class ReadApplicationBasicProductId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4454,7 +5448,7 @@ class ReadApplicationBasicProductId : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.ProductId response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.ProductId response", value); } }; @@ -4474,7 +5468,7 @@ class ReportApplicationBasicProductId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4513,7 +5507,7 @@ class ReadApplicationBasicApplicationStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4523,7 +5517,7 @@ class ReadApplicationBasicApplicationStatus : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.ApplicationStatus response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.ApplicationStatus response", value); } }; @@ -4543,7 +5537,7 @@ class ReportApplicationBasicApplicationStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4585,7 +5579,7 @@ class ReadApplicationBasicApplicationVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4595,7 +5589,7 @@ class ReadApplicationBasicApplicationVersion : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.ApplicationVersion response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.ApplicationVersion response", value); } }; @@ -4615,7 +5609,7 @@ class ReportApplicationBasicApplicationVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4657,7 +5651,7 @@ class ReadApplicationBasicAllowedVendorList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4667,7 +5661,7 @@ class ReadApplicationBasicAllowedVendorList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.AllowedVendorList response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.AllowedVendorList response", value); } }; @@ -4687,7 +5681,7 @@ class ReadApplicationBasicAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4697,7 +5691,7 @@ class ReadApplicationBasicAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.AttributeList response", value); } }; @@ -4717,7 +5711,7 @@ class ReadApplicationBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4727,7 +5721,7 @@ class ReadApplicationBasicClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ApplicationBasic.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ApplicationBasic.ClusterRevision response", value); } }; @@ -4747,7 +5741,7 @@ class ReportApplicationBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationBasicCluster cluster; cluster.Associate(device, endpointId); @@ -4873,7 +5867,7 @@ class ReadApplicationLauncherApplicationLauncherList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -4883,7 +5877,7 @@ class ReadApplicationLauncherApplicationLauncherList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ApplicationLauncher.ApplicationLauncherList response", value); + OnGeneralAttributeEventResponse(context, "ApplicationLauncher.ApplicationLauncherList response", value); } }; @@ -4903,7 +5897,7 @@ class ReportApplicationLauncherApplicationLauncherList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050C) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050C) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -4945,7 +5939,7 @@ class ReadApplicationLauncherAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -4955,7 +5949,7 @@ class ReadApplicationLauncherAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ApplicationLauncher.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ApplicationLauncher.AttributeList response", value); } }; @@ -4975,7 +5969,7 @@ class ReadApplicationLauncherClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050C) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050C) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -4985,7 +5979,7 @@ class ReadApplicationLauncherClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ApplicationLauncher.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ApplicationLauncher.ClusterRevision response", value); } }; @@ -5005,7 +5999,7 @@ class ReportApplicationLauncherClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050C) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050C) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ApplicationLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -5107,7 +6101,7 @@ class ReadAudioOutputAudioOutputList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5119,7 +6113,7 @@ class ReadAudioOutputAudioOutputList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AudioOutput.AudioOutputList response", value); + OnGeneralAttributeEventResponse(context, "AudioOutput.AudioOutputList response", value); } }; @@ -5139,7 +6133,7 @@ class ReportAudioOutputAudioOutputList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5183,7 +6177,7 @@ class ReadAudioOutputCurrentAudioOutput : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5193,7 +6187,7 @@ class ReadAudioOutputCurrentAudioOutput : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "AudioOutput.CurrentAudioOutput response", value); + OnGeneralAttributeEventResponse(context, "AudioOutput.CurrentAudioOutput response", value); } }; @@ -5213,7 +6207,7 @@ class ReportAudioOutputCurrentAudioOutput : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5252,7 +6246,7 @@ class ReadAudioOutputAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5262,7 +6256,7 @@ class ReadAudioOutputAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "AudioOutput.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "AudioOutput.AttributeList response", value); } }; @@ -5282,7 +6276,7 @@ class ReadAudioOutputClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5292,7 +6286,7 @@ class ReadAudioOutputClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "AudioOutput.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "AudioOutput.ClusterRevision response", value); } }; @@ -5312,7 +6306,7 @@ class ReportAudioOutputClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::AudioOutputCluster cluster; cluster.Associate(device, endpointId); @@ -5411,7 +6405,7 @@ class ReadBarrierControlBarrierMovingState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5421,7 +6415,7 @@ class ReadBarrierControlBarrierMovingState : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "BarrierControl.BarrierMovingState response", value); + OnGeneralAttributeEventResponse(context, "BarrierControl.BarrierMovingState response", value); } }; @@ -5441,7 +6435,7 @@ class ReportBarrierControlBarrierMovingState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5480,7 +6474,7 @@ class ReadBarrierControlBarrierSafetyStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5490,7 +6484,7 @@ class ReadBarrierControlBarrierSafetyStatus : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "BarrierControl.BarrierSafetyStatus response", value); + OnGeneralAttributeEventResponse(context, "BarrierControl.BarrierSafetyStatus response", value); } }; @@ -5510,7 +6504,7 @@ class ReportBarrierControlBarrierSafetyStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5549,7 +6543,7 @@ class ReadBarrierControlBarrierCapabilities : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5559,7 +6553,7 @@ class ReadBarrierControlBarrierCapabilities : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "BarrierControl.BarrierCapabilities response", value); + OnGeneralAttributeEventResponse(context, "BarrierControl.BarrierCapabilities response", value); } }; @@ -5579,7 +6573,7 @@ class ReportBarrierControlBarrierCapabilities : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5618,7 +6612,7 @@ class ReadBarrierControlBarrierPosition : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5628,7 +6622,7 @@ class ReadBarrierControlBarrierPosition : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "BarrierControl.BarrierPosition response", value); + OnGeneralAttributeEventResponse(context, "BarrierControl.BarrierPosition response", value); } }; @@ -5648,7 +6642,7 @@ class ReportBarrierControlBarrierPosition : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5687,7 +6681,7 @@ class ReadBarrierControlAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5697,7 +6691,7 @@ class ReadBarrierControlAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BarrierControl.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "BarrierControl.AttributeList response", value); } }; @@ -5717,7 +6711,7 @@ class ReadBarrierControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5727,7 +6721,7 @@ class ReadBarrierControlClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "BarrierControl.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "BarrierControl.ClusterRevision response", value); } }; @@ -5747,7 +6741,7 @@ class ReportBarrierControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0103) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0103) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BarrierControlCluster cluster; cluster.Associate(device, endpointId); @@ -5820,6 +6814,122 @@ class BasicMfgSpecificPing : public ModelCommand chip::app::Clusters::Basic::Commands::MfgSpecificPing::Type mRequest; }; +/* + * Event StartUp + */ +class ReadBasicStartUp : public ModelCommand +{ +public: + ReadBasicStartUp() : ModelCommand("read-event") + { + AddArgument("event-name", "start-up"); + ModelCommand::AddArguments(); + } + + ~ReadBasicStartUp() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BasicCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Basic::Events::StartUp::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Basic.StartUp response", value); + } +}; +/* + * Event ShutDown + */ +class ReadBasicShutDown : public ModelCommand +{ +public: + ReadBasicShutDown() : ModelCommand("read-event") + { + AddArgument("event-name", "shut-down"); + ModelCommand::AddArguments(); + } + + ~ReadBasicShutDown() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BasicCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Basic::Events::ShutDown::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Basic.ShutDown response", value); + } +}; +/* + * Event Leave + */ +class ReadBasicLeave : public ModelCommand +{ +public: + ReadBasicLeave() : ModelCommand("read-event") + { + AddArgument("event-name", "leave"); + ModelCommand::AddArguments(); + } + + ~ReadBasicLeave() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BasicCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Basic::Events::Leave::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Basic.Leave response", value); + } +}; +/* + * Event ReachableChanged + */ +class ReadBasicReachableChanged : public ModelCommand +{ +public: + ReadBasicReachableChanged() : ModelCommand("read-event") + { + AddArgument("event-name", "reachable-changed"); + ModelCommand::AddArguments(); + } + + ~ReadBasicReachableChanged() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BasicCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Basic::Events::ReachableChanged::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Basic.ReachableChanged response", value); + } +}; + /* * Attribute InteractionModelVersion */ @@ -5836,7 +6946,7 @@ class ReadBasicInteractionModelVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -5846,7 +6956,7 @@ class ReadBasicInteractionModelVersion : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Basic.InteractionModelVersion response", value); + OnGeneralAttributeEventResponse(context, "Basic.InteractionModelVersion response", value); } }; @@ -5866,7 +6976,7 @@ class ReportBasicInteractionModelVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -5905,7 +7015,7 @@ class ReadBasicVendorName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -5915,7 +7025,7 @@ class ReadBasicVendorName : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.VendorName response", value); + OnGeneralAttributeEventResponse(context, "Basic.VendorName response", value); } }; @@ -5935,7 +7045,7 @@ class ReportBasicVendorName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -5974,7 +7084,7 @@ class ReadBasicVendorID : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -5984,7 +7094,7 @@ class ReadBasicVendorID : public ModelCommand static void OnAttributeResponse(void * context, chip::VendorId value) { - OnGeneralAttributeResponse(context, "Basic.VendorID response", value); + OnGeneralAttributeEventResponse(context, "Basic.VendorID response", value); } }; @@ -6004,7 +7114,7 @@ class ReportBasicVendorID : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6043,7 +7153,7 @@ class ReadBasicProductName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6053,7 +7163,7 @@ class ReadBasicProductName : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.ProductName response", value); + OnGeneralAttributeEventResponse(context, "Basic.ProductName response", value); } }; @@ -6073,7 +7183,7 @@ class ReportBasicProductName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6112,7 +7222,7 @@ class ReadBasicProductID : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6122,7 +7232,7 @@ class ReadBasicProductID : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Basic.ProductID response", value); + OnGeneralAttributeEventResponse(context, "Basic.ProductID response", value); } }; @@ -6142,7 +7252,7 @@ class ReportBasicProductID : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6181,7 +7291,7 @@ class ReadBasicNodeLabel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6191,7 +7301,7 @@ class ReadBasicNodeLabel : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.NodeLabel response", value); + OnGeneralAttributeEventResponse(context, "Basic.NodeLabel response", value); } }; @@ -6209,7 +7319,7 @@ class WriteBasicNodeLabel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6237,7 +7347,7 @@ class ReportBasicNodeLabel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6276,7 +7386,7 @@ class ReadBasicLocation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6286,7 +7396,7 @@ class ReadBasicLocation : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.Location response", value); + OnGeneralAttributeEventResponse(context, "Basic.Location response", value); } }; @@ -6304,7 +7414,7 @@ class WriteBasicLocation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6332,7 +7442,7 @@ class ReportBasicLocation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6371,7 +7481,7 @@ class ReadBasicHardwareVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6381,7 +7491,7 @@ class ReadBasicHardwareVersion : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Basic.HardwareVersion response", value); + OnGeneralAttributeEventResponse(context, "Basic.HardwareVersion response", value); } }; @@ -6401,7 +7511,7 @@ class ReportBasicHardwareVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6440,7 +7550,7 @@ class ReadBasicHardwareVersionString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6450,7 +7560,7 @@ class ReadBasicHardwareVersionString : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.HardwareVersionString response", value); + OnGeneralAttributeEventResponse(context, "Basic.HardwareVersionString response", value); } }; @@ -6470,7 +7580,7 @@ class ReportBasicHardwareVersionString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6509,7 +7619,7 @@ class ReadBasicSoftwareVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6519,7 +7629,7 @@ class ReadBasicSoftwareVersion : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "Basic.SoftwareVersion response", value); + OnGeneralAttributeEventResponse(context, "Basic.SoftwareVersion response", value); } }; @@ -6539,7 +7649,7 @@ class ReportBasicSoftwareVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6578,7 +7688,7 @@ class ReadBasicSoftwareVersionString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6588,7 +7698,7 @@ class ReadBasicSoftwareVersionString : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.SoftwareVersionString response", value); + OnGeneralAttributeEventResponse(context, "Basic.SoftwareVersionString response", value); } }; @@ -6608,7 +7718,7 @@ class ReportBasicSoftwareVersionString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6647,7 +7757,7 @@ class ReadBasicManufacturingDate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6657,7 +7767,7 @@ class ReadBasicManufacturingDate : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.ManufacturingDate response", value); + OnGeneralAttributeEventResponse(context, "Basic.ManufacturingDate response", value); } }; @@ -6677,7 +7787,7 @@ class ReportBasicManufacturingDate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6716,7 +7826,7 @@ class ReadBasicPartNumber : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6726,7 +7836,7 @@ class ReadBasicPartNumber : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.PartNumber response", value); + OnGeneralAttributeEventResponse(context, "Basic.PartNumber response", value); } }; @@ -6746,7 +7856,7 @@ class ReportBasicPartNumber : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6785,7 +7895,7 @@ class ReadBasicProductURL : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6795,7 +7905,7 @@ class ReadBasicProductURL : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.ProductURL response", value); + OnGeneralAttributeEventResponse(context, "Basic.ProductURL response", value); } }; @@ -6815,7 +7925,7 @@ class ReportBasicProductURL : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6854,7 +7964,7 @@ class ReadBasicProductLabel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6864,7 +7974,7 @@ class ReadBasicProductLabel : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.ProductLabel response", value); + OnGeneralAttributeEventResponse(context, "Basic.ProductLabel response", value); } }; @@ -6884,7 +7994,7 @@ class ReportBasicProductLabel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6923,7 +8033,7 @@ class ReadBasicSerialNumber : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6933,7 +8043,7 @@ class ReadBasicSerialNumber : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.SerialNumber response", value); + OnGeneralAttributeEventResponse(context, "Basic.SerialNumber response", value); } }; @@ -6953,7 +8063,7 @@ class ReportBasicSerialNumber : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -6992,7 +8102,7 @@ class ReadBasicLocalConfigDisabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7002,7 +8112,7 @@ class ReadBasicLocalConfigDisabled : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "Basic.LocalConfigDisabled response", value); + OnGeneralAttributeEventResponse(context, "Basic.LocalConfigDisabled response", value); } }; @@ -7020,7 +8130,7 @@ class WriteBasicLocalConfigDisabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7048,7 +8158,7 @@ class ReportBasicLocalConfigDisabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7087,7 +8197,7 @@ class ReadBasicReachable : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7097,7 +8207,7 @@ class ReadBasicReachable : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "Basic.Reachable response", value); + OnGeneralAttributeEventResponse(context, "Basic.Reachable response", value); } }; @@ -7117,7 +8227,7 @@ class ReportBasicReachable : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7156,7 +8266,7 @@ class ReadBasicUniqueID : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7166,7 +8276,7 @@ class ReadBasicUniqueID : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "Basic.UniqueID response", value); + OnGeneralAttributeEventResponse(context, "Basic.UniqueID response", value); } }; @@ -7186,7 +8296,7 @@ class ReadBasicAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7196,7 +8306,7 @@ class ReadBasicAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Basic.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Basic.AttributeList response", value); } }; @@ -7216,7 +8326,7 @@ class ReadBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7226,7 +8336,7 @@ class ReadBasicClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Basic.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Basic.ClusterRevision response", value); } }; @@ -7246,7 +8356,7 @@ class ReportBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0028) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0028) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BasicCluster cluster; cluster.Associate(device, endpointId); @@ -7298,7 +8408,7 @@ class ReadBinaryInputBasicOutOfService : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7308,7 +8418,7 @@ class ReadBinaryInputBasicOutOfService : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "BinaryInputBasic.OutOfService response", value); + OnGeneralAttributeEventResponse(context, "BinaryInputBasic.OutOfService response", value); } }; @@ -7326,7 +8436,7 @@ class WriteBinaryInputBasicOutOfService : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7354,7 +8464,7 @@ class ReportBinaryInputBasicOutOfService : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7393,7 +8503,7 @@ class ReadBinaryInputBasicPresentValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7403,7 +8513,7 @@ class ReadBinaryInputBasicPresentValue : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "BinaryInputBasic.PresentValue response", value); + OnGeneralAttributeEventResponse(context, "BinaryInputBasic.PresentValue response", value); } }; @@ -7421,7 +8531,7 @@ class WriteBinaryInputBasicPresentValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7449,7 +8559,7 @@ class ReportBinaryInputBasicPresentValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7488,7 +8598,7 @@ class ReadBinaryInputBasicStatusFlags : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7498,7 +8608,7 @@ class ReadBinaryInputBasicStatusFlags : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "BinaryInputBasic.StatusFlags response", value); + OnGeneralAttributeEventResponse(context, "BinaryInputBasic.StatusFlags response", value); } }; @@ -7518,7 +8628,7 @@ class ReportBinaryInputBasicStatusFlags : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7557,7 +8667,7 @@ class ReadBinaryInputBasicAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7567,7 +8677,7 @@ class ReadBinaryInputBasicAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BinaryInputBasic.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "BinaryInputBasic.AttributeList response", value); } }; @@ -7587,7 +8697,7 @@ class ReadBinaryInputBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7597,7 +8707,7 @@ class ReadBinaryInputBasicClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "BinaryInputBasic.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "BinaryInputBasic.ClusterRevision response", value); } }; @@ -7617,7 +8727,7 @@ class ReportBinaryInputBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x000F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x000F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BinaryInputBasicCluster cluster; cluster.Associate(device, endpointId); @@ -7722,7 +8832,7 @@ class ReadBindingAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BindingCluster cluster; cluster.Associate(device, endpointId); @@ -7732,7 +8842,7 @@ class ReadBindingAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Binding.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Binding.AttributeList response", value); } }; @@ -7752,7 +8862,7 @@ class ReadBindingClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BindingCluster cluster; cluster.Associate(device, endpointId); @@ -7762,7 +8872,7 @@ class ReadBindingClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Binding.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Binding.ClusterRevision response", value); } }; @@ -7782,7 +8892,7 @@ class ReportBindingClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BindingCluster cluster; cluster.Associate(device, endpointId); @@ -7816,6 +8926,36 @@ class ReportBindingClusterRevision : public ModelCommand | * ClusterRevision | 0xFFFD | \*----------------------------------------------------------------------------*/ +/* + * Event StateChange + */ +class ReadBooleanStateStateChange : public ModelCommand +{ +public: + ReadBooleanStateStateChange() : ModelCommand("read-event") + { + AddArgument("event-name", "state-change"); + ModelCommand::AddArguments(); + } + + ~ReadBooleanStateStateChange() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0045) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BooleanStateCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::BooleanState::Events::StateChange::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "BooleanState.StateChange response", value); + } +}; + /* * Attribute StateValue */ @@ -7832,7 +8972,7 @@ class ReadBooleanStateStateValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0045) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0045) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); @@ -7842,7 +8982,7 @@ class ReadBooleanStateStateValue : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "BooleanState.StateValue response", value); + OnGeneralAttributeEventResponse(context, "BooleanState.StateValue response", value); } }; @@ -7862,7 +9002,7 @@ class ReportBooleanStateStateValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0045) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0045) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); @@ -7901,7 +9041,7 @@ class ReadBooleanStateAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0045) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0045) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); @@ -7911,7 +9051,7 @@ class ReadBooleanStateAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BooleanState.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "BooleanState.AttributeList response", value); } }; @@ -7931,7 +9071,7 @@ class ReadBooleanStateClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0045) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0045) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); @@ -7941,7 +9081,7 @@ class ReadBooleanStateClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "BooleanState.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "BooleanState.ClusterRevision response", value); } }; @@ -7961,7 +9101,7 @@ class ReportBooleanStateClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0045) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0045) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BooleanStateCluster cluster; cluster.Associate(device, endpointId); @@ -8314,6 +9454,65 @@ class BridgedActionsStopAction : public ModelCommand chip::app::Clusters::BridgedActions::Commands::StopAction::Type mRequest; }; +/* + * Event StateChanged + */ +class ReadBridgedActionsStateChanged : public ModelCommand +{ +public: + ReadBridgedActionsStateChanged() : ModelCommand("read-event") + { + AddArgument("event-name", "state-changed"); + ModelCommand::AddArguments(); + } + + ~ReadBridgedActionsStateChanged() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BridgedActionsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::BridgedActions::Events::StateChanged::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "BridgedActions.StateChanged response", value); + } +}; +/* + * Event ActionFailed + */ +class ReadBridgedActionsActionFailed : public ModelCommand +{ +public: + ReadBridgedActionsActionFailed() : ModelCommand("read-event") + { + AddArgument("event-name", "action-failed"); + ModelCommand::AddArguments(); + } + + ~ReadBridgedActionsActionFailed() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::BridgedActionsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::BridgedActions::Events::ActionFailed::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "BridgedActions.ActionFailed response", value); + } +}; + /* * Attribute ActionList */ @@ -8330,7 +9529,7 @@ class ReadBridgedActionsActionList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8343,7 +9542,7 @@ class ReadBridgedActionsActionList : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BridgedActions.ActionList response", value); + OnGeneralAttributeEventResponse(context, "BridgedActions.ActionList response", value); } }; @@ -8363,7 +9562,7 @@ class ReportBridgedActionsActionList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8408,7 +9607,7 @@ class ReadBridgedActionsEndpointList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8421,7 +9620,7 @@ class ReadBridgedActionsEndpointList : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BridgedActions.EndpointList response", value); + OnGeneralAttributeEventResponse(context, "BridgedActions.EndpointList response", value); } }; @@ -8441,7 +9640,7 @@ class ReportBridgedActionsEndpointList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8486,7 +9685,7 @@ class ReadBridgedActionsSetupUrl : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8496,7 +9695,7 @@ class ReadBridgedActionsSetupUrl : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "BridgedActions.SetupUrl response", value); + OnGeneralAttributeEventResponse(context, "BridgedActions.SetupUrl response", value); } }; @@ -8516,7 +9715,7 @@ class ReportBridgedActionsSetupUrl : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8555,7 +9754,7 @@ class ReadBridgedActionsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8565,7 +9764,7 @@ class ReadBridgedActionsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BridgedActions.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "BridgedActions.AttributeList response", value); } }; @@ -8585,7 +9784,7 @@ class ReadBridgedActionsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8595,7 +9794,7 @@ class ReadBridgedActionsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "BridgedActions.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "BridgedActions.ClusterRevision response", value); } }; @@ -8615,7 +9814,7 @@ class ReportBridgedActionsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0025) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0025) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedActionsCluster cluster; cluster.Associate(device, endpointId); @@ -8664,7 +9863,7 @@ class ReadBridgedDeviceBasicAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0039) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0039) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedDeviceBasicCluster cluster; cluster.Associate(device, endpointId); @@ -8674,7 +9873,7 @@ class ReadBridgedDeviceBasicAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "BridgedDeviceBasic.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "BridgedDeviceBasic.AttributeList response", value); } }; @@ -8694,7 +9893,7 @@ class ReadBridgedDeviceBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0039) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0039) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedDeviceBasicCluster cluster; cluster.Associate(device, endpointId); @@ -8704,7 +9903,7 @@ class ReadBridgedDeviceBasicClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "BridgedDeviceBasic.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "BridgedDeviceBasic.ClusterRevision response", value); } }; @@ -8724,7 +9923,7 @@ class ReportBridgedDeviceBasicClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0039) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0039) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::BridgedDeviceBasicCluster cluster; cluster.Associate(device, endpointId); @@ -8850,7 +10049,7 @@ class ReadChannelChannelList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0504) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0504) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ChannelCluster cluster; cluster.Associate(device, endpointId); @@ -8862,7 +10061,7 @@ class ReadChannelChannelList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Channel.ChannelList response", value); + OnGeneralAttributeEventResponse(context, "Channel.ChannelList response", value); } }; @@ -8882,7 +10081,7 @@ class ReportChannelChannelList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0504) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0504) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ChannelCluster cluster; cluster.Associate(device, endpointId); @@ -8926,7 +10125,7 @@ class ReadChannelAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0504) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0504) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ChannelCluster cluster; cluster.Associate(device, endpointId); @@ -8936,7 +10135,7 @@ class ReadChannelAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Channel.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Channel.AttributeList response", value); } }; @@ -8956,7 +10155,7 @@ class ReadChannelClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0504) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0504) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ChannelCluster cluster; cluster.Associate(device, endpointId); @@ -8966,7 +10165,7 @@ class ReadChannelClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Channel.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Channel.ClusterRevision response", value); } }; @@ -8986,7 +10185,7 @@ class ReportChannelClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0504) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0504) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ChannelCluster cluster; cluster.Associate(device, endpointId); @@ -9648,7 +10847,7 @@ class ReadColorControlCurrentHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9658,7 +10857,7 @@ class ReadColorControlCurrentHue : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.CurrentHue response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.CurrentHue response", value); } }; @@ -9678,7 +10877,7 @@ class ReportColorControlCurrentHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9717,7 +10916,7 @@ class ReadColorControlCurrentSaturation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9727,7 +10926,7 @@ class ReadColorControlCurrentSaturation : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.CurrentSaturation response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.CurrentSaturation response", value); } }; @@ -9747,7 +10946,7 @@ class ReportColorControlCurrentSaturation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9786,7 +10985,7 @@ class ReadColorControlRemainingTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9796,7 +10995,7 @@ class ReadColorControlRemainingTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.RemainingTime response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.RemainingTime response", value); } }; @@ -9816,7 +11015,7 @@ class ReportColorControlRemainingTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9855,7 +11054,7 @@ class ReadColorControlCurrentX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9865,7 +11064,7 @@ class ReadColorControlCurrentX : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.CurrentX response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.CurrentX response", value); } }; @@ -9885,7 +11084,7 @@ class ReportColorControlCurrentX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9924,7 +11123,7 @@ class ReadColorControlCurrentY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9934,7 +11133,7 @@ class ReadColorControlCurrentY : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.CurrentY response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.CurrentY response", value); } }; @@ -9954,7 +11153,7 @@ class ReportColorControlCurrentY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -9993,7 +11192,7 @@ class ReadColorControlDriftCompensation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10003,7 +11202,7 @@ class ReadColorControlDriftCompensation : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.DriftCompensation response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.DriftCompensation response", value); } }; @@ -10023,7 +11222,7 @@ class ReportColorControlDriftCompensation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10062,7 +11261,7 @@ class ReadColorControlCompensationText : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10072,7 +11271,7 @@ class ReadColorControlCompensationText : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "ColorControl.CompensationText response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.CompensationText response", value); } }; @@ -10092,7 +11291,7 @@ class ReportColorControlCompensationText : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10131,7 +11330,7 @@ class ReadColorControlColorTemperature : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10141,7 +11340,7 @@ class ReadColorControlColorTemperature : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorTemperature response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorTemperature response", value); } }; @@ -10161,7 +11360,7 @@ class ReportColorControlColorTemperature : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10200,7 +11399,7 @@ class ReadColorControlColorMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10210,7 +11409,7 @@ class ReadColorControlColorMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorMode response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorMode response", value); } }; @@ -10230,7 +11429,7 @@ class ReportColorControlColorMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10269,7 +11468,7 @@ class ReadColorControlColorControlOptions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10279,7 +11478,7 @@ class ReadColorControlColorControlOptions : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorControlOptions response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorControlOptions response", value); } }; @@ -10297,7 +11496,7 @@ class WriteColorControlColorControlOptions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10325,7 +11524,7 @@ class ReportColorControlColorControlOptions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10364,7 +11563,7 @@ class ReadColorControlNumberOfPrimaries : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10374,7 +11573,7 @@ class ReadColorControlNumberOfPrimaries : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.NumberOfPrimaries response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.NumberOfPrimaries response", value); } }; @@ -10394,7 +11593,7 @@ class ReportColorControlNumberOfPrimaries : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10433,7 +11632,7 @@ class ReadColorControlPrimary1X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10443,7 +11642,7 @@ class ReadColorControlPrimary1X : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary1X response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary1X response", value); } }; @@ -10463,7 +11662,7 @@ class ReportColorControlPrimary1X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10502,7 +11701,7 @@ class ReadColorControlPrimary1Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10512,7 +11711,7 @@ class ReadColorControlPrimary1Y : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary1Y response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary1Y response", value); } }; @@ -10532,7 +11731,7 @@ class ReportColorControlPrimary1Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10571,7 +11770,7 @@ class ReadColorControlPrimary1Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10581,7 +11780,7 @@ class ReadColorControlPrimary1Intensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary1Intensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary1Intensity response", value); } }; @@ -10601,7 +11800,7 @@ class ReportColorControlPrimary1Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10640,7 +11839,7 @@ class ReadColorControlPrimary2X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10650,7 +11849,7 @@ class ReadColorControlPrimary2X : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary2X response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary2X response", value); } }; @@ -10670,7 +11869,7 @@ class ReportColorControlPrimary2X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10709,7 +11908,7 @@ class ReadColorControlPrimary2Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10719,7 +11918,7 @@ class ReadColorControlPrimary2Y : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary2Y response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary2Y response", value); } }; @@ -10739,7 +11938,7 @@ class ReportColorControlPrimary2Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10778,7 +11977,7 @@ class ReadColorControlPrimary2Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10788,7 +11987,7 @@ class ReadColorControlPrimary2Intensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary2Intensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary2Intensity response", value); } }; @@ -10808,7 +12007,7 @@ class ReportColorControlPrimary2Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10847,7 +12046,7 @@ class ReadColorControlPrimary3X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10857,7 +12056,7 @@ class ReadColorControlPrimary3X : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary3X response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary3X response", value); } }; @@ -10877,7 +12076,7 @@ class ReportColorControlPrimary3X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10916,7 +12115,7 @@ class ReadColorControlPrimary3Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10926,7 +12125,7 @@ class ReadColorControlPrimary3Y : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary3Y response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary3Y response", value); } }; @@ -10946,7 +12145,7 @@ class ReportColorControlPrimary3Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10985,7 +12184,7 @@ class ReadColorControlPrimary3Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -10995,7 +12194,7 @@ class ReadColorControlPrimary3Intensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary3Intensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary3Intensity response", value); } }; @@ -11015,7 +12214,7 @@ class ReportColorControlPrimary3Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11054,7 +12253,7 @@ class ReadColorControlPrimary4X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11064,7 +12263,7 @@ class ReadColorControlPrimary4X : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary4X response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary4X response", value); } }; @@ -11084,7 +12283,7 @@ class ReportColorControlPrimary4X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11123,7 +12322,7 @@ class ReadColorControlPrimary4Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11133,7 +12332,7 @@ class ReadColorControlPrimary4Y : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary4Y response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary4Y response", value); } }; @@ -11153,7 +12352,7 @@ class ReportColorControlPrimary4Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11192,7 +12391,7 @@ class ReadColorControlPrimary4Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11202,7 +12401,7 @@ class ReadColorControlPrimary4Intensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary4Intensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary4Intensity response", value); } }; @@ -11222,7 +12421,7 @@ class ReportColorControlPrimary4Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11261,7 +12460,7 @@ class ReadColorControlPrimary5X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11271,7 +12470,7 @@ class ReadColorControlPrimary5X : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary5X response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary5X response", value); } }; @@ -11291,7 +12490,7 @@ class ReportColorControlPrimary5X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11330,7 +12529,7 @@ class ReadColorControlPrimary5Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11340,7 +12539,7 @@ class ReadColorControlPrimary5Y : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary5Y response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary5Y response", value); } }; @@ -11360,7 +12559,7 @@ class ReportColorControlPrimary5Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11399,7 +12598,7 @@ class ReadColorControlPrimary5Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11409,7 +12608,7 @@ class ReadColorControlPrimary5Intensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary5Intensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary5Intensity response", value); } }; @@ -11429,7 +12628,7 @@ class ReportColorControlPrimary5Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11468,7 +12667,7 @@ class ReadColorControlPrimary6X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11478,7 +12677,7 @@ class ReadColorControlPrimary6X : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary6X response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary6X response", value); } }; @@ -11498,7 +12697,7 @@ class ReportColorControlPrimary6X : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11537,7 +12736,7 @@ class ReadColorControlPrimary6Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11547,7 +12746,7 @@ class ReadColorControlPrimary6Y : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary6Y response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary6Y response", value); } }; @@ -11567,7 +12766,7 @@ class ReportColorControlPrimary6Y : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11606,7 +12805,7 @@ class ReadColorControlPrimary6Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11616,7 +12815,7 @@ class ReadColorControlPrimary6Intensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.Primary6Intensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.Primary6Intensity response", value); } }; @@ -11636,7 +12835,7 @@ class ReportColorControlPrimary6Intensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11675,7 +12874,7 @@ class ReadColorControlWhitePointX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11685,7 +12884,7 @@ class ReadColorControlWhitePointX : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.WhitePointX response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.WhitePointX response", value); } }; @@ -11703,7 +12902,7 @@ class WriteColorControlWhitePointX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11731,7 +12930,7 @@ class ReportColorControlWhitePointX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11770,7 +12969,7 @@ class ReadColorControlWhitePointY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11780,7 +12979,7 @@ class ReadColorControlWhitePointY : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.WhitePointY response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.WhitePointY response", value); } }; @@ -11798,7 +12997,7 @@ class WriteColorControlWhitePointY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11826,7 +13025,7 @@ class ReportColorControlWhitePointY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11865,7 +13064,7 @@ class ReadColorControlColorPointRX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11875,7 +13074,7 @@ class ReadColorControlColorPointRX : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointRX response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointRX response", value); } }; @@ -11893,7 +13092,7 @@ class WriteColorControlColorPointRX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11921,7 +13120,7 @@ class ReportColorControlColorPointRX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11960,7 +13159,7 @@ class ReadColorControlColorPointRY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -11970,7 +13169,7 @@ class ReadColorControlColorPointRY : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointRY response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointRY response", value); } }; @@ -11988,7 +13187,7 @@ class WriteColorControlColorPointRY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12016,7 +13215,7 @@ class ReportColorControlColorPointRY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12055,7 +13254,7 @@ class ReadColorControlColorPointRIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12065,7 +13264,7 @@ class ReadColorControlColorPointRIntensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointRIntensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointRIntensity response", value); } }; @@ -12083,7 +13282,7 @@ class WriteColorControlColorPointRIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12111,7 +13310,7 @@ class ReportColorControlColorPointRIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12150,7 +13349,7 @@ class ReadColorControlColorPointGX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12160,7 +13359,7 @@ class ReadColorControlColorPointGX : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointGX response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointGX response", value); } }; @@ -12178,7 +13377,7 @@ class WriteColorControlColorPointGX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12206,7 +13405,7 @@ class ReportColorControlColorPointGX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12245,7 +13444,7 @@ class ReadColorControlColorPointGY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12255,7 +13454,7 @@ class ReadColorControlColorPointGY : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointGY response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointGY response", value); } }; @@ -12273,7 +13472,7 @@ class WriteColorControlColorPointGY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12301,7 +13500,7 @@ class ReportColorControlColorPointGY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12340,7 +13539,7 @@ class ReadColorControlColorPointGIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12350,7 +13549,7 @@ class ReadColorControlColorPointGIntensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointGIntensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointGIntensity response", value); } }; @@ -12368,7 +13567,7 @@ class WriteColorControlColorPointGIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12396,7 +13595,7 @@ class ReportColorControlColorPointGIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12435,7 +13634,7 @@ class ReadColorControlColorPointBX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12445,7 +13644,7 @@ class ReadColorControlColorPointBX : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointBX response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointBX response", value); } }; @@ -12463,7 +13662,7 @@ class WriteColorControlColorPointBX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12491,7 +13690,7 @@ class ReportColorControlColorPointBX : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12530,7 +13729,7 @@ class ReadColorControlColorPointBY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12540,7 +13739,7 @@ class ReadColorControlColorPointBY : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointBY response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointBY response", value); } }; @@ -12558,7 +13757,7 @@ class WriteColorControlColorPointBY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12586,7 +13785,7 @@ class ReportColorControlColorPointBY : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12625,7 +13824,7 @@ class ReadColorControlColorPointBIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12635,7 +13834,7 @@ class ReadColorControlColorPointBIntensity : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorPointBIntensity response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorPointBIntensity response", value); } }; @@ -12653,7 +13852,7 @@ class WriteColorControlColorPointBIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12681,7 +13880,7 @@ class ReportColorControlColorPointBIntensity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12720,7 +13919,7 @@ class ReadColorControlEnhancedCurrentHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12730,7 +13929,7 @@ class ReadColorControlEnhancedCurrentHue : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.EnhancedCurrentHue response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.EnhancedCurrentHue response", value); } }; @@ -12750,7 +13949,7 @@ class ReportColorControlEnhancedCurrentHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12789,7 +13988,7 @@ class ReadColorControlEnhancedColorMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12799,7 +13998,7 @@ class ReadColorControlEnhancedColorMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.EnhancedColorMode response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.EnhancedColorMode response", value); } }; @@ -12819,7 +14018,7 @@ class ReportColorControlEnhancedColorMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12858,7 +14057,7 @@ class ReadColorControlColorLoopActive : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12868,7 +14067,7 @@ class ReadColorControlColorLoopActive : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorLoopActive response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorLoopActive response", value); } }; @@ -12888,7 +14087,7 @@ class ReportColorControlColorLoopActive : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12927,7 +14126,7 @@ class ReadColorControlColorLoopDirection : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12937,7 +14136,7 @@ class ReadColorControlColorLoopDirection : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorLoopDirection response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorLoopDirection response", value); } }; @@ -12957,7 +14156,7 @@ class ReportColorControlColorLoopDirection : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -12996,7 +14195,7 @@ class ReadColorControlColorLoopTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13006,7 +14205,7 @@ class ReadColorControlColorLoopTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorLoopTime response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorLoopTime response", value); } }; @@ -13026,7 +14225,7 @@ class ReportColorControlColorLoopTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13065,7 +14264,7 @@ class ReadColorControlColorLoopStartEnhancedHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13075,7 +14274,7 @@ class ReadColorControlColorLoopStartEnhancedHue : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorLoopStartEnhancedHue response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorLoopStartEnhancedHue response", value); } }; @@ -13095,7 +14294,7 @@ class ReportColorControlColorLoopStartEnhancedHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13137,7 +14336,7 @@ class ReadColorControlColorLoopStoredEnhancedHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13147,7 +14346,7 @@ class ReadColorControlColorLoopStoredEnhancedHue : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorLoopStoredEnhancedHue response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorLoopStoredEnhancedHue response", value); } }; @@ -13167,7 +14366,7 @@ class ReportColorControlColorLoopStoredEnhancedHue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13209,7 +14408,7 @@ class ReadColorControlColorCapabilities : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13219,7 +14418,7 @@ class ReadColorControlColorCapabilities : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorCapabilities response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorCapabilities response", value); } }; @@ -13239,7 +14438,7 @@ class ReportColorControlColorCapabilities : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13278,7 +14477,7 @@ class ReadColorControlColorTempPhysicalMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13288,7 +14487,7 @@ class ReadColorControlColorTempPhysicalMin : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorTempPhysicalMin response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorTempPhysicalMin response", value); } }; @@ -13308,7 +14507,7 @@ class ReportColorControlColorTempPhysicalMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13347,7 +14546,7 @@ class ReadColorControlColorTempPhysicalMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13357,7 +14556,7 @@ class ReadColorControlColorTempPhysicalMax : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ColorTempPhysicalMax response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ColorTempPhysicalMax response", value); } }; @@ -13377,7 +14576,7 @@ class ReportColorControlColorTempPhysicalMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13416,7 +14615,7 @@ class ReadColorControlCoupleColorTempToLevelMinMireds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13426,7 +14625,7 @@ class ReadColorControlCoupleColorTempToLevelMinMireds : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.CoupleColorTempToLevelMinMireds response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.CoupleColorTempToLevelMinMireds response", value); } }; @@ -13446,7 +14645,7 @@ class ReportColorControlCoupleColorTempToLevelMinMireds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13488,7 +14687,7 @@ class ReadColorControlStartUpColorTemperatureMireds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13498,7 +14697,7 @@ class ReadColorControlStartUpColorTemperatureMireds : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.StartUpColorTemperatureMireds response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.StartUpColorTemperatureMireds response", value); } }; @@ -13516,7 +14715,7 @@ class WriteColorControlStartUpColorTemperatureMireds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13544,7 +14743,7 @@ class ReportColorControlStartUpColorTemperatureMireds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13586,7 +14785,7 @@ class ReadColorControlAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13596,7 +14795,7 @@ class ReadColorControlAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ColorControl.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.AttributeList response", value); } }; @@ -13616,7 +14815,7 @@ class ReadColorControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13626,7 +14825,7 @@ class ReadColorControlClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ColorControl.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ColorControl.ClusterRevision response", value); } }; @@ -13646,7 +14845,7 @@ class ReportColorControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0300) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0300) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ColorControlCluster cluster; cluster.Associate(device, endpointId); @@ -13751,7 +14950,7 @@ class ReadContentLauncherAcceptHeaderList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13761,7 +14960,7 @@ class ReadContentLauncherAcceptHeaderList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ContentLauncher.AcceptHeaderList response", value); + OnGeneralAttributeEventResponse(context, "ContentLauncher.AcceptHeaderList response", value); } }; @@ -13781,7 +14980,7 @@ class ReportContentLauncherAcceptHeaderList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13823,7 +15022,7 @@ class ReadContentLauncherSupportedStreamingProtocols : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13833,7 +15032,7 @@ class ReadContentLauncherSupportedStreamingProtocols : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ContentLauncher.SupportedStreamingProtocols response", value); + OnGeneralAttributeEventResponse(context, "ContentLauncher.SupportedStreamingProtocols response", value); } }; @@ -13851,7 +15050,7 @@ class WriteContentLauncherSupportedStreamingProtocols : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13879,7 +15078,7 @@ class ReportContentLauncherSupportedStreamingProtocols : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13921,7 +15120,7 @@ class ReadContentLauncherAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13931,7 +15130,7 @@ class ReadContentLauncherAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ContentLauncher.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ContentLauncher.AttributeList response", value); } }; @@ -13951,7 +15150,7 @@ class ReadContentLauncherClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -13961,7 +15160,7 @@ class ReadContentLauncherClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ContentLauncher.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ContentLauncher.ClusterRevision response", value); } }; @@ -13981,7 +15180,7 @@ class ReportContentLauncherClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ContentLauncherCluster cluster; cluster.Associate(device, endpointId); @@ -14034,7 +15233,7 @@ class ReadDescriptorDeviceList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14046,7 +15245,7 @@ class ReadDescriptorDeviceList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Descriptor.DeviceList response", value); + OnGeneralAttributeEventResponse(context, "Descriptor.DeviceList response", value); } }; @@ -14066,7 +15265,7 @@ class ReportDescriptorDeviceList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14110,7 +15309,7 @@ class ReadDescriptorServerList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14120,7 +15319,7 @@ class ReadDescriptorServerList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Descriptor.ServerList response", value); + OnGeneralAttributeEventResponse(context, "Descriptor.ServerList response", value); } }; @@ -14140,7 +15339,7 @@ class ReportDescriptorServerList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14182,7 +15381,7 @@ class ReadDescriptorClientList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14192,7 +15391,7 @@ class ReadDescriptorClientList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Descriptor.ClientList response", value); + OnGeneralAttributeEventResponse(context, "Descriptor.ClientList response", value); } }; @@ -14212,7 +15411,7 @@ class ReportDescriptorClientList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14254,7 +15453,7 @@ class ReadDescriptorPartsList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14264,7 +15463,7 @@ class ReadDescriptorPartsList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Descriptor.PartsList response", value); + OnGeneralAttributeEventResponse(context, "Descriptor.PartsList response", value); } }; @@ -14284,7 +15483,7 @@ class ReportDescriptorPartsList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14326,7 +15525,7 @@ class ReadDescriptorAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14336,7 +15535,7 @@ class ReadDescriptorAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Descriptor.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Descriptor.AttributeList response", value); } }; @@ -14356,7 +15555,7 @@ class ReadDescriptorClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14366,7 +15565,7 @@ class ReadDescriptorClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Descriptor.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Descriptor.ClusterRevision response", value); } }; @@ -14386,7 +15585,7 @@ class ReportDescriptorClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x001D) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x001D) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DescriptorCluster cluster; cluster.Associate(device, endpointId); @@ -14463,7 +15662,7 @@ class ReadDiagnosticLogsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0032) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0032) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DiagnosticLogsCluster cluster; cluster.Associate(device, endpointId); @@ -14473,7 +15672,7 @@ class ReadDiagnosticLogsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "DiagnosticLogs.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "DiagnosticLogs.AttributeList response", value); } }; @@ -14719,6 +15918,152 @@ class DoorLockUnlockDoor : public ModelCommand chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type mRequest; }; +/* + * Event DoorLockAlarm + */ +class ReadDoorLockDoorLockAlarm : public ModelCommand +{ +public: + ReadDoorLockDoorLockAlarm() : ModelCommand("read-event") + { + AddArgument("event-name", "door-lock-alarm"); + ModelCommand::AddArguments(); + } + + ~ReadDoorLockDoorLockAlarm() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::DoorLockCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::DoorLock::Events::DoorLockAlarm::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "DoorLock.DoorLockAlarm response", value); + } +}; +/* + * Event DoorStateChange + */ +class ReadDoorLockDoorStateChange : public ModelCommand +{ +public: + ReadDoorLockDoorStateChange() : ModelCommand("read-event") + { + AddArgument("event-name", "door-state-change"); + ModelCommand::AddArguments(); + } + + ~ReadDoorLockDoorStateChange() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::DoorLockCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::DoorLock::Events::DoorStateChange::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "DoorLock.DoorStateChange response", value); + } +}; +/* + * Event LockOperation + */ +class ReadDoorLockLockOperation : public ModelCommand +{ +public: + ReadDoorLockLockOperation() : ModelCommand("read-event") + { + AddArgument("event-name", "lock-operation"); + ModelCommand::AddArguments(); + } + + ~ReadDoorLockLockOperation() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::DoorLockCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::DoorLock::Events::LockOperation::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "DoorLock.LockOperation response", value); + } +}; +/* + * Event LockOperationError + */ +class ReadDoorLockLockOperationError : public ModelCommand +{ +public: + ReadDoorLockLockOperationError() : ModelCommand("read-event") + { + AddArgument("event-name", "lock-operation-error"); + ModelCommand::AddArguments(); + } + + ~ReadDoorLockLockOperationError() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::DoorLockCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::DoorLock::Events::LockOperationError::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "DoorLock.LockOperationError response", value); + } +}; +/* + * Event LockUserChange + */ +class ReadDoorLockLockUserChange : public ModelCommand +{ +public: + ReadDoorLockLockUserChange() : ModelCommand("read-event") + { + AddArgument("event-name", "lock-user-change"); + ModelCommand::AddArguments(); + } + + ~ReadDoorLockLockUserChange() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::DoorLockCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::DoorLock::Events::LockUserChange::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "DoorLock.LockUserChange response", value); + } +}; + /* * Attribute LockState */ @@ -14735,7 +16080,7 @@ class ReadDoorLockLockState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14746,7 +16091,7 @@ class ReadDoorLockLockState : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "DoorLock.LockState response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.LockState response", value); } }; @@ -14766,7 +16111,7 @@ class ReportDoorLockLockState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14809,7 +16154,7 @@ class ReadDoorLockLockType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14819,7 +16164,7 @@ class ReadDoorLockLockType : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::DoorLock::DlLockType value) { - OnGeneralAttributeResponse(context, "DoorLock.LockType response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.LockType response", value); } }; @@ -14839,7 +16184,7 @@ class ReportDoorLockLockType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14881,7 +16226,7 @@ class ReadDoorLockActuatorEnabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14891,7 +16236,7 @@ class ReadDoorLockActuatorEnabled : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "DoorLock.ActuatorEnabled response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.ActuatorEnabled response", value); } }; @@ -14911,7 +16256,7 @@ class ReportDoorLockActuatorEnabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14950,7 +16295,7 @@ class ReadDoorLockDoorState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -14961,7 +16306,7 @@ class ReadDoorLockDoorState : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "DoorLock.DoorState response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.DoorState response", value); } }; @@ -14981,7 +16326,7 @@ class ReportDoorLockDoorState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15024,7 +16369,7 @@ class ReadDoorLockNumberOfTotalUsersSupported : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15034,7 +16379,7 @@ class ReadDoorLockNumberOfTotalUsersSupported : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "DoorLock.NumberOfTotalUsersSupported response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.NumberOfTotalUsersSupported response", value); } }; @@ -15054,7 +16399,7 @@ class ReadDoorLockNumberOfPINUsersSupported : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15064,7 +16409,7 @@ class ReadDoorLockNumberOfPINUsersSupported : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "DoorLock.NumberOfPINUsersSupported response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.NumberOfPINUsersSupported response", value); } }; @@ -15084,7 +16429,7 @@ class ReadDoorLockMaxPINCodeLength : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15094,7 +16439,7 @@ class ReadDoorLockMaxPINCodeLength : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "DoorLock.MaxPINCodeLength response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.MaxPINCodeLength response", value); } }; @@ -15114,7 +16459,7 @@ class ReadDoorLockMinPINCodeLength : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15124,7 +16469,7 @@ class ReadDoorLockMinPINCodeLength : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "DoorLock.MinPINCodeLength response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.MinPINCodeLength response", value); } }; @@ -15144,7 +16489,7 @@ class ReadDoorLockLanguage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15154,7 +16499,7 @@ class ReadDoorLockLanguage : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "DoorLock.Language response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.Language response", value); } }; @@ -15172,7 +16517,7 @@ class WriteDoorLockLanguage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15200,7 +16545,7 @@ class ReportDoorLockLanguage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15239,7 +16584,7 @@ class ReadDoorLockAutoRelockTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15249,7 +16594,7 @@ class ReadDoorLockAutoRelockTime : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "DoorLock.AutoRelockTime response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.AutoRelockTime response", value); } }; @@ -15267,7 +16612,7 @@ class WriteDoorLockAutoRelockTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15295,7 +16640,7 @@ class ReportDoorLockAutoRelockTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15334,7 +16679,7 @@ class ReadDoorLockSoundVolume : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15344,7 +16689,7 @@ class ReadDoorLockSoundVolume : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "DoorLock.SoundVolume response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.SoundVolume response", value); } }; @@ -15362,7 +16707,7 @@ class WriteDoorLockSoundVolume : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15390,7 +16735,7 @@ class ReportDoorLockSoundVolume : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15429,7 +16774,7 @@ class ReadDoorLockOperatingMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15439,7 +16784,7 @@ class ReadDoorLockOperatingMode : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::DoorLock::DlOperatingMode value) { - OnGeneralAttributeResponse(context, "DoorLock.OperatingMode response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.OperatingMode response", value); } }; @@ -15457,7 +16802,7 @@ class WriteDoorLockOperatingMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15485,7 +16830,7 @@ class ReportDoorLockOperatingMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15527,7 +16872,7 @@ class ReadDoorLockSupportedOperatingModes : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15537,7 +16882,7 @@ class ReadDoorLockSupportedOperatingModes : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "DoorLock.SupportedOperatingModes response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.SupportedOperatingModes response", value); } }; @@ -15557,7 +16902,7 @@ class ReadDoorLockEnableOneTouchLocking : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15567,7 +16912,7 @@ class ReadDoorLockEnableOneTouchLocking : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "DoorLock.EnableOneTouchLocking response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.EnableOneTouchLocking response", value); } }; @@ -15585,7 +16930,7 @@ class WriteDoorLockEnableOneTouchLocking : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15613,7 +16958,7 @@ class ReportDoorLockEnableOneTouchLocking : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15652,7 +16997,7 @@ class ReadDoorLockEnablePrivacyModeButton : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15662,7 +17007,7 @@ class ReadDoorLockEnablePrivacyModeButton : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "DoorLock.EnablePrivacyModeButton response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.EnablePrivacyModeButton response", value); } }; @@ -15680,7 +17025,7 @@ class WriteDoorLockEnablePrivacyModeButton : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15708,7 +17053,7 @@ class ReportDoorLockEnablePrivacyModeButton : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15747,7 +17092,7 @@ class ReadDoorLockWrongCodeEntryLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15757,7 +17102,7 @@ class ReadDoorLockWrongCodeEntryLimit : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "DoorLock.WrongCodeEntryLimit response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.WrongCodeEntryLimit response", value); } }; @@ -15775,7 +17120,7 @@ class WriteDoorLockWrongCodeEntryLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15803,7 +17148,7 @@ class ReportDoorLockWrongCodeEntryLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15842,7 +17187,7 @@ class ReadDoorLockAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15852,7 +17197,7 @@ class ReadDoorLockAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "DoorLock.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.AttributeList response", value); } }; @@ -15872,7 +17217,7 @@ class ReadDoorLockClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15882,7 +17227,7 @@ class ReadDoorLockClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "DoorLock.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "DoorLock.ClusterRevision response", value); } }; @@ -15902,7 +17247,7 @@ class ReportDoorLockClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0101) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0101) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::DoorLockCluster cluster; cluster.Associate(device, endpointId); @@ -15962,7 +17307,7 @@ class ReadElectricalMeasurementMeasurementType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -15972,7 +17317,7 @@ class ReadElectricalMeasurementMeasurementType : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.MeasurementType response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.MeasurementType response", value); } }; @@ -15992,7 +17337,7 @@ class ReportElectricalMeasurementMeasurementType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16034,7 +17379,7 @@ class ReadElectricalMeasurementTotalActivePower : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16044,7 +17389,7 @@ class ReadElectricalMeasurementTotalActivePower : public ModelCommand static void OnAttributeResponse(void * context, int32_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.TotalActivePower response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.TotalActivePower response", value); } }; @@ -16064,7 +17409,7 @@ class ReportElectricalMeasurementTotalActivePower : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16106,7 +17451,7 @@ class ReadElectricalMeasurementRmsVoltage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16116,7 +17461,7 @@ class ReadElectricalMeasurementRmsVoltage : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsVoltage response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.RmsVoltage response", value); } }; @@ -16136,7 +17481,7 @@ class ReportElectricalMeasurementRmsVoltage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16175,7 +17520,7 @@ class ReadElectricalMeasurementRmsVoltageMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16185,7 +17530,7 @@ class ReadElectricalMeasurementRmsVoltageMin : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsVoltageMin response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.RmsVoltageMin response", value); } }; @@ -16205,7 +17550,7 @@ class ReportElectricalMeasurementRmsVoltageMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16244,7 +17589,7 @@ class ReadElectricalMeasurementRmsVoltageMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16254,7 +17599,7 @@ class ReadElectricalMeasurementRmsVoltageMax : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsVoltageMax response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.RmsVoltageMax response", value); } }; @@ -16274,7 +17619,7 @@ class ReportElectricalMeasurementRmsVoltageMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16313,7 +17658,7 @@ class ReadElectricalMeasurementRmsCurrent : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16323,7 +17668,7 @@ class ReadElectricalMeasurementRmsCurrent : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsCurrent response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.RmsCurrent response", value); } }; @@ -16343,7 +17688,7 @@ class ReportElectricalMeasurementRmsCurrent : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16382,7 +17727,7 @@ class ReadElectricalMeasurementRmsCurrentMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16392,7 +17737,7 @@ class ReadElectricalMeasurementRmsCurrentMin : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsCurrentMin response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.RmsCurrentMin response", value); } }; @@ -16412,7 +17757,7 @@ class ReportElectricalMeasurementRmsCurrentMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16451,7 +17796,7 @@ class ReadElectricalMeasurementRmsCurrentMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16461,7 +17806,7 @@ class ReadElectricalMeasurementRmsCurrentMax : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.RmsCurrentMax response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.RmsCurrentMax response", value); } }; @@ -16481,7 +17826,7 @@ class ReportElectricalMeasurementRmsCurrentMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16520,7 +17865,7 @@ class ReadElectricalMeasurementActivePower : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16530,7 +17875,7 @@ class ReadElectricalMeasurementActivePower : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.ActivePower response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.ActivePower response", value); } }; @@ -16550,7 +17895,7 @@ class ReportElectricalMeasurementActivePower : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16589,7 +17934,7 @@ class ReadElectricalMeasurementActivePowerMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16599,7 +17944,7 @@ class ReadElectricalMeasurementActivePowerMin : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.ActivePowerMin response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.ActivePowerMin response", value); } }; @@ -16619,7 +17964,7 @@ class ReportElectricalMeasurementActivePowerMin : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16658,7 +18003,7 @@ class ReadElectricalMeasurementActivePowerMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16668,7 +18013,7 @@ class ReadElectricalMeasurementActivePowerMax : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.ActivePowerMax response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.ActivePowerMax response", value); } }; @@ -16688,7 +18033,7 @@ class ReportElectricalMeasurementActivePowerMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16727,7 +18072,7 @@ class ReadElectricalMeasurementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16737,7 +18082,7 @@ class ReadElectricalMeasurementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.AttributeList response", value); } }; @@ -16757,7 +18102,7 @@ class ReadElectricalMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16767,7 +18112,7 @@ class ReadElectricalMeasurementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ElectricalMeasurement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ElectricalMeasurement.ClusterRevision response", value); } }; @@ -16787,7 +18132,7 @@ class ReportElectricalMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0B04) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0B04) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ElectricalMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -16870,7 +18215,7 @@ class ReadEthernetNetworkDiagnosticsPHYRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -16880,7 +18225,7 @@ class ReadEthernetNetworkDiagnosticsPHYRate : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.PHYRate response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.PHYRate response", value); } }; @@ -16900,7 +18245,7 @@ class ReportEthernetNetworkDiagnosticsPHYRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -16939,7 +18284,7 @@ class ReadEthernetNetworkDiagnosticsFullDuplex : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -16949,7 +18294,7 @@ class ReadEthernetNetworkDiagnosticsFullDuplex : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.FullDuplex response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.FullDuplex response", value); } }; @@ -16969,7 +18314,7 @@ class ReportEthernetNetworkDiagnosticsFullDuplex : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17008,7 +18353,7 @@ class ReadEthernetNetworkDiagnosticsPacketRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17018,7 +18363,7 @@ class ReadEthernetNetworkDiagnosticsPacketRxCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.PacketRxCount response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.PacketRxCount response", value); } }; @@ -17038,7 +18383,7 @@ class ReportEthernetNetworkDiagnosticsPacketRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17080,7 +18425,7 @@ class ReadEthernetNetworkDiagnosticsPacketTxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17090,7 +18435,7 @@ class ReadEthernetNetworkDiagnosticsPacketTxCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.PacketTxCount response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.PacketTxCount response", value); } }; @@ -17110,7 +18455,7 @@ class ReportEthernetNetworkDiagnosticsPacketTxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17152,7 +18497,7 @@ class ReadEthernetNetworkDiagnosticsTxErrCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17162,7 +18507,7 @@ class ReadEthernetNetworkDiagnosticsTxErrCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.TxErrCount response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.TxErrCount response", value); } }; @@ -17182,7 +18527,7 @@ class ReportEthernetNetworkDiagnosticsTxErrCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17224,7 +18569,7 @@ class ReadEthernetNetworkDiagnosticsCollisionCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17234,7 +18579,7 @@ class ReadEthernetNetworkDiagnosticsCollisionCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.CollisionCount response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.CollisionCount response", value); } }; @@ -17254,7 +18599,7 @@ class ReportEthernetNetworkDiagnosticsCollisionCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17296,7 +18641,7 @@ class ReadEthernetNetworkDiagnosticsOverrunCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17306,7 +18651,7 @@ class ReadEthernetNetworkDiagnosticsOverrunCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.OverrunCount response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.OverrunCount response", value); } }; @@ -17326,7 +18671,7 @@ class ReportEthernetNetworkDiagnosticsOverrunCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17368,7 +18713,7 @@ class ReadEthernetNetworkDiagnosticsCarrierDetect : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17378,7 +18723,7 @@ class ReadEthernetNetworkDiagnosticsCarrierDetect : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.CarrierDetect response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.CarrierDetect response", value); } }; @@ -17398,7 +18743,7 @@ class ReportEthernetNetworkDiagnosticsCarrierDetect : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17437,7 +18782,7 @@ class ReadEthernetNetworkDiagnosticsTimeSinceReset : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17447,7 +18792,7 @@ class ReadEthernetNetworkDiagnosticsTimeSinceReset : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.TimeSinceReset response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.TimeSinceReset response", value); } }; @@ -17467,7 +18812,7 @@ class ReportEthernetNetworkDiagnosticsTimeSinceReset : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17509,7 +18854,7 @@ class ReadEthernetNetworkDiagnosticsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17519,7 +18864,7 @@ class ReadEthernetNetworkDiagnosticsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.AttributeList response", value); } }; @@ -17539,7 +18884,7 @@ class ReadEthernetNetworkDiagnosticsFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17549,7 +18894,7 @@ class ReadEthernetNetworkDiagnosticsFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.FeatureMap response", value); } }; @@ -17569,7 +18914,7 @@ class ReadEthernetNetworkDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17579,7 +18924,7 @@ class ReadEthernetNetworkDiagnosticsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "EthernetNetworkDiagnostics.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "EthernetNetworkDiagnostics.ClusterRevision response", value); } }; @@ -17599,7 +18944,7 @@ class ReportEthernetNetworkDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0037) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0037) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::EthernetNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -17652,7 +18997,7 @@ class ReadFixedLabelLabelList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0040) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0040) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); @@ -17664,7 +19009,7 @@ class ReadFixedLabelLabelList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "FixedLabel.LabelList response", value); + OnGeneralAttributeEventResponse(context, "FixedLabel.LabelList response", value); } }; @@ -17684,7 +19029,7 @@ class ReportFixedLabelLabelList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0040) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0040) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); @@ -17728,7 +19073,7 @@ class ReadFixedLabelAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0040) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0040) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); @@ -17738,7 +19083,7 @@ class ReadFixedLabelAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "FixedLabel.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "FixedLabel.AttributeList response", value); } }; @@ -17758,7 +19103,7 @@ class ReadFixedLabelClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0040) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0040) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); @@ -17768,7 +19113,7 @@ class ReadFixedLabelClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "FixedLabel.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "FixedLabel.ClusterRevision response", value); } }; @@ -17788,7 +19133,7 @@ class ReportFixedLabelClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0040) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0040) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FixedLabelCluster cluster; cluster.Associate(device, endpointId); @@ -17841,7 +19186,7 @@ class ReadFlowMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -17851,7 +19196,7 @@ class ReadFlowMeasurementMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "FlowMeasurement.MeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "FlowMeasurement.MeasuredValue response", value); } }; @@ -17871,7 +19216,7 @@ class ReportFlowMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -17910,7 +19255,7 @@ class ReadFlowMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -17920,7 +19265,7 @@ class ReadFlowMeasurementMinMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "FlowMeasurement.MinMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "FlowMeasurement.MinMeasuredValue response", value); } }; @@ -17940,7 +19285,7 @@ class ReportFlowMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -17979,7 +19324,7 @@ class ReadFlowMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -17989,7 +19334,7 @@ class ReadFlowMeasurementMaxMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "FlowMeasurement.MaxMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "FlowMeasurement.MaxMeasuredValue response", value); } }; @@ -18009,7 +19354,7 @@ class ReportFlowMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -18048,7 +19393,7 @@ class ReadFlowMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -18058,7 +19403,7 @@ class ReadFlowMeasurementTolerance : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "FlowMeasurement.Tolerance response", value); + OnGeneralAttributeEventResponse(context, "FlowMeasurement.Tolerance response", value); } }; @@ -18078,7 +19423,7 @@ class ReportFlowMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -18117,7 +19462,7 @@ class ReadFlowMeasurementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -18127,7 +19472,7 @@ class ReadFlowMeasurementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "FlowMeasurement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "FlowMeasurement.AttributeList response", value); } }; @@ -18147,7 +19492,7 @@ class ReadFlowMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -18157,7 +19502,7 @@ class ReadFlowMeasurementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "FlowMeasurement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "FlowMeasurement.ClusterRevision response", value); } }; @@ -18177,7 +19522,7 @@ class ReportFlowMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0404) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0404) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::FlowMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -18307,7 +19652,7 @@ class ReadGeneralCommissioningBreadcrumb : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18317,7 +19662,7 @@ class ReadGeneralCommissioningBreadcrumb : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "GeneralCommissioning.Breadcrumb response", value); + OnGeneralAttributeEventResponse(context, "GeneralCommissioning.Breadcrumb response", value); } }; @@ -18335,7 +19680,7 @@ class WriteGeneralCommissioningBreadcrumb : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18363,7 +19708,7 @@ class ReportGeneralCommissioningBreadcrumb : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18402,7 +19747,7 @@ class ReadGeneralCommissioningBasicCommissioningInfoList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18415,7 +19760,7 @@ class ReadGeneralCommissioningBasicCommissioningInfoList : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::GeneralCommissioning::Structs::BasicCommissioningInfoType::DecodableType> & value) { - OnGeneralAttributeResponse(context, "GeneralCommissioning.BasicCommissioningInfoList response", value); + OnGeneralAttributeEventResponse(context, "GeneralCommissioning.BasicCommissioningInfoList response", value); } }; @@ -18435,7 +19780,7 @@ class ReportGeneralCommissioningBasicCommissioningInfoList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18481,7 +19826,7 @@ class ReadGeneralCommissioningRegulatoryConfig : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18491,7 +19836,7 @@ class ReadGeneralCommissioningRegulatoryConfig : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "GeneralCommissioning.RegulatoryConfig response", value); + OnGeneralAttributeEventResponse(context, "GeneralCommissioning.RegulatoryConfig response", value); } }; @@ -18511,7 +19856,7 @@ class ReadGeneralCommissioningLocationCapability : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18521,7 +19866,7 @@ class ReadGeneralCommissioningLocationCapability : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "GeneralCommissioning.LocationCapability response", value); + OnGeneralAttributeEventResponse(context, "GeneralCommissioning.LocationCapability response", value); } }; @@ -18541,7 +19886,7 @@ class ReadGeneralCommissioningAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18551,7 +19896,7 @@ class ReadGeneralCommissioningAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GeneralCommissioning.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "GeneralCommissioning.AttributeList response", value); } }; @@ -18571,7 +19916,7 @@ class ReadGeneralCommissioningClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18581,7 +19926,7 @@ class ReadGeneralCommissioningClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "GeneralCommissioning.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "GeneralCommissioning.ClusterRevision response", value); } }; @@ -18601,7 +19946,7 @@ class ReportGeneralCommissioningClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0030) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0030) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -18642,6 +19987,126 @@ class ReportGeneralCommissioningClusterRevision : public ModelCommand | * ClusterRevision | 0xFFFD | \*----------------------------------------------------------------------------*/ +/* + * Event HardwareFaultChange + */ +class ReadGeneralDiagnosticsHardwareFaultChange : public ModelCommand +{ +public: + ReadGeneralDiagnosticsHardwareFaultChange() : ModelCommand("read-event") + { + AddArgument("event-name", "hardware-fault-change"); + ModelCommand::AddArguments(); + } + + ~ReadGeneralDiagnosticsHardwareFaultChange() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::GeneralDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::GeneralDiagnostics::Events::HardwareFaultChange::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.HardwareFaultChange response", value); + } +}; +/* + * Event RadioFaultChange + */ +class ReadGeneralDiagnosticsRadioFaultChange : public ModelCommand +{ +public: + ReadGeneralDiagnosticsRadioFaultChange() : ModelCommand("read-event") + { + AddArgument("event-name", "radio-fault-change"); + ModelCommand::AddArguments(); + } + + ~ReadGeneralDiagnosticsRadioFaultChange() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::GeneralDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::GeneralDiagnostics::Events::RadioFaultChange::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.RadioFaultChange response", value); + } +}; +/* + * Event NetworkFaultChange + */ +class ReadGeneralDiagnosticsNetworkFaultChange : public ModelCommand +{ +public: + ReadGeneralDiagnosticsNetworkFaultChange() : ModelCommand("read-event") + { + AddArgument("event-name", "network-fault-change"); + ModelCommand::AddArguments(); + } + + ~ReadGeneralDiagnosticsNetworkFaultChange() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::GeneralDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::GeneralDiagnostics::Events::NetworkFaultChange::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.NetworkFaultChange response", value); + } +}; +/* + * Event BootReason + */ +class ReadGeneralDiagnosticsBootReason : public ModelCommand +{ +public: + ReadGeneralDiagnosticsBootReason() : ModelCommand("read-event") + { + AddArgument("event-name", "boot-reason"); + ModelCommand::AddArguments(); + } + + ~ReadGeneralDiagnosticsBootReason() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::GeneralDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::GeneralDiagnostics::Events::BootReason::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.BootReason response", value); + } +}; + /* * Attribute NetworkInterfaces */ @@ -18658,7 +20123,7 @@ class ReadGeneralDiagnosticsNetworkInterfaces : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18671,7 +20136,7 @@ class ReadGeneralDiagnosticsNetworkInterfaces : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.NetworkInterfaces response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.NetworkInterfaces response", value); } }; @@ -18691,7 +20156,7 @@ class ReportGeneralDiagnosticsNetworkInterfaces : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18735,7 +20200,7 @@ class ReadGeneralDiagnosticsRebootCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18745,7 +20210,7 @@ class ReadGeneralDiagnosticsRebootCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.RebootCount response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.RebootCount response", value); } }; @@ -18765,7 +20230,7 @@ class ReportGeneralDiagnosticsRebootCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18804,7 +20269,7 @@ class ReadGeneralDiagnosticsUpTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18814,7 +20279,7 @@ class ReadGeneralDiagnosticsUpTime : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.UpTime response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.UpTime response", value); } }; @@ -18834,7 +20299,7 @@ class ReportGeneralDiagnosticsUpTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18873,7 +20338,7 @@ class ReadGeneralDiagnosticsTotalOperationalHours : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18883,7 +20348,7 @@ class ReadGeneralDiagnosticsTotalOperationalHours : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.TotalOperationalHours response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.TotalOperationalHours response", value); } }; @@ -18903,7 +20368,7 @@ class ReportGeneralDiagnosticsTotalOperationalHours : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18945,7 +20410,7 @@ class ReadGeneralDiagnosticsBootReasons : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -18955,7 +20420,7 @@ class ReadGeneralDiagnosticsBootReasons : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.BootReasons response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.BootReasons response", value); } }; @@ -18975,7 +20440,7 @@ class ReportGeneralDiagnosticsBootReasons : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19014,7 +20479,7 @@ class ReadGeneralDiagnosticsActiveHardwareFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19024,7 +20489,7 @@ class ReadGeneralDiagnosticsActiveHardwareFaults : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.ActiveHardwareFaults response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.ActiveHardwareFaults response", value); } }; @@ -19044,7 +20509,7 @@ class ReportGeneralDiagnosticsActiveHardwareFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19086,7 +20551,7 @@ class ReadGeneralDiagnosticsActiveRadioFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19096,7 +20561,7 @@ class ReadGeneralDiagnosticsActiveRadioFaults : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.ActiveRadioFaults response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.ActiveRadioFaults response", value); } }; @@ -19116,7 +20581,7 @@ class ReportGeneralDiagnosticsActiveRadioFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19158,7 +20623,7 @@ class ReadGeneralDiagnosticsActiveNetworkFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19168,7 +20633,7 @@ class ReadGeneralDiagnosticsActiveNetworkFaults : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.ActiveNetworkFaults response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.ActiveNetworkFaults response", value); } }; @@ -19188,7 +20653,7 @@ class ReportGeneralDiagnosticsActiveNetworkFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19230,7 +20695,7 @@ class ReadGeneralDiagnosticsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19240,7 +20705,7 @@ class ReadGeneralDiagnosticsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.AttributeList response", value); } }; @@ -19260,7 +20725,7 @@ class ReadGeneralDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19270,7 +20735,7 @@ class ReadGeneralDiagnosticsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "GeneralDiagnostics.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "GeneralDiagnostics.ClusterRevision response", value); } }; @@ -19290,7 +20755,7 @@ class ReportGeneralDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0033) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0033) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GeneralDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -19443,7 +20908,7 @@ class ReadGroupKeyManagementGroupKeyMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19456,7 +20921,7 @@ class ReadGroupKeyManagementGroupKeyMap : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GroupKeyManagement.GroupKeyMap response", value); + OnGeneralAttributeEventResponse(context, "GroupKeyManagement.GroupKeyMap response", value); } }; @@ -19476,7 +20941,7 @@ class ReportGroupKeyManagementGroupKeyMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19521,7 +20986,7 @@ class ReadGroupKeyManagementGroupTable : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19534,7 +20999,7 @@ class ReadGroupKeyManagementGroupTable : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GroupKeyManagement.GroupTable response", value); + OnGeneralAttributeEventResponse(context, "GroupKeyManagement.GroupTable response", value); } }; @@ -19554,7 +21019,7 @@ class ReportGroupKeyManagementGroupTable : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19599,7 +21064,7 @@ class ReadGroupKeyManagementMaxGroupsPerFabric : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19609,7 +21074,7 @@ class ReadGroupKeyManagementMaxGroupsPerFabric : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "GroupKeyManagement.MaxGroupsPerFabric response", value); + OnGeneralAttributeEventResponse(context, "GroupKeyManagement.MaxGroupsPerFabric response", value); } }; @@ -19629,7 +21094,7 @@ class ReadGroupKeyManagementMaxGroupKeysPerFabric : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19639,7 +21104,7 @@ class ReadGroupKeyManagementMaxGroupKeysPerFabric : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "GroupKeyManagement.MaxGroupKeysPerFabric response", value); + OnGeneralAttributeEventResponse(context, "GroupKeyManagement.MaxGroupKeysPerFabric response", value); } }; @@ -19659,7 +21124,7 @@ class ReadGroupKeyManagementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19669,7 +21134,7 @@ class ReadGroupKeyManagementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "GroupKeyManagement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "GroupKeyManagement.AttributeList response", value); } }; @@ -19689,7 +21154,7 @@ class ReadGroupKeyManagementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19699,7 +21164,7 @@ class ReadGroupKeyManagementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "GroupKeyManagement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "GroupKeyManagement.ClusterRevision response", value); } }; @@ -19719,7 +21184,7 @@ class ReportGroupKeyManagementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupKeyManagementCluster cluster; cluster.Associate(device, endpointId); @@ -19917,7 +21382,7 @@ class ReadGroupsNameSupport : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0004) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0004) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); @@ -19927,7 +21392,7 @@ class ReadGroupsNameSupport : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Groups.NameSupport response", value); + OnGeneralAttributeEventResponse(context, "Groups.NameSupport response", value); } }; @@ -19947,7 +21412,7 @@ class ReportGroupsNameSupport : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0004) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0004) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); @@ -19986,7 +21451,7 @@ class ReadGroupsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0004) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0004) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); @@ -19996,7 +21461,7 @@ class ReadGroupsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Groups.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Groups.AttributeList response", value); } }; @@ -20016,7 +21481,7 @@ class ReadGroupsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0004) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0004) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); @@ -20026,7 +21491,7 @@ class ReadGroupsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Groups.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Groups.ClusterRevision response", value); } }; @@ -20046,7 +21511,7 @@ class ReportGroupsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0004) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0004) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::GroupsCluster cluster; cluster.Associate(device, endpointId); @@ -20171,7 +21636,7 @@ class ReadIdentifyIdentifyTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20181,7 +21646,7 @@ class ReadIdentifyIdentifyTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Identify.IdentifyTime response", value); + OnGeneralAttributeEventResponse(context, "Identify.IdentifyTime response", value); } }; @@ -20199,7 +21664,7 @@ class WriteIdentifyIdentifyTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20227,7 +21692,7 @@ class ReportIdentifyIdentifyTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20266,7 +21731,7 @@ class ReadIdentifyIdentifyType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20276,7 +21741,7 @@ class ReadIdentifyIdentifyType : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Identify.IdentifyType response", value); + OnGeneralAttributeEventResponse(context, "Identify.IdentifyType response", value); } }; @@ -20296,7 +21761,7 @@ class ReportIdentifyIdentifyType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20335,7 +21800,7 @@ class ReadIdentifyAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20345,7 +21810,7 @@ class ReadIdentifyAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Identify.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Identify.AttributeList response", value); } }; @@ -20365,7 +21830,7 @@ class ReadIdentifyClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20375,7 +21840,7 @@ class ReadIdentifyClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Identify.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Identify.ClusterRevision response", value); } }; @@ -20395,7 +21860,7 @@ class ReportIdentifyClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0003) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0003) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IdentifyCluster cluster; cluster.Associate(device, endpointId); @@ -20449,7 +21914,7 @@ class ReadIlluminanceMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20459,7 +21924,7 @@ class ReadIlluminanceMeasurementMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.MeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.MeasuredValue response", value); } }; @@ -20479,7 +21944,7 @@ class ReportIlluminanceMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20521,7 +21986,7 @@ class ReadIlluminanceMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20531,7 +21996,7 @@ class ReadIlluminanceMeasurementMinMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.MinMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.MinMeasuredValue response", value); } }; @@ -20551,7 +22016,7 @@ class ReportIlluminanceMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20593,7 +22058,7 @@ class ReadIlluminanceMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20603,7 +22068,7 @@ class ReadIlluminanceMeasurementMaxMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.MaxMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.MaxMeasuredValue response", value); } }; @@ -20623,7 +22088,7 @@ class ReportIlluminanceMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20665,7 +22130,7 @@ class ReadIlluminanceMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20675,7 +22140,7 @@ class ReadIlluminanceMeasurementTolerance : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.Tolerance response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.Tolerance response", value); } }; @@ -20695,7 +22160,7 @@ class ReportIlluminanceMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20734,7 +22199,7 @@ class ReadIlluminanceMeasurementLightSensorType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20744,7 +22209,7 @@ class ReadIlluminanceMeasurementLightSensorType : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.LightSensorType response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.LightSensorType response", value); } }; @@ -20764,7 +22229,7 @@ class ReportIlluminanceMeasurementLightSensorType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20806,7 +22271,7 @@ class ReadIlluminanceMeasurementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20816,7 +22281,7 @@ class ReadIlluminanceMeasurementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.AttributeList response", value); } }; @@ -20836,7 +22301,7 @@ class ReadIlluminanceMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20846,7 +22311,7 @@ class ReadIlluminanceMeasurementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "IlluminanceMeasurement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "IlluminanceMeasurement.ClusterRevision response", value); } }; @@ -20866,7 +22331,7 @@ class ReportIlluminanceMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0400) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0400) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::IlluminanceMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -20944,7 +22409,7 @@ class ReadKeypadInputAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0509) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0509) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::KeypadInputCluster cluster; cluster.Associate(device, endpointId); @@ -20954,7 +22419,7 @@ class ReadKeypadInputAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "KeypadInput.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "KeypadInput.AttributeList response", value); } }; @@ -20974,7 +22439,7 @@ class ReadKeypadInputClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0509) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0509) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::KeypadInputCluster cluster; cluster.Associate(device, endpointId); @@ -20984,7 +22449,7 @@ class ReadKeypadInputClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "KeypadInput.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "KeypadInput.ClusterRevision response", value); } }; @@ -21004,7 +22469,7 @@ class ReportKeypadInputClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0509) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0509) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::KeypadInputCluster cluster; cluster.Associate(device, endpointId); @@ -21282,7 +22747,7 @@ class ReadLevelControlCurrentLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21292,7 +22757,7 @@ class ReadLevelControlCurrentLevel : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "LevelControl.CurrentLevel response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.CurrentLevel response", value); } }; @@ -21312,7 +22777,7 @@ class ReportLevelControlCurrentLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21351,7 +22816,7 @@ class ReadLevelControlRemainingTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21361,7 +22826,7 @@ class ReadLevelControlRemainingTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LevelControl.RemainingTime response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.RemainingTime response", value); } }; @@ -21381,7 +22846,7 @@ class ReportLevelControlRemainingTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21420,7 +22885,7 @@ class ReadLevelControlMinLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21430,7 +22895,7 @@ class ReadLevelControlMinLevel : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "LevelControl.MinLevel response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.MinLevel response", value); } }; @@ -21450,7 +22915,7 @@ class ReportLevelControlMinLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21489,7 +22954,7 @@ class ReadLevelControlMaxLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21499,7 +22964,7 @@ class ReadLevelControlMaxLevel : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "LevelControl.MaxLevel response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.MaxLevel response", value); } }; @@ -21519,7 +22984,7 @@ class ReportLevelControlMaxLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21558,7 +23023,7 @@ class ReadLevelControlCurrentFrequency : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21568,7 +23033,7 @@ class ReadLevelControlCurrentFrequency : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LevelControl.CurrentFrequency response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.CurrentFrequency response", value); } }; @@ -21588,7 +23053,7 @@ class ReportLevelControlCurrentFrequency : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21627,7 +23092,7 @@ class ReadLevelControlMinFrequency : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21637,7 +23102,7 @@ class ReadLevelControlMinFrequency : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LevelControl.MinFrequency response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.MinFrequency response", value); } }; @@ -21657,7 +23122,7 @@ class ReportLevelControlMinFrequency : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21696,7 +23161,7 @@ class ReadLevelControlMaxFrequency : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21706,7 +23171,7 @@ class ReadLevelControlMaxFrequency : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LevelControl.MaxFrequency response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.MaxFrequency response", value); } }; @@ -21726,7 +23191,7 @@ class ReportLevelControlMaxFrequency : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21765,7 +23230,7 @@ class ReadLevelControlOptions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21775,7 +23240,7 @@ class ReadLevelControlOptions : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "LevelControl.Options response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.Options response", value); } }; @@ -21793,7 +23258,7 @@ class WriteLevelControlOptions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21821,7 +23286,7 @@ class ReportLevelControlOptions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21860,7 +23325,7 @@ class ReadLevelControlOnOffTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21870,7 +23335,7 @@ class ReadLevelControlOnOffTransitionTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LevelControl.OnOffTransitionTime response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.OnOffTransitionTime response", value); } }; @@ -21888,7 +23353,7 @@ class WriteLevelControlOnOffTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21916,7 +23381,7 @@ class ReportLevelControlOnOffTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21955,7 +23420,7 @@ class ReadLevelControlOnLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -21965,7 +23430,7 @@ class ReadLevelControlOnLevel : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "LevelControl.OnLevel response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.OnLevel response", value); } }; @@ -21983,7 +23448,7 @@ class WriteLevelControlOnLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22011,7 +23476,7 @@ class ReportLevelControlOnLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22053,7 +23518,7 @@ class ReadLevelControlOnTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22063,7 +23528,7 @@ class ReadLevelControlOnTransitionTime : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "LevelControl.OnTransitionTime response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.OnTransitionTime response", value); } }; @@ -22081,7 +23546,7 @@ class WriteLevelControlOnTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22109,7 +23574,7 @@ class ReportLevelControlOnTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22151,7 +23616,7 @@ class ReadLevelControlOffTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22161,7 +23626,7 @@ class ReadLevelControlOffTransitionTime : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "LevelControl.OffTransitionTime response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.OffTransitionTime response", value); } }; @@ -22179,7 +23644,7 @@ class WriteLevelControlOffTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22207,7 +23672,7 @@ class ReportLevelControlOffTransitionTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22249,7 +23714,7 @@ class ReadLevelControlDefaultMoveRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22259,7 +23724,7 @@ class ReadLevelControlDefaultMoveRate : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "LevelControl.DefaultMoveRate response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.DefaultMoveRate response", value); } }; @@ -22277,7 +23742,7 @@ class WriteLevelControlDefaultMoveRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22305,7 +23770,7 @@ class ReportLevelControlDefaultMoveRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22347,7 +23812,7 @@ class ReadLevelControlStartUpCurrentLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22357,7 +23822,7 @@ class ReadLevelControlStartUpCurrentLevel : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "LevelControl.StartUpCurrentLevel response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.StartUpCurrentLevel response", value); } }; @@ -22375,7 +23840,7 @@ class WriteLevelControlStartUpCurrentLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22403,7 +23868,7 @@ class ReportLevelControlStartUpCurrentLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22442,7 +23907,7 @@ class ReadLevelControlAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22452,7 +23917,7 @@ class ReadLevelControlAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "LevelControl.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.AttributeList response", value); } }; @@ -22472,7 +23937,7 @@ class ReadLevelControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22482,7 +23947,7 @@ class ReadLevelControlClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LevelControl.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "LevelControl.ClusterRevision response", value); } }; @@ -22502,7 +23967,7 @@ class ReportLevelControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0008) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0008) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LevelControlCluster cluster; cluster.Associate(device, endpointId); @@ -22551,7 +24016,7 @@ class ReadLocalizationConfigurationActiveLocale : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LocalizationConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -22561,7 +24026,7 @@ class ReadLocalizationConfigurationActiveLocale : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "LocalizationConfiguration.ActiveLocale response", value); + OnGeneralAttributeEventResponse(context, "LocalizationConfiguration.ActiveLocale response", value); } }; @@ -22579,7 +24044,7 @@ class WriteLocalizationConfigurationActiveLocale : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002B) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002B) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LocalizationConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -22607,7 +24072,7 @@ class ReadLocalizationConfigurationSupportedLocales : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LocalizationConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -22617,7 +24082,7 @@ class ReadLocalizationConfigurationSupportedLocales : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "LocalizationConfiguration.SupportedLocales response", value); + OnGeneralAttributeEventResponse(context, "LocalizationConfiguration.SupportedLocales response", value); } }; @@ -22668,7 +24133,7 @@ class ReadLowPowerAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0508) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0508) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LowPowerCluster cluster; cluster.Associate(device, endpointId); @@ -22678,7 +24143,7 @@ class ReadLowPowerAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "LowPower.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "LowPower.AttributeList response", value); } }; @@ -22698,7 +24163,7 @@ class ReadLowPowerClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0508) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0508) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LowPowerCluster cluster; cluster.Associate(device, endpointId); @@ -22708,7 +24173,7 @@ class ReadLowPowerClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "LowPower.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "LowPower.ClusterRevision response", value); } }; @@ -22728,7 +24193,7 @@ class ReportLowPowerClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0508) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0508) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::LowPowerCluster cluster; cluster.Associate(device, endpointId); @@ -22872,7 +24337,7 @@ class ReadMediaInputMediaInputList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -22884,7 +24349,7 @@ class ReadMediaInputMediaInputList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "MediaInput.MediaInputList response", value); + OnGeneralAttributeEventResponse(context, "MediaInput.MediaInputList response", value); } }; @@ -22904,7 +24369,7 @@ class ReportMediaInputMediaInputList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -22948,7 +24413,7 @@ class ReadMediaInputCurrentMediaInput : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -22958,7 +24423,7 @@ class ReadMediaInputCurrentMediaInput : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "MediaInput.CurrentMediaInput response", value); + OnGeneralAttributeEventResponse(context, "MediaInput.CurrentMediaInput response", value); } }; @@ -22978,7 +24443,7 @@ class ReportMediaInputCurrentMediaInput : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -23017,7 +24482,7 @@ class ReadMediaInputAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -23027,7 +24492,7 @@ class ReadMediaInputAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "MediaInput.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "MediaInput.AttributeList response", value); } }; @@ -23047,7 +24512,7 @@ class ReadMediaInputClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -23057,7 +24522,7 @@ class ReadMediaInputClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "MediaInput.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "MediaInput.ClusterRevision response", value); } }; @@ -23077,7 +24542,7 @@ class ReportMediaInputClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0507) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0507) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaInputCluster cluster; cluster.Associate(device, endpointId); @@ -23375,7 +24840,7 @@ class ReadMediaPlaybackPlaybackState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23385,7 +24850,7 @@ class ReadMediaPlaybackPlaybackState : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum value) { - OnGeneralAttributeResponse(context, "MediaPlayback.PlaybackState response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.PlaybackState response", value); } }; @@ -23405,7 +24870,7 @@ class ReportMediaPlaybackPlaybackState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23447,7 +24912,7 @@ class ReadMediaPlaybackStartTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23457,7 +24922,7 @@ class ReadMediaPlaybackStartTime : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "MediaPlayback.StartTime response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.StartTime response", value); } }; @@ -23477,7 +24942,7 @@ class ReportMediaPlaybackStartTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23516,7 +24981,7 @@ class ReadMediaPlaybackDuration : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23526,7 +24991,7 @@ class ReadMediaPlaybackDuration : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "MediaPlayback.Duration response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.Duration response", value); } }; @@ -23546,7 +25011,7 @@ class ReportMediaPlaybackDuration : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23585,7 +25050,7 @@ class ReadMediaPlaybackPlaybackSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23595,7 +25060,7 @@ class ReadMediaPlaybackPlaybackSpeed : public ModelCommand static void OnAttributeResponse(void * context, float value) { - OnGeneralAttributeResponse(context, "MediaPlayback.PlaybackSpeed response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.PlaybackSpeed response", value); } }; @@ -23615,7 +25080,7 @@ class ReadMediaPlaybackSeekRangeEnd : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23625,7 +25090,7 @@ class ReadMediaPlaybackSeekRangeEnd : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "MediaPlayback.SeekRangeEnd response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.SeekRangeEnd response", value); } }; @@ -23645,7 +25110,7 @@ class ReportMediaPlaybackSeekRangeEnd : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23684,7 +25149,7 @@ class ReadMediaPlaybackSeekRangeStart : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23694,7 +25159,7 @@ class ReadMediaPlaybackSeekRangeStart : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "MediaPlayback.SeekRangeStart response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.SeekRangeStart response", value); } }; @@ -23714,7 +25179,7 @@ class ReportMediaPlaybackSeekRangeStart : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23753,7 +25218,7 @@ class ReadMediaPlaybackAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23763,7 +25228,7 @@ class ReadMediaPlaybackAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "MediaPlayback.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.AttributeList response", value); } }; @@ -23783,7 +25248,7 @@ class ReadMediaPlaybackClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23793,7 +25258,7 @@ class ReadMediaPlaybackClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "MediaPlayback.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "MediaPlayback.ClusterRevision response", value); } }; @@ -23813,7 +25278,7 @@ class ReportMediaPlaybackClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0506) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0506) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::MediaPlaybackCluster cluster; cluster.Associate(device, endpointId); @@ -23892,7 +25357,7 @@ class ReadModeSelectCurrentMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -23902,7 +25367,7 @@ class ReadModeSelectCurrentMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ModeSelect.CurrentMode response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.CurrentMode response", value); } }; @@ -23922,7 +25387,7 @@ class ReportModeSelectCurrentMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -23961,7 +25426,7 @@ class ReadModeSelectSupportedModes : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -23974,7 +25439,7 @@ class ReadModeSelectSupportedModes : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ModeSelect.SupportedModes response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.SupportedModes response", value); } }; @@ -23994,7 +25459,7 @@ class ReportModeSelectSupportedModes : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24039,7 +25504,7 @@ class ReadModeSelectOnMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24049,7 +25514,7 @@ class ReadModeSelectOnMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ModeSelect.OnMode response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.OnMode response", value); } }; @@ -24067,7 +25532,7 @@ class WriteModeSelectOnMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24095,7 +25560,7 @@ class ReportModeSelectOnMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24134,7 +25599,7 @@ class ReadModeSelectStartUpMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24144,7 +25609,7 @@ class ReadModeSelectStartUpMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ModeSelect.StartUpMode response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.StartUpMode response", value); } }; @@ -24164,7 +25629,7 @@ class ReportModeSelectStartUpMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24203,7 +25668,7 @@ class ReadModeSelectDescription : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24213,7 +25678,7 @@ class ReadModeSelectDescription : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "ModeSelect.Description response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.Description response", value); } }; @@ -24233,7 +25698,7 @@ class ReportModeSelectDescription : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24272,7 +25737,7 @@ class ReadModeSelectAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24282,7 +25747,7 @@ class ReadModeSelectAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ModeSelect.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.AttributeList response", value); } }; @@ -24302,7 +25767,7 @@ class ReadModeSelectClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24312,7 +25777,7 @@ class ReadModeSelectClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ModeSelect.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ModeSelect.ClusterRevision response", value); } }; @@ -24332,7 +25797,7 @@ class ReportModeSelectClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0050) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0050) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ModeSelectCluster cluster; cluster.Associate(device, endpointId); @@ -24547,7 +26012,7 @@ class ReadNetworkCommissioningMaxNetworks : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24557,7 +26022,7 @@ class ReadNetworkCommissioningMaxNetworks : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.MaxNetworks response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.MaxNetworks response", value); } }; @@ -24577,7 +26042,7 @@ class ReadNetworkCommissioningNetworks : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24590,7 +26055,7 @@ class ReadNetworkCommissioningNetworks : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.Networks response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.Networks response", value); } }; @@ -24610,7 +26075,7 @@ class ReadNetworkCommissioningScanMaxTimeSeconds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24620,7 +26085,7 @@ class ReadNetworkCommissioningScanMaxTimeSeconds : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.ScanMaxTimeSeconds response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.ScanMaxTimeSeconds response", value); } }; @@ -24640,7 +26105,7 @@ class ReadNetworkCommissioningConnectMaxTimeSeconds : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24650,7 +26115,7 @@ class ReadNetworkCommissioningConnectMaxTimeSeconds : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.ConnectMaxTimeSeconds response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.ConnectMaxTimeSeconds response", value); } }; @@ -24670,7 +26135,7 @@ class ReadNetworkCommissioningInterfaceEnabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24680,7 +26145,7 @@ class ReadNetworkCommissioningInterfaceEnabled : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.InterfaceEnabled response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.InterfaceEnabled response", value); } }; @@ -24698,7 +26163,7 @@ class WriteNetworkCommissioningInterfaceEnabled : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24726,7 +26191,7 @@ class ReadNetworkCommissioningLastNetworkingStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24736,7 +26201,7 @@ class ReadNetworkCommissioningLastNetworkingStatus : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::NetworkCommissioning::NetworkCommissioningStatus value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.LastNetworkingStatus response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.LastNetworkingStatus response", value); } }; @@ -24756,7 +26221,7 @@ class ReadNetworkCommissioningLastNetworkID : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24766,7 +26231,7 @@ class ReadNetworkCommissioningLastNetworkID : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.LastNetworkID response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.LastNetworkID response", value); } }; @@ -24786,7 +26251,7 @@ class ReadNetworkCommissioningLastConnectErrorValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24796,7 +26261,7 @@ class ReadNetworkCommissioningLastConnectErrorValue : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.LastConnectErrorValue response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.LastConnectErrorValue response", value); } }; @@ -24816,7 +26281,7 @@ class ReadNetworkCommissioningFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24826,7 +26291,7 @@ class ReadNetworkCommissioningFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.FeatureMap response", value); } }; @@ -24846,7 +26311,7 @@ class ReportNetworkCommissioningFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24885,7 +26350,7 @@ class ReadNetworkCommissioningClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -24895,7 +26360,7 @@ class ReadNetworkCommissioningClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "NetworkCommissioning.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "NetworkCommissioning.ClusterRevision response", value); } }; @@ -24915,7 +26380,7 @@ class ReportNetworkCommissioningClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0031) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0031) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::NetworkCommissioningCluster cluster; cluster.Associate(device, endpointId); @@ -25048,7 +26513,7 @@ class ReadOtaSoftwareUpdateProviderAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0029) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); @@ -25058,7 +26523,7 @@ class ReadOtaSoftwareUpdateProviderAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateProvider.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateProvider.AttributeList response", value); } }; @@ -25078,7 +26543,7 @@ class ReadOtaSoftwareUpdateProviderClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0029) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); @@ -25088,7 +26553,7 @@ class ReadOtaSoftwareUpdateProviderClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateProvider.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateProvider.ClusterRevision response", value); } }; @@ -25108,7 +26573,7 @@ class ReportOtaSoftwareUpdateProviderClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0029) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0029) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateProviderCluster cluster; cluster.Associate(device, endpointId); @@ -25179,6 +26644,97 @@ class OtaSoftwareUpdateRequestorAnnounceOtaProvider : public ModelCommand chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type mRequest; }; +/* + * Event StateTransition + */ +class ReadOtaSoftwareUpdateRequestorStateTransition : public ModelCommand +{ +public: + ReadOtaSoftwareUpdateRequestorStateTransition() : ModelCommand("read-event") + { + AddArgument("event-name", "state-transition"); + ModelCommand::AddArguments(); + } + + ~ReadOtaSoftwareUpdateRequestorStateTransition() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::StateTransition::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.StateTransition response", value); + } +}; +/* + * Event VersionApplied + */ +class ReadOtaSoftwareUpdateRequestorVersionApplied : public ModelCommand +{ +public: + ReadOtaSoftwareUpdateRequestorVersionApplied() : ModelCommand("read-event") + { + AddArgument("event-name", "version-applied"); + ModelCommand::AddArguments(); + } + + ~ReadOtaSoftwareUpdateRequestorVersionApplied() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::VersionApplied::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.VersionApplied response", value); + } +}; +/* + * Event DownloadError + */ +class ReadOtaSoftwareUpdateRequestorDownloadError : public ModelCommand +{ +public: + ReadOtaSoftwareUpdateRequestorDownloadError() : ModelCommand("read-event") + { + AddArgument("event-name", "download-error"); + ModelCommand::AddArguments(); + } + + ~ReadOtaSoftwareUpdateRequestorDownloadError() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::OtaSoftwareUpdateRequestor::Events::DownloadError::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.DownloadError response", value); + } +}; + /* * Attribute DefaultOtaProviders */ @@ -25195,7 +26751,7 @@ class ReadOtaSoftwareUpdateRequestorDefaultOtaProviders : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25208,7 +26764,7 @@ class ReadOtaSoftwareUpdateRequestorDefaultOtaProviders : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::OtaSoftwareUpdateRequestor::Structs::ProviderLocation::DecodableType> & value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.DefaultOtaProviders response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.DefaultOtaProviders response", value); } }; @@ -25228,7 +26784,7 @@ class ReportOtaSoftwareUpdateRequestorDefaultOtaProviders : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25274,7 +26830,7 @@ class ReadOtaSoftwareUpdateRequestorUpdatePossible : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25284,7 +26840,7 @@ class ReadOtaSoftwareUpdateRequestorUpdatePossible : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.UpdatePossible response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.UpdatePossible response", value); } }; @@ -25304,7 +26860,7 @@ class ReportOtaSoftwareUpdateRequestorUpdatePossible : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25346,7 +26902,7 @@ class ReadOtaSoftwareUpdateRequestorUpdateState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25356,7 +26912,7 @@ class ReadOtaSoftwareUpdateRequestorUpdateState : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::OtaSoftwareUpdateRequestor::OTAUpdateStateEnum value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.UpdateState response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.UpdateState response", value); } }; @@ -25376,7 +26932,7 @@ class ReportOtaSoftwareUpdateRequestorUpdateState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25418,7 +26974,7 @@ class ReadOtaSoftwareUpdateRequestorUpdateStateProgress : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25428,7 +26984,7 @@ class ReadOtaSoftwareUpdateRequestorUpdateStateProgress : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.UpdateStateProgress response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.UpdateStateProgress response", value); } }; @@ -25448,7 +27004,7 @@ class ReportOtaSoftwareUpdateRequestorUpdateStateProgress : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25491,7 +27047,7 @@ class ReadOtaSoftwareUpdateRequestorAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25501,7 +27057,7 @@ class ReadOtaSoftwareUpdateRequestorAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.AttributeList response", value); } }; @@ -25521,7 +27077,7 @@ class ReadOtaSoftwareUpdateRequestorClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25531,7 +27087,7 @@ class ReadOtaSoftwareUpdateRequestorClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OtaSoftwareUpdateRequestor.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "OtaSoftwareUpdateRequestor.ClusterRevision response", value); } }; @@ -25551,7 +27107,7 @@ class ReportOtaSoftwareUpdateRequestorClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002A) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002A) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OtaSoftwareUpdateRequestorCluster cluster; cluster.Associate(device, endpointId); @@ -25606,7 +27162,7 @@ class ReadOccupancySensingOccupancy : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25616,7 +27172,7 @@ class ReadOccupancySensingOccupancy : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OccupancySensing.Occupancy response", value); + OnGeneralAttributeEventResponse(context, "OccupancySensing.Occupancy response", value); } }; @@ -25636,7 +27192,7 @@ class ReportOccupancySensingOccupancy : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25675,7 +27231,7 @@ class ReadOccupancySensingOccupancySensorType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25685,7 +27241,7 @@ class ReadOccupancySensingOccupancySensorType : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OccupancySensing.OccupancySensorType response", value); + OnGeneralAttributeEventResponse(context, "OccupancySensing.OccupancySensorType response", value); } }; @@ -25705,7 +27261,7 @@ class ReportOccupancySensingOccupancySensorType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25744,7 +27300,7 @@ class ReadOccupancySensingOccupancySensorTypeBitmap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25754,7 +27310,7 @@ class ReadOccupancySensingOccupancySensorTypeBitmap : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OccupancySensing.OccupancySensorTypeBitmap response", value); + OnGeneralAttributeEventResponse(context, "OccupancySensing.OccupancySensorTypeBitmap response", value); } }; @@ -25774,7 +27330,7 @@ class ReportOccupancySensingOccupancySensorTypeBitmap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25816,7 +27372,7 @@ class ReadOccupancySensingAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25826,7 +27382,7 @@ class ReadOccupancySensingAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OccupancySensing.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "OccupancySensing.AttributeList response", value); } }; @@ -25846,7 +27402,7 @@ class ReadOccupancySensingClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -25856,7 +27412,7 @@ class ReadOccupancySensingClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OccupancySensing.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "OccupancySensing.ClusterRevision response", value); } }; @@ -25876,7 +27432,7 @@ class ReportOccupancySensingClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0406) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0406) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OccupancySensingCluster cluster; cluster.Associate(device, endpointId); @@ -26071,7 +27627,7 @@ class ReadOnOffOnOff : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26081,7 +27637,7 @@ class ReadOnOffOnOff : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "OnOff.OnOff response", value); + OnGeneralAttributeEventResponse(context, "OnOff.OnOff response", value); } }; @@ -26101,7 +27657,7 @@ class ReportOnOffOnOff : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26140,7 +27696,7 @@ class ReadOnOffGlobalSceneControl : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26150,7 +27706,7 @@ class ReadOnOffGlobalSceneControl : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "OnOff.GlobalSceneControl response", value); + OnGeneralAttributeEventResponse(context, "OnOff.GlobalSceneControl response", value); } }; @@ -26170,7 +27726,7 @@ class ReportOnOffGlobalSceneControl : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26209,7 +27765,7 @@ class ReadOnOffOnTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26219,7 +27775,7 @@ class ReadOnOffOnTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OnOff.OnTime response", value); + OnGeneralAttributeEventResponse(context, "OnOff.OnTime response", value); } }; @@ -26237,7 +27793,7 @@ class WriteOnOffOnTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26265,7 +27821,7 @@ class ReportOnOffOnTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26304,7 +27860,7 @@ class ReadOnOffOffWaitTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26314,7 +27870,7 @@ class ReadOnOffOffWaitTime : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OnOff.OffWaitTime response", value); + OnGeneralAttributeEventResponse(context, "OnOff.OffWaitTime response", value); } }; @@ -26332,7 +27888,7 @@ class WriteOnOffOffWaitTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26360,7 +27916,7 @@ class ReportOnOffOffWaitTime : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26399,7 +27955,7 @@ class ReadOnOffStartUpOnOff : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26409,7 +27965,7 @@ class ReadOnOffStartUpOnOff : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OnOff.StartUpOnOff response", value); + OnGeneralAttributeEventResponse(context, "OnOff.StartUpOnOff response", value); } }; @@ -26427,7 +27983,7 @@ class WriteOnOffStartUpOnOff : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26455,7 +28011,7 @@ class ReportOnOffStartUpOnOff : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26494,7 +28050,7 @@ class ReadOnOffAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26504,7 +28060,7 @@ class ReadOnOffAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OnOff.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "OnOff.AttributeList response", value); } }; @@ -26524,7 +28080,7 @@ class ReadOnOffFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26534,7 +28090,7 @@ class ReadOnOffFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "OnOff.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "OnOff.FeatureMap response", value); } }; @@ -26554,7 +28110,7 @@ class ReportOnOffFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26593,7 +28149,7 @@ class ReadOnOffClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26603,7 +28159,7 @@ class ReadOnOffClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OnOff.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "OnOff.ClusterRevision response", value); } }; @@ -26623,7 +28179,7 @@ class ReportOnOffClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0006) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0006) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffCluster cluster; cluster.Associate(device, endpointId); @@ -26674,7 +28230,7 @@ class ReadOnOffSwitchConfigurationSwitchType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26684,7 +28240,7 @@ class ReadOnOffSwitchConfigurationSwitchType : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.SwitchType response", value); + OnGeneralAttributeEventResponse(context, "OnOffSwitchConfiguration.SwitchType response", value); } }; @@ -26704,7 +28260,7 @@ class ReportOnOffSwitchConfigurationSwitchType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26743,7 +28299,7 @@ class ReadOnOffSwitchConfigurationSwitchActions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26753,7 +28309,7 @@ class ReadOnOffSwitchConfigurationSwitchActions : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.SwitchActions response", value); + OnGeneralAttributeEventResponse(context, "OnOffSwitchConfiguration.SwitchActions response", value); } }; @@ -26771,7 +28327,7 @@ class WriteOnOffSwitchConfigurationSwitchActions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26799,7 +28355,7 @@ class ReportOnOffSwitchConfigurationSwitchActions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26841,7 +28397,7 @@ class ReadOnOffSwitchConfigurationAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26851,7 +28407,7 @@ class ReadOnOffSwitchConfigurationAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "OnOffSwitchConfiguration.AttributeList response", value); } }; @@ -26871,7 +28427,7 @@ class ReadOnOffSwitchConfigurationClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -26881,7 +28437,7 @@ class ReadOnOffSwitchConfigurationClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OnOffSwitchConfiguration.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "OnOffSwitchConfiguration.ClusterRevision response", value); } }; @@ -26901,7 +28457,7 @@ class ReportOnOffSwitchConfigurationClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0007) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0007) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OnOffSwitchConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -27188,7 +28744,7 @@ class ReadOperationalCredentialsFabricsList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27201,7 +28757,7 @@ class ReadOperationalCredentialsFabricsList : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.FabricsList response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.FabricsList response", value); } }; @@ -27221,7 +28777,7 @@ class ReportOperationalCredentialsFabricsList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27265,7 +28821,7 @@ class ReadOperationalCredentialsSupportedFabrics : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27275,7 +28831,7 @@ class ReadOperationalCredentialsSupportedFabrics : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.SupportedFabrics response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.SupportedFabrics response", value); } }; @@ -27295,7 +28851,7 @@ class ReportOperationalCredentialsSupportedFabrics : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27337,7 +28893,7 @@ class ReadOperationalCredentialsCommissionedFabrics : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27347,7 +28903,7 @@ class ReadOperationalCredentialsCommissionedFabrics : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.CommissionedFabrics response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.CommissionedFabrics response", value); } }; @@ -27367,7 +28923,7 @@ class ReportOperationalCredentialsCommissionedFabrics : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27409,7 +28965,7 @@ class ReadOperationalCredentialsTrustedRootCertificates : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27419,7 +28975,7 @@ class ReadOperationalCredentialsTrustedRootCertificates : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.TrustedRootCertificates response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.TrustedRootCertificates response", value); } }; @@ -27439,7 +28995,7 @@ class ReportOperationalCredentialsTrustedRootCertificates : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27482,7 +29038,7 @@ class ReadOperationalCredentialsCurrentFabricIndex : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27492,7 +29048,7 @@ class ReadOperationalCredentialsCurrentFabricIndex : public ModelCommand static void OnAttributeResponse(void * context, chip::FabricIndex value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.CurrentFabricIndex response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.CurrentFabricIndex response", value); } }; @@ -27512,7 +29068,7 @@ class ReportOperationalCredentialsCurrentFabricIndex : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27554,7 +29110,7 @@ class ReadOperationalCredentialsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27564,7 +29120,7 @@ class ReadOperationalCredentialsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.AttributeList response", value); } }; @@ -27584,7 +29140,7 @@ class ReadOperationalCredentialsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27594,7 +29150,7 @@ class ReadOperationalCredentialsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "OperationalCredentials.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "OperationalCredentials.ClusterRevision response", value); } }; @@ -27614,7 +29170,7 @@ class ReportOperationalCredentialsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003E) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003E) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::OperationalCredentialsCluster cluster; cluster.Associate(device, endpointId); @@ -27676,7 +29232,7 @@ class ReadPowerSourceStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27686,7 +29242,7 @@ class ReadPowerSourceStatus : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PowerSource.Status response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.Status response", value); } }; @@ -27706,7 +29262,7 @@ class ReportPowerSourceStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27745,7 +29301,7 @@ class ReadPowerSourceOrder : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27755,7 +29311,7 @@ class ReadPowerSourceOrder : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PowerSource.Order response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.Order response", value); } }; @@ -27775,7 +29331,7 @@ class ReportPowerSourceOrder : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27814,7 +29370,7 @@ class ReadPowerSourceDescription : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27824,7 +29380,7 @@ class ReadPowerSourceDescription : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "PowerSource.Description response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.Description response", value); } }; @@ -27844,7 +29400,7 @@ class ReportPowerSourceDescription : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27883,7 +29439,7 @@ class ReadPowerSourceBatteryVoltage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27893,7 +29449,7 @@ class ReadPowerSourceBatteryVoltage : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "PowerSource.BatteryVoltage response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.BatteryVoltage response", value); } }; @@ -27913,7 +29469,7 @@ class ReportPowerSourceBatteryVoltage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27952,7 +29508,7 @@ class ReadPowerSourceBatteryPercentRemaining : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -27962,7 +29518,7 @@ class ReadPowerSourceBatteryPercentRemaining : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PowerSource.BatteryPercentRemaining response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.BatteryPercentRemaining response", value); } }; @@ -27982,7 +29538,7 @@ class ReportPowerSourceBatteryPercentRemaining : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28021,7 +29577,7 @@ class ReadPowerSourceBatteryTimeRemaining : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28031,7 +29587,7 @@ class ReadPowerSourceBatteryTimeRemaining : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "PowerSource.BatteryTimeRemaining response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.BatteryTimeRemaining response", value); } }; @@ -28051,7 +29607,7 @@ class ReportPowerSourceBatteryTimeRemaining : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28090,7 +29646,7 @@ class ReadPowerSourceBatteryChargeLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28100,7 +29656,7 @@ class ReadPowerSourceBatteryChargeLevel : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PowerSource.BatteryChargeLevel response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.BatteryChargeLevel response", value); } }; @@ -28120,7 +29676,7 @@ class ReportPowerSourceBatteryChargeLevel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28159,7 +29715,7 @@ class ReadPowerSourceActiveBatteryFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28169,7 +29725,7 @@ class ReadPowerSourceActiveBatteryFaults : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "PowerSource.ActiveBatteryFaults response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.ActiveBatteryFaults response", value); } }; @@ -28189,7 +29745,7 @@ class ReportPowerSourceActiveBatteryFaults : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28231,7 +29787,7 @@ class ReadPowerSourceBatteryChargeState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28241,7 +29797,7 @@ class ReadPowerSourceBatteryChargeState : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PowerSource.BatteryChargeState response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.BatteryChargeState response", value); } }; @@ -28261,7 +29817,7 @@ class ReportPowerSourceBatteryChargeState : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28300,7 +29856,7 @@ class ReadPowerSourceAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28310,7 +29866,7 @@ class ReadPowerSourceAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "PowerSource.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.AttributeList response", value); } }; @@ -28330,7 +29886,7 @@ class ReadPowerSourceFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28340,7 +29896,7 @@ class ReadPowerSourceFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "PowerSource.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.FeatureMap response", value); } }; @@ -28360,7 +29916,7 @@ class ReportPowerSourceFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28399,7 +29955,7 @@ class ReadPowerSourceClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28409,7 +29965,7 @@ class ReadPowerSourceClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PowerSource.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "PowerSource.ClusterRevision response", value); } }; @@ -28429,7 +29985,7 @@ class ReportPowerSourceClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceCluster cluster; cluster.Associate(device, endpointId); @@ -28479,7 +30035,7 @@ class ReadPowerSourceConfigurationSources : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -28489,7 +30045,7 @@ class ReadPowerSourceConfigurationSources : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "PowerSourceConfiguration.Sources response", value); + OnGeneralAttributeEventResponse(context, "PowerSourceConfiguration.Sources response", value); } }; @@ -28509,7 +30065,7 @@ class ReadPowerSourceConfigurationAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -28519,7 +30075,7 @@ class ReadPowerSourceConfigurationAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "PowerSourceConfiguration.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "PowerSourceConfiguration.AttributeList response", value); } }; @@ -28539,7 +30095,7 @@ class ReadPowerSourceConfigurationClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x002E) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x002E) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PowerSourceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -28549,7 +30105,7 @@ class ReadPowerSourceConfigurationClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PowerSourceConfiguration.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "PowerSourceConfiguration.ClusterRevision response", value); } }; @@ -28582,7 +30138,7 @@ class ReadPressureMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28592,7 +30148,7 @@ class ReadPressureMeasurementMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PressureMeasurement.MeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "PressureMeasurement.MeasuredValue response", value); } }; @@ -28612,7 +30168,7 @@ class ReportPressureMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28651,7 +30207,7 @@ class ReadPressureMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28661,7 +30217,7 @@ class ReadPressureMeasurementMinMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PressureMeasurement.MinMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "PressureMeasurement.MinMeasuredValue response", value); } }; @@ -28681,7 +30237,7 @@ class ReportPressureMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28720,7 +30276,7 @@ class ReadPressureMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28730,7 +30286,7 @@ class ReadPressureMeasurementMaxMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PressureMeasurement.MaxMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "PressureMeasurement.MaxMeasuredValue response", value); } }; @@ -28750,7 +30306,7 @@ class ReportPressureMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28789,7 +30345,7 @@ class ReadPressureMeasurementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28799,7 +30355,7 @@ class ReadPressureMeasurementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "PressureMeasurement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "PressureMeasurement.AttributeList response", value); } }; @@ -28819,7 +30375,7 @@ class ReadPressureMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28829,7 +30385,7 @@ class ReadPressureMeasurementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PressureMeasurement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "PressureMeasurement.ClusterRevision response", value); } }; @@ -28849,7 +30405,7 @@ class ReportPressureMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0403) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0403) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PressureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -28907,6 +30463,523 @@ class ReportPressureMeasurementClusterRevision : public ModelCommand | * ClusterRevision | 0xFFFD | \*----------------------------------------------------------------------------*/ +/* + * Event SupplyVoltageLow + */ +class ReadPumpConfigurationAndControlSupplyVoltageLow : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlSupplyVoltageLow() : ModelCommand("read-event") + { + AddArgument("event-name", "supply-voltage-low"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlSupplyVoltageLow() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::SupplyVoltageLow::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.SupplyVoltageLow response", value); + } +}; +/* + * Event SupplyVoltageHigh + */ +class ReadPumpConfigurationAndControlSupplyVoltageHigh : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlSupplyVoltageHigh() : ModelCommand("read-event") + { + AddArgument("event-name", "supply-voltage-high"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlSupplyVoltageHigh() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::SupplyVoltageHigh::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.SupplyVoltageHigh response", value); + } +}; +/* + * Event PowerMissingPhase + */ +class ReadPumpConfigurationAndControlPowerMissingPhase : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlPowerMissingPhase() : ModelCommand("read-event") + { + AddArgument("event-name", "power-missing-phase"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlPowerMissingPhase() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::PowerMissingPhase::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.PowerMissingPhase response", value); + } +}; +/* + * Event SystemPressureLow + */ +class ReadPumpConfigurationAndControlSystemPressureLow : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlSystemPressureLow() : ModelCommand("read-event") + { + AddArgument("event-name", "system-pressure-low"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlSystemPressureLow() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::SystemPressureLow::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.SystemPressureLow response", value); + } +}; +/* + * Event SystemPressureHigh + */ +class ReadPumpConfigurationAndControlSystemPressureHigh : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlSystemPressureHigh() : ModelCommand("read-event") + { + AddArgument("event-name", "system-pressure-high"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlSystemPressureHigh() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::SystemPressureHigh::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.SystemPressureHigh response", value); + } +}; +/* + * Event DryRunning + */ +class ReadPumpConfigurationAndControlDryRunning : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlDryRunning() : ModelCommand("read-event") + { + AddArgument("event-name", "dry-running"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlDryRunning() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::DryRunning::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.DryRunning response", value); + } +}; +/* + * Event MotorTemperatureHigh + */ +class ReadPumpConfigurationAndControlMotorTemperatureHigh : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlMotorTemperatureHigh() : ModelCommand("read-event") + { + AddArgument("event-name", "motor-temperature-high"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlMotorTemperatureHigh() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::MotorTemperatureHigh::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MotorTemperatureHigh response", value); + } +}; +/* + * Event PumpMotorFatalFailure + */ +class ReadPumpConfigurationAndControlPumpMotorFatalFailure : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlPumpMotorFatalFailure() : ModelCommand("read-event") + { + AddArgument("event-name", "pump-motor-fatal-failure"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlPumpMotorFatalFailure() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void + OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::PumpMotorFatalFailure::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.PumpMotorFatalFailure response", value); + } +}; +/* + * Event ElectronicTemperatureHigh + */ +class ReadPumpConfigurationAndControlElectronicTemperatureHigh : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlElectronicTemperatureHigh() : ModelCommand("read-event") + { + AddArgument("event-name", "electronic-temperature-high"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlElectronicTemperatureHigh() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster + .ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void + OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicTemperatureHigh::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.ElectronicTemperatureHigh response", value); + } +}; +/* + * Event PumpBlocked + */ +class ReadPumpConfigurationAndControlPumpBlocked : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlPumpBlocked() : ModelCommand("read-event") + { + AddArgument("event-name", "pump-blocked"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlPumpBlocked() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::PumpBlocked::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.PumpBlocked response", value); + } +}; +/* + * Event SensorFailure + */ +class ReadPumpConfigurationAndControlSensorFailure : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlSensorFailure() : ModelCommand("read-event") + { + AddArgument("event-name", "sensor-failure"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlSensorFailure() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::SensorFailure::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.SensorFailure response", value); + } +}; +/* + * Event ElectronicNonFatalFailure + */ +class ReadPumpConfigurationAndControlElectronicNonFatalFailure : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlElectronicNonFatalFailure() : ModelCommand("read-event") + { + AddArgument("event-name", "electronic-non-fatal-failure"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlElectronicNonFatalFailure() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster + .ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void + OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicNonFatalFailure::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.ElectronicNonFatalFailure response", value); + } +}; +/* + * Event ElectronicFatalFailure + */ +class ReadPumpConfigurationAndControlElectronicFatalFailure : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlElectronicFatalFailure() : ModelCommand("read-event") + { + AddArgument("event-name", "electronic-fatal-failure"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlElectronicFatalFailure() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void + OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::ElectronicFatalFailure::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.ElectronicFatalFailure response", value); + } +}; +/* + * Event GeneralFault + */ +class ReadPumpConfigurationAndControlGeneralFault : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlGeneralFault() : ModelCommand("read-event") + { + AddArgument("event-name", "general-fault"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlGeneralFault() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::GeneralFault::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.GeneralFault response", value); + } +}; +/* + * Event Leakage + */ +class ReadPumpConfigurationAndControlLeakage : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlLeakage() : ModelCommand("read-event") + { + AddArgument("event-name", "leakage"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlLeakage() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::Leakage::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.Leakage response", value); + } +}; +/* + * Event AirDetection + */ +class ReadPumpConfigurationAndControlAirDetection : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlAirDetection() : ModelCommand("read-event") + { + AddArgument("event-name", "air-detection"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlAirDetection() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::AirDetection::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.AirDetection response", value); + } +}; +/* + * Event TurbineOperation + */ +class ReadPumpConfigurationAndControlTurbineOperation : public ModelCommand +{ +public: + ReadPumpConfigurationAndControlTurbineOperation() : ModelCommand("read-event") + { + AddArgument("event-name", "turbine-operation"); + ModelCommand::AddArguments(); + } + + ~ReadPumpConfigurationAndControlTurbineOperation() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::PumpConfigurationAndControlCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::PumpConfigurationAndControl::Events::TurbineOperation::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.TurbineOperation response", value); + } +}; + /* * Attribute MaxPressure */ @@ -28923,7 +30996,7 @@ class ReadPumpConfigurationAndControlMaxPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -28933,7 +31006,7 @@ class ReadPumpConfigurationAndControlMaxPressure : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxPressure response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxPressure response", value); } }; @@ -28953,7 +31026,7 @@ class ReportPumpConfigurationAndControlMaxPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -28995,7 +31068,7 @@ class ReadPumpConfigurationAndControlMaxSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29005,7 +31078,7 @@ class ReadPumpConfigurationAndControlMaxSpeed : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxSpeed response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxSpeed response", value); } }; @@ -29025,7 +31098,7 @@ class ReportPumpConfigurationAndControlMaxSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29064,7 +31137,7 @@ class ReadPumpConfigurationAndControlMaxFlow : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29074,7 +31147,7 @@ class ReadPumpConfigurationAndControlMaxFlow : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxFlow response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxFlow response", value); } }; @@ -29094,7 +31167,7 @@ class ReportPumpConfigurationAndControlMaxFlow : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29133,7 +31206,7 @@ class ReadPumpConfigurationAndControlMinConstPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29143,7 +31216,7 @@ class ReadPumpConfigurationAndControlMinConstPressure : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstPressure response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MinConstPressure response", value); } }; @@ -29163,7 +31236,7 @@ class ReportPumpConfigurationAndControlMinConstPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29205,7 +31278,7 @@ class ReadPumpConfigurationAndControlMaxConstPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29215,7 +31288,7 @@ class ReadPumpConfigurationAndControlMaxConstPressure : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstPressure response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxConstPressure response", value); } }; @@ -29235,7 +31308,7 @@ class ReportPumpConfigurationAndControlMaxConstPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29277,7 +31350,7 @@ class ReadPumpConfigurationAndControlMinCompPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29287,7 +31360,7 @@ class ReadPumpConfigurationAndControlMinCompPressure : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinCompPressure response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MinCompPressure response", value); } }; @@ -29307,7 +31380,7 @@ class ReportPumpConfigurationAndControlMinCompPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29349,7 +31422,7 @@ class ReadPumpConfigurationAndControlMaxCompPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29359,7 +31432,7 @@ class ReadPumpConfigurationAndControlMaxCompPressure : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxCompPressure response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxCompPressure response", value); } }; @@ -29379,7 +31452,7 @@ class ReportPumpConfigurationAndControlMaxCompPressure : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29421,7 +31494,7 @@ class ReadPumpConfigurationAndControlMinConstSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29431,7 +31504,7 @@ class ReadPumpConfigurationAndControlMinConstSpeed : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstSpeed response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MinConstSpeed response", value); } }; @@ -29451,7 +31524,7 @@ class ReportPumpConfigurationAndControlMinConstSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29493,7 +31566,7 @@ class ReadPumpConfigurationAndControlMaxConstSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29503,7 +31576,7 @@ class ReadPumpConfigurationAndControlMaxConstSpeed : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstSpeed response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxConstSpeed response", value); } }; @@ -29523,7 +31596,7 @@ class ReportPumpConfigurationAndControlMaxConstSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29565,7 +31638,7 @@ class ReadPumpConfigurationAndControlMinConstFlow : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29575,7 +31648,7 @@ class ReadPumpConfigurationAndControlMinConstFlow : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstFlow response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MinConstFlow response", value); } }; @@ -29595,7 +31668,7 @@ class ReportPumpConfigurationAndControlMinConstFlow : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29637,7 +31710,7 @@ class ReadPumpConfigurationAndControlMaxConstFlow : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29647,7 +31720,7 @@ class ReadPumpConfigurationAndControlMaxConstFlow : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstFlow response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxConstFlow response", value); } }; @@ -29667,7 +31740,7 @@ class ReportPumpConfigurationAndControlMaxConstFlow : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29709,7 +31782,7 @@ class ReadPumpConfigurationAndControlMinConstTemp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29719,7 +31792,7 @@ class ReadPumpConfigurationAndControlMinConstTemp : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MinConstTemp response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MinConstTemp response", value); } }; @@ -29739,7 +31812,7 @@ class ReportPumpConfigurationAndControlMinConstTemp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29781,7 +31854,7 @@ class ReadPumpConfigurationAndControlMaxConstTemp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29791,7 +31864,7 @@ class ReadPumpConfigurationAndControlMaxConstTemp : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.MaxConstTemp response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.MaxConstTemp response", value); } }; @@ -29811,7 +31884,7 @@ class ReportPumpConfigurationAndControlMaxConstTemp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29853,7 +31926,7 @@ class ReadPumpConfigurationAndControlPumpStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29863,7 +31936,7 @@ class ReadPumpConfigurationAndControlPumpStatus : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.PumpStatus response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.PumpStatus response", value); } }; @@ -29883,7 +31956,7 @@ class ReportPumpConfigurationAndControlPumpStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29925,7 +31998,7 @@ class ReadPumpConfigurationAndControlEffectiveOperationMode : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29936,7 +32009,7 @@ class ReadPumpConfigurationAndControlEffectiveOperationMode : public ModelComman static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.EffectiveOperationMode response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.EffectiveOperationMode response", value); } }; @@ -29956,7 +32029,7 @@ class ReportPumpConfigurationAndControlEffectiveOperationMode : public ModelComm CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -29999,7 +32072,7 @@ class ReadPumpConfigurationAndControlEffectiveControlMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30009,7 +32082,7 @@ class ReadPumpConfigurationAndControlEffectiveControlMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.EffectiveControlMode response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.EffectiveControlMode response", value); } }; @@ -30029,7 +32102,7 @@ class ReportPumpConfigurationAndControlEffectiveControlMode : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30072,7 +32145,7 @@ class ReadPumpConfigurationAndControlCapacity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30082,7 +32155,7 @@ class ReadPumpConfigurationAndControlCapacity : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.Capacity response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.Capacity response", value); } }; @@ -30102,7 +32175,7 @@ class ReportPumpConfigurationAndControlCapacity : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30141,7 +32214,7 @@ class ReadPumpConfigurationAndControlSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30151,7 +32224,7 @@ class ReadPumpConfigurationAndControlSpeed : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.Speed response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.Speed response", value); } }; @@ -30171,7 +32244,7 @@ class ReportPumpConfigurationAndControlSpeed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30210,7 +32283,7 @@ class ReadPumpConfigurationAndControlLifetimeRunningHours : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30220,7 +32293,7 @@ class ReadPumpConfigurationAndControlLifetimeRunningHours : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.LifetimeRunningHours response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.LifetimeRunningHours response", value); } }; @@ -30238,7 +32311,7 @@ class WritePumpConfigurationAndControlLifetimeRunningHours : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30266,7 +32339,7 @@ class ReportPumpConfigurationAndControlLifetimeRunningHours : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30309,7 +32382,7 @@ class ReadPumpConfigurationAndControlPower : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30319,7 +32392,7 @@ class ReadPumpConfigurationAndControlPower : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.Power response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.Power response", value); } }; @@ -30339,7 +32412,7 @@ class ReportPumpConfigurationAndControlPower : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30378,7 +32451,7 @@ class ReadPumpConfigurationAndControlLifetimeEnergyConsumed : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30389,7 +32462,7 @@ class ReadPumpConfigurationAndControlLifetimeEnergyConsumed : public ModelComman static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.LifetimeEnergyConsumed response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.LifetimeEnergyConsumed response", value); } }; @@ -30407,7 +32480,7 @@ class WritePumpConfigurationAndControlLifetimeEnergyConsumed : public ModelComma CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30436,7 +32509,7 @@ class ReportPumpConfigurationAndControlLifetimeEnergyConsumed : public ModelComm CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30479,7 +32552,7 @@ class ReadPumpConfigurationAndControlOperationMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30489,7 +32562,7 @@ class ReadPumpConfigurationAndControlOperationMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.OperationMode response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.OperationMode response", value); } }; @@ -30507,7 +32580,7 @@ class WritePumpConfigurationAndControlOperationMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30535,7 +32608,7 @@ class ReportPumpConfigurationAndControlOperationMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30577,7 +32650,7 @@ class ReadPumpConfigurationAndControlControlMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30587,7 +32660,7 @@ class ReadPumpConfigurationAndControlControlMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.ControlMode response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.ControlMode response", value); } }; @@ -30605,7 +32678,7 @@ class WritePumpConfigurationAndControlControlMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30633,7 +32706,7 @@ class ReportPumpConfigurationAndControlControlMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30675,7 +32748,7 @@ class ReadPumpConfigurationAndControlAlarmMask : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30685,7 +32758,7 @@ class ReadPumpConfigurationAndControlAlarmMask : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.AlarmMask response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.AlarmMask response", value); } }; @@ -30705,7 +32778,7 @@ class ReportPumpConfigurationAndControlAlarmMask : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30747,7 +32820,7 @@ class ReadPumpConfigurationAndControlAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30757,7 +32830,7 @@ class ReadPumpConfigurationAndControlAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.AttributeList response", value); } }; @@ -30777,7 +32850,7 @@ class ReadPumpConfigurationAndControlFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30787,7 +32860,7 @@ class ReadPumpConfigurationAndControlFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.FeatureMap response", value); } }; @@ -30807,7 +32880,7 @@ class ReportPumpConfigurationAndControlFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30849,7 +32922,7 @@ class ReadPumpConfigurationAndControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30859,7 +32932,7 @@ class ReadPumpConfigurationAndControlClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "PumpConfigurationAndControl.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "PumpConfigurationAndControl.ClusterRevision response", value); } }; @@ -30879,7 +32952,7 @@ class ReportPumpConfigurationAndControlClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0200) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0200) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::PumpConfigurationAndControlCluster cluster; cluster.Associate(device, endpointId); @@ -30935,7 +33008,7 @@ class ReadRelativeHumidityMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -30945,7 +33018,7 @@ class ReadRelativeHumidityMeasurementMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.MeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "RelativeHumidityMeasurement.MeasuredValue response", value); } }; @@ -30965,7 +33038,7 @@ class ReportRelativeHumidityMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31007,7 +33080,7 @@ class ReadRelativeHumidityMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31017,7 +33090,7 @@ class ReadRelativeHumidityMeasurementMinMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.MinMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "RelativeHumidityMeasurement.MinMeasuredValue response", value); } }; @@ -31037,7 +33110,7 @@ class ReportRelativeHumidityMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31079,7 +33152,7 @@ class ReadRelativeHumidityMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31089,7 +33162,7 @@ class ReadRelativeHumidityMeasurementMaxMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.MaxMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "RelativeHumidityMeasurement.MaxMeasuredValue response", value); } }; @@ -31109,7 +33182,7 @@ class ReportRelativeHumidityMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31151,7 +33224,7 @@ class ReadRelativeHumidityMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31161,7 +33234,7 @@ class ReadRelativeHumidityMeasurementTolerance : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.Tolerance response", value); + OnGeneralAttributeEventResponse(context, "RelativeHumidityMeasurement.Tolerance response", value); } }; @@ -31181,7 +33254,7 @@ class ReportRelativeHumidityMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31223,7 +33296,7 @@ class ReadRelativeHumidityMeasurementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31233,7 +33306,7 @@ class ReadRelativeHumidityMeasurementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "RelativeHumidityMeasurement.AttributeList response", value); } }; @@ -31253,7 +33326,7 @@ class ReadRelativeHumidityMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31263,7 +33336,7 @@ class ReadRelativeHumidityMeasurementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "RelativeHumidityMeasurement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "RelativeHumidityMeasurement.ClusterRevision response", value); } }; @@ -31283,7 +33356,7 @@ class ReportRelativeHumidityMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0405) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0405) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::RelativeHumidityMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -31524,7 +33597,7 @@ class ReadScenesSceneCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31534,7 +33607,7 @@ class ReadScenesSceneCount : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Scenes.SceneCount response", value); + OnGeneralAttributeEventResponse(context, "Scenes.SceneCount response", value); } }; @@ -31554,7 +33627,7 @@ class ReportScenesSceneCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31593,7 +33666,7 @@ class ReadScenesCurrentScene : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31603,7 +33676,7 @@ class ReadScenesCurrentScene : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Scenes.CurrentScene response", value); + OnGeneralAttributeEventResponse(context, "Scenes.CurrentScene response", value); } }; @@ -31623,7 +33696,7 @@ class ReportScenesCurrentScene : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31662,7 +33735,7 @@ class ReadScenesCurrentGroup : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31672,7 +33745,7 @@ class ReadScenesCurrentGroup : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Scenes.CurrentGroup response", value); + OnGeneralAttributeEventResponse(context, "Scenes.CurrentGroup response", value); } }; @@ -31692,7 +33765,7 @@ class ReportScenesCurrentGroup : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31731,7 +33804,7 @@ class ReadScenesSceneValid : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31741,7 +33814,7 @@ class ReadScenesSceneValid : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "Scenes.SceneValid response", value); + OnGeneralAttributeEventResponse(context, "Scenes.SceneValid response", value); } }; @@ -31761,7 +33834,7 @@ class ReportScenesSceneValid : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31800,7 +33873,7 @@ class ReadScenesNameSupport : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31810,7 +33883,7 @@ class ReadScenesNameSupport : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Scenes.NameSupport response", value); + OnGeneralAttributeEventResponse(context, "Scenes.NameSupport response", value); } }; @@ -31830,7 +33903,7 @@ class ReportScenesNameSupport : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31869,7 +33942,7 @@ class ReadScenesAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31879,7 +33952,7 @@ class ReadScenesAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Scenes.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Scenes.AttributeList response", value); } }; @@ -31899,7 +33972,7 @@ class ReadScenesClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31909,7 +33982,7 @@ class ReadScenesClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Scenes.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Scenes.ClusterRevision response", value); } }; @@ -31929,7 +34002,7 @@ class ReportScenesClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0005) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0005) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ScenesCluster cluster; cluster.Associate(device, endpointId); @@ -31988,6 +34061,37 @@ class SoftwareDiagnosticsResetWatermarks : public ModelCommand chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type mRequest; }; +/* + * Event SoftwareFault + */ +class ReadSoftwareDiagnosticsSoftwareFault : public ModelCommand +{ +public: + ReadSoftwareDiagnosticsSoftwareFault() : ModelCommand("read-event") + { + AddArgument("event-name", "software-fault"); + ModelCommand::AddArguments(); + } + + ~ReadSoftwareDiagnosticsSoftwareFault() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SoftwareDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::SoftwareDiagnostics::Events::SoftwareFault::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.SoftwareFault response", value); + } +}; + /* * Attribute ThreadMetrics */ @@ -32004,7 +34108,7 @@ class ReadSoftwareDiagnosticsThreadMetrics : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32017,7 +34121,7 @@ class ReadSoftwareDiagnosticsThreadMetrics : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.ThreadMetrics response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.ThreadMetrics response", value); } }; @@ -32037,7 +34141,7 @@ class ReportSoftwareDiagnosticsThreadMetrics : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32082,7 +34186,7 @@ class ReadSoftwareDiagnosticsCurrentHeapFree : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32092,7 +34196,7 @@ class ReadSoftwareDiagnosticsCurrentHeapFree : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.CurrentHeapFree response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.CurrentHeapFree response", value); } }; @@ -32112,7 +34216,7 @@ class ReportSoftwareDiagnosticsCurrentHeapFree : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32151,7 +34255,7 @@ class ReadSoftwareDiagnosticsCurrentHeapUsed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32161,7 +34265,7 @@ class ReadSoftwareDiagnosticsCurrentHeapUsed : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.CurrentHeapUsed response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.CurrentHeapUsed response", value); } }; @@ -32181,7 +34285,7 @@ class ReportSoftwareDiagnosticsCurrentHeapUsed : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32220,7 +34324,7 @@ class ReadSoftwareDiagnosticsCurrentHeapHighWatermark : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32230,7 +34334,7 @@ class ReadSoftwareDiagnosticsCurrentHeapHighWatermark : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.CurrentHeapHighWatermark response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.CurrentHeapHighWatermark response", value); } }; @@ -32250,7 +34354,7 @@ class ReportSoftwareDiagnosticsCurrentHeapHighWatermark : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32292,7 +34396,7 @@ class ReadSoftwareDiagnosticsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32302,7 +34406,7 @@ class ReadSoftwareDiagnosticsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.AttributeList response", value); } }; @@ -32322,7 +34426,7 @@ class ReadSoftwareDiagnosticsFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32332,7 +34436,7 @@ class ReadSoftwareDiagnosticsFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.FeatureMap response", value); } }; @@ -32352,7 +34456,7 @@ class ReadSoftwareDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32362,7 +34466,7 @@ class ReadSoftwareDiagnosticsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "SoftwareDiagnostics.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "SoftwareDiagnostics.ClusterRevision response", value); } }; @@ -32382,7 +34486,7 @@ class ReportSoftwareDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0034) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0034) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SoftwareDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -32419,6 +34523,210 @@ class ReportSoftwareDiagnosticsClusterRevision : public ModelCommand | * ClusterRevision | 0xFFFD | \*----------------------------------------------------------------------------*/ +/* + * Event SwitchLatched + */ +class ReadSwitchSwitchLatched : public ModelCommand +{ +public: + ReadSwitchSwitchLatched() : ModelCommand("read-event") + { + AddArgument("event-name", "switch-latched"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchSwitchLatched() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::SwitchLatched::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.SwitchLatched response", value); + } +}; +/* + * Event InitialPress + */ +class ReadSwitchInitialPress : public ModelCommand +{ +public: + ReadSwitchInitialPress() : ModelCommand("read-event") + { + AddArgument("event-name", "initial-press"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchInitialPress() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::InitialPress::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.InitialPress response", value); + } +}; +/* + * Event LongPress + */ +class ReadSwitchLongPress : public ModelCommand +{ +public: + ReadSwitchLongPress() : ModelCommand("read-event") + { + AddArgument("event-name", "long-press"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchLongPress() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::LongPress::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.LongPress response", value); + } +}; +/* + * Event ShortRelease + */ +class ReadSwitchShortRelease : public ModelCommand +{ +public: + ReadSwitchShortRelease() : ModelCommand("read-event") + { + AddArgument("event-name", "short-release"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchShortRelease() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::ShortRelease::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.ShortRelease response", value); + } +}; +/* + * Event LongRelease + */ +class ReadSwitchLongRelease : public ModelCommand +{ +public: + ReadSwitchLongRelease() : ModelCommand("read-event") + { + AddArgument("event-name", "long-release"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchLongRelease() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::LongRelease::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.LongRelease response", value); + } +}; +/* + * Event MultiPressOngoing + */ +class ReadSwitchMultiPressOngoing : public ModelCommand +{ +public: + ReadSwitchMultiPressOngoing() : ModelCommand("read-event") + { + AddArgument("event-name", "multi-press-ongoing"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchMultiPressOngoing() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::MultiPressOngoing::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.MultiPressOngoing response", value); + } +}; +/* + * Event MultiPressComplete + */ +class ReadSwitchMultiPressComplete : public ModelCommand +{ +public: + ReadSwitchMultiPressComplete() : ModelCommand("read-event") + { + AddArgument("event-name", "multi-press-complete"); + ModelCommand::AddArguments(); + } + + ~ReadSwitchMultiPressComplete() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::SwitchCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::Switch::Events::MultiPressComplete::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "Switch.MultiPressComplete response", value); + } +}; + /* * Attribute NumberOfPositions */ @@ -32435,7 +34743,7 @@ class ReadSwitchNumberOfPositions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32445,7 +34753,7 @@ class ReadSwitchNumberOfPositions : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Switch.NumberOfPositions response", value); + OnGeneralAttributeEventResponse(context, "Switch.NumberOfPositions response", value); } }; @@ -32465,7 +34773,7 @@ class ReportSwitchNumberOfPositions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32504,7 +34812,7 @@ class ReadSwitchCurrentPosition : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32514,7 +34822,7 @@ class ReadSwitchCurrentPosition : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Switch.CurrentPosition response", value); + OnGeneralAttributeEventResponse(context, "Switch.CurrentPosition response", value); } }; @@ -32534,7 +34842,7 @@ class ReportSwitchCurrentPosition : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32573,7 +34881,7 @@ class ReadSwitchMultiPressMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32583,7 +34891,7 @@ class ReadSwitchMultiPressMax : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Switch.MultiPressMax response", value); + OnGeneralAttributeEventResponse(context, "Switch.MultiPressMax response", value); } }; @@ -32603,7 +34911,7 @@ class ReportSwitchMultiPressMax : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32642,7 +34950,7 @@ class ReadSwitchAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32652,7 +34960,7 @@ class ReadSwitchAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Switch.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Switch.AttributeList response", value); } }; @@ -32672,7 +34980,7 @@ class ReadSwitchFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32682,7 +34990,7 @@ class ReadSwitchFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "Switch.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "Switch.FeatureMap response", value); } }; @@ -32702,7 +35010,7 @@ class ReportSwitchFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32741,7 +35049,7 @@ class ReadSwitchClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32751,7 +35059,7 @@ class ReadSwitchClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Switch.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Switch.ClusterRevision response", value); } }; @@ -32771,7 +35079,7 @@ class ReportSwitchClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x003B) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x003B) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::SwitchCluster cluster; cluster.Associate(device, endpointId); @@ -32848,7 +35156,7 @@ class ReadTargetNavigatorTargetNavigatorList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -32860,7 +35168,7 @@ class ReadTargetNavigatorTargetNavigatorList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TargetNavigator.TargetNavigatorList response", value); + OnGeneralAttributeEventResponse(context, "TargetNavigator.TargetNavigatorList response", value); } }; @@ -32880,7 +35188,7 @@ class ReportTargetNavigatorTargetNavigatorList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -32924,7 +35232,7 @@ class ReadTargetNavigatorCurrentNavigatorTarget : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -32934,7 +35242,7 @@ class ReadTargetNavigatorCurrentNavigatorTarget : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "TargetNavigator.CurrentNavigatorTarget response", value); + OnGeneralAttributeEventResponse(context, "TargetNavigator.CurrentNavigatorTarget response", value); } }; @@ -32954,7 +35262,7 @@ class ReportTargetNavigatorCurrentNavigatorTarget : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -32996,7 +35304,7 @@ class ReadTargetNavigatorAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -33006,7 +35314,7 @@ class ReadTargetNavigatorAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TargetNavigator.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "TargetNavigator.AttributeList response", value); } }; @@ -33026,7 +35334,7 @@ class ReadTargetNavigatorClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -33036,7 +35344,7 @@ class ReadTargetNavigatorClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TargetNavigator.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "TargetNavigator.ClusterRevision response", value); } }; @@ -33056,7 +35364,7 @@ class ReportTargetNavigatorClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0505) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0505) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TargetNavigatorCluster cluster; cluster.Associate(device, endpointId); @@ -33109,7 +35417,7 @@ class ReadTemperatureMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33119,7 +35427,7 @@ class ReadTemperatureMeasurementMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "TemperatureMeasurement.MeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "TemperatureMeasurement.MeasuredValue response", value); } }; @@ -33139,7 +35447,7 @@ class ReportTemperatureMeasurementMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33178,7 +35486,7 @@ class ReadTemperatureMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33188,7 +35496,7 @@ class ReadTemperatureMeasurementMinMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "TemperatureMeasurement.MinMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "TemperatureMeasurement.MinMeasuredValue response", value); } }; @@ -33208,7 +35516,7 @@ class ReportTemperatureMeasurementMinMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33250,7 +35558,7 @@ class ReadTemperatureMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33260,7 +35568,7 @@ class ReadTemperatureMeasurementMaxMeasuredValue : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "TemperatureMeasurement.MaxMeasuredValue response", value); + OnGeneralAttributeEventResponse(context, "TemperatureMeasurement.MaxMeasuredValue response", value); } }; @@ -33280,7 +35588,7 @@ class ReportTemperatureMeasurementMaxMeasuredValue : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33322,7 +35630,7 @@ class ReadTemperatureMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33332,7 +35640,7 @@ class ReadTemperatureMeasurementTolerance : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TemperatureMeasurement.Tolerance response", value); + OnGeneralAttributeEventResponse(context, "TemperatureMeasurement.Tolerance response", value); } }; @@ -33352,7 +35660,7 @@ class ReportTemperatureMeasurementTolerance : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33391,7 +35699,7 @@ class ReadTemperatureMeasurementAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33401,7 +35709,7 @@ class ReadTemperatureMeasurementAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TemperatureMeasurement.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "TemperatureMeasurement.AttributeList response", value); } }; @@ -33421,7 +35729,7 @@ class ReadTemperatureMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33431,7 +35739,7 @@ class ReadTemperatureMeasurementClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TemperatureMeasurement.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "TemperatureMeasurement.ClusterRevision response", value); } }; @@ -33451,7 +35759,7 @@ class ReportTemperatureMeasurementClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0402) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0402) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TemperatureMeasurementCluster cluster; cluster.Associate(device, endpointId); @@ -33999,6 +36307,36 @@ class TestClusterTimedInvokeRequest : public ModelCommand chip::app::Clusters::TestCluster::Commands::TimedInvokeRequest::Type mRequest; }; +/* + * Event TestEvent + */ +class ReadTestClusterTestEvent : public ModelCommand +{ +public: + ReadTestClusterTestEvent() : ModelCommand("read-event") + { + AddArgument("event-name", "test-event"); + ModelCommand::AddArguments(); + } + + ~ReadTestClusterTestEvent() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::TestClusterCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent(this, OnEventResponse, + OnDefaultFailure); + } + + static void OnEventResponse(void * context, chip::app::Clusters::TestCluster::Events::TestEvent::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "TestCluster.TestEvent response", value); + } +}; + /* * Attribute Boolean */ @@ -34015,7 +36353,7 @@ class ReadTestClusterBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34025,7 +36363,7 @@ class ReadTestClusterBoolean : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "TestCluster.Boolean response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Boolean response", value); } }; @@ -34043,7 +36381,7 @@ class WriteTestClusterBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34071,7 +36409,7 @@ class ReportTestClusterBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34110,7 +36448,7 @@ class ReadTestClusterBitmap8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34120,7 +36458,7 @@ class ReadTestClusterBitmap8 : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Bitmap8 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Bitmap8 response", value); } }; @@ -34138,7 +36476,7 @@ class WriteTestClusterBitmap8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34166,7 +36504,7 @@ class ReportTestClusterBitmap8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34205,7 +36543,7 @@ class ReadTestClusterBitmap16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34215,7 +36553,7 @@ class ReadTestClusterBitmap16 : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Bitmap16 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Bitmap16 response", value); } }; @@ -34233,7 +36571,7 @@ class WriteTestClusterBitmap16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34261,7 +36599,7 @@ class ReportTestClusterBitmap16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34300,7 +36638,7 @@ class ReadTestClusterBitmap32 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34310,7 +36648,7 @@ class ReadTestClusterBitmap32 : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Bitmap32 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Bitmap32 response", value); } }; @@ -34328,7 +36666,7 @@ class WriteTestClusterBitmap32 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34356,7 +36694,7 @@ class ReportTestClusterBitmap32 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34395,7 +36733,7 @@ class ReadTestClusterBitmap64 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34405,7 +36743,7 @@ class ReadTestClusterBitmap64 : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Bitmap64 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Bitmap64 response", value); } }; @@ -34423,7 +36761,7 @@ class WriteTestClusterBitmap64 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34451,7 +36789,7 @@ class ReportTestClusterBitmap64 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34490,7 +36828,7 @@ class ReadTestClusterInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34500,7 +36838,7 @@ class ReadTestClusterInt8u : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int8u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int8u response", value); } }; @@ -34518,7 +36856,7 @@ class WriteTestClusterInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34546,7 +36884,7 @@ class ReportTestClusterInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34585,7 +36923,7 @@ class ReadTestClusterInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34595,7 +36933,7 @@ class ReadTestClusterInt16u : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int16u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int16u response", value); } }; @@ -34613,7 +36951,7 @@ class WriteTestClusterInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34641,7 +36979,7 @@ class ReportTestClusterInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34680,7 +37018,7 @@ class ReadTestClusterInt24u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34690,7 +37028,7 @@ class ReadTestClusterInt24u : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int24u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int24u response", value); } }; @@ -34708,7 +37046,7 @@ class WriteTestClusterInt24u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34736,7 +37074,7 @@ class ReportTestClusterInt24u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34775,7 +37113,7 @@ class ReadTestClusterInt32u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34785,7 +37123,7 @@ class ReadTestClusterInt32u : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int32u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int32u response", value); } }; @@ -34803,7 +37141,7 @@ class WriteTestClusterInt32u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34831,7 +37169,7 @@ class ReportTestClusterInt32u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34870,7 +37208,7 @@ class ReadTestClusterInt40u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34880,7 +37218,7 @@ class ReadTestClusterInt40u : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int40u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int40u response", value); } }; @@ -34898,7 +37236,7 @@ class WriteTestClusterInt40u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34926,7 +37264,7 @@ class ReportTestClusterInt40u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34965,7 +37303,7 @@ class ReadTestClusterInt48u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -34975,7 +37313,7 @@ class ReadTestClusterInt48u : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int48u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int48u response", value); } }; @@ -34993,7 +37331,7 @@ class WriteTestClusterInt48u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35021,7 +37359,7 @@ class ReportTestClusterInt48u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35060,7 +37398,7 @@ class ReadTestClusterInt56u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35070,7 +37408,7 @@ class ReadTestClusterInt56u : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int56u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int56u response", value); } }; @@ -35088,7 +37426,7 @@ class WriteTestClusterInt56u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35116,7 +37454,7 @@ class ReportTestClusterInt56u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35155,7 +37493,7 @@ class ReadTestClusterInt64u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35165,7 +37503,7 @@ class ReadTestClusterInt64u : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int64u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int64u response", value); } }; @@ -35183,7 +37521,7 @@ class WriteTestClusterInt64u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35211,7 +37549,7 @@ class ReportTestClusterInt64u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35250,7 +37588,7 @@ class ReadTestClusterInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35260,7 +37598,7 @@ class ReadTestClusterInt8s : public ModelCommand static void OnAttributeResponse(void * context, int8_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int8s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int8s response", value); } }; @@ -35278,7 +37616,7 @@ class WriteTestClusterInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35306,7 +37644,7 @@ class ReportTestClusterInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35345,7 +37683,7 @@ class ReadTestClusterInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35355,7 +37693,7 @@ class ReadTestClusterInt16s : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int16s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int16s response", value); } }; @@ -35373,7 +37711,7 @@ class WriteTestClusterInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35401,7 +37739,7 @@ class ReportTestClusterInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35440,7 +37778,7 @@ class ReadTestClusterInt24s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35450,7 +37788,7 @@ class ReadTestClusterInt24s : public ModelCommand static void OnAttributeResponse(void * context, int32_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int24s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int24s response", value); } }; @@ -35468,7 +37806,7 @@ class WriteTestClusterInt24s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35496,7 +37834,7 @@ class ReportTestClusterInt24s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35535,7 +37873,7 @@ class ReadTestClusterInt32s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35545,7 +37883,7 @@ class ReadTestClusterInt32s : public ModelCommand static void OnAttributeResponse(void * context, int32_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int32s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int32s response", value); } }; @@ -35563,7 +37901,7 @@ class WriteTestClusterInt32s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35591,7 +37929,7 @@ class ReportTestClusterInt32s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35630,7 +37968,7 @@ class ReadTestClusterInt40s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35640,7 +37978,7 @@ class ReadTestClusterInt40s : public ModelCommand static void OnAttributeResponse(void * context, int64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int40s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int40s response", value); } }; @@ -35658,7 +37996,7 @@ class WriteTestClusterInt40s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35686,7 +38024,7 @@ class ReportTestClusterInt40s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35725,7 +38063,7 @@ class ReadTestClusterInt48s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35735,7 +38073,7 @@ class ReadTestClusterInt48s : public ModelCommand static void OnAttributeResponse(void * context, int64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int48s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int48s response", value); } }; @@ -35753,7 +38091,7 @@ class WriteTestClusterInt48s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35781,7 +38119,7 @@ class ReportTestClusterInt48s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35820,7 +38158,7 @@ class ReadTestClusterInt56s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35830,7 +38168,7 @@ class ReadTestClusterInt56s : public ModelCommand static void OnAttributeResponse(void * context, int64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int56s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int56s response", value); } }; @@ -35848,7 +38186,7 @@ class WriteTestClusterInt56s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35876,7 +38214,7 @@ class ReportTestClusterInt56s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35915,7 +38253,7 @@ class ReadTestClusterInt64s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35925,7 +38263,7 @@ class ReadTestClusterInt64s : public ModelCommand static void OnAttributeResponse(void * context, int64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Int64s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Int64s response", value); } }; @@ -35943,7 +38281,7 @@ class WriteTestClusterInt64s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -35971,7 +38309,7 @@ class ReportTestClusterInt64s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36010,7 +38348,7 @@ class ReadTestClusterEnum8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36020,7 +38358,7 @@ class ReadTestClusterEnum8 : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Enum8 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Enum8 response", value); } }; @@ -36038,7 +38376,7 @@ class WriteTestClusterEnum8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36066,7 +38404,7 @@ class ReportTestClusterEnum8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36105,7 +38443,7 @@ class ReadTestClusterEnum16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36115,7 +38453,7 @@ class ReadTestClusterEnum16 : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.Enum16 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Enum16 response", value); } }; @@ -36133,7 +38471,7 @@ class WriteTestClusterEnum16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36161,7 +38499,7 @@ class ReportTestClusterEnum16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36200,7 +38538,7 @@ class ReadTestClusterFloatSingle : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36210,7 +38548,7 @@ class ReadTestClusterFloatSingle : public ModelCommand static void OnAttributeResponse(void * context, float value) { - OnGeneralAttributeResponse(context, "TestCluster.FloatSingle response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.FloatSingle response", value); } }; @@ -36228,7 +38566,7 @@ class WriteTestClusterFloatSingle : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36256,7 +38594,7 @@ class ReportTestClusterFloatSingle : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36295,7 +38633,7 @@ class ReadTestClusterFloatDouble : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36305,7 +38643,7 @@ class ReadTestClusterFloatDouble : public ModelCommand static void OnAttributeResponse(void * context, double value) { - OnGeneralAttributeResponse(context, "TestCluster.FloatDouble response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.FloatDouble response", value); } }; @@ -36323,7 +38661,7 @@ class WriteTestClusterFloatDouble : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36351,7 +38689,7 @@ class ReportTestClusterFloatDouble : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36390,7 +38728,7 @@ class ReadTestClusterOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36400,7 +38738,7 @@ class ReadTestClusterOctetString : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "TestCluster.OctetString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.OctetString response", value); } }; @@ -36418,7 +38756,7 @@ class WriteTestClusterOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36446,7 +38784,7 @@ class ReportTestClusterOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36485,7 +38823,7 @@ class ReadTestClusterListInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36495,7 +38833,7 @@ class ReadTestClusterListInt8u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TestCluster.ListInt8u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.ListInt8u response", value); } }; @@ -36515,7 +38853,7 @@ class ReportTestClusterListInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36557,7 +38895,7 @@ class ReadTestClusterListOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36567,7 +38905,7 @@ class ReadTestClusterListOctetString : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TestCluster.ListOctetString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.ListOctetString response", value); } }; @@ -36587,7 +38925,7 @@ class ReportTestClusterListOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36629,7 +38967,7 @@ class ReadTestClusterListStructOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36642,7 +38980,7 @@ class ReadTestClusterListStructOctetString : public ModelCommand const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TestCluster.ListStructOctetString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.ListStructOctetString response", value); } }; @@ -36662,7 +39000,7 @@ class ReportTestClusterListStructOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36707,7 +39045,7 @@ class ReadTestClusterLongOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36717,7 +39055,7 @@ class ReadTestClusterLongOctetString : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "TestCluster.LongOctetString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.LongOctetString response", value); } }; @@ -36735,7 +39073,7 @@ class WriteTestClusterLongOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36763,7 +39101,7 @@ class ReportTestClusterLongOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36802,7 +39140,7 @@ class ReadTestClusterCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36812,7 +39150,7 @@ class ReadTestClusterCharString : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "TestCluster.CharString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.CharString response", value); } }; @@ -36830,7 +39168,7 @@ class WriteTestClusterCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36858,7 +39196,7 @@ class ReportTestClusterCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36897,7 +39235,7 @@ class ReadTestClusterLongCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36907,7 +39245,7 @@ class ReadTestClusterLongCharString : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "TestCluster.LongCharString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.LongCharString response", value); } }; @@ -36925,7 +39263,7 @@ class WriteTestClusterLongCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36953,7 +39291,7 @@ class ReportTestClusterLongCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -36992,7 +39330,7 @@ class ReadTestClusterEpochUs : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37002,7 +39340,7 @@ class ReadTestClusterEpochUs : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "TestCluster.EpochUs response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.EpochUs response", value); } }; @@ -37020,7 +39358,7 @@ class WriteTestClusterEpochUs : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37048,7 +39386,7 @@ class ReportTestClusterEpochUs : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37087,7 +39425,7 @@ class ReadTestClusterEpochS : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37097,7 +39435,7 @@ class ReadTestClusterEpochS : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "TestCluster.EpochS response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.EpochS response", value); } }; @@ -37115,7 +39453,7 @@ class WriteTestClusterEpochS : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37143,7 +39481,7 @@ class ReportTestClusterEpochS : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37182,7 +39520,7 @@ class ReadTestClusterVendorId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37192,7 +39530,7 @@ class ReadTestClusterVendorId : public ModelCommand static void OnAttributeResponse(void * context, chip::VendorId value) { - OnGeneralAttributeResponse(context, "TestCluster.VendorId response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.VendorId response", value); } }; @@ -37210,7 +39548,7 @@ class WriteTestClusterVendorId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37238,7 +39576,7 @@ class ReportTestClusterVendorId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37277,7 +39615,7 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37290,7 +39628,7 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & value) { - OnGeneralAttributeResponse(context, "TestCluster.ListNullablesAndOptionalsStruct response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.ListNullablesAndOptionalsStruct response", value); } }; @@ -37310,7 +39648,7 @@ class ReportTestClusterListNullablesAndOptionalsStruct : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37354,7 +39692,7 @@ class ReadTestClusterEnumAttr : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37364,7 +39702,7 @@ class ReadTestClusterEnumAttr : public ModelCommand static void OnAttributeResponse(void * context, chip::app::Clusters::TestCluster::SimpleEnum value) { - OnGeneralAttributeResponse(context, "TestCluster.EnumAttr response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.EnumAttr response", value); } }; @@ -37382,7 +39720,7 @@ class WriteTestClusterEnumAttr : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37410,7 +39748,7 @@ class ReportTestClusterEnumAttr : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37452,7 +39790,7 @@ class ReadTestClusterRangeRestrictedInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37462,7 +39800,7 @@ class ReadTestClusterRangeRestrictedInt8u : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt8u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.RangeRestrictedInt8u response", value); } }; @@ -37480,7 +39818,7 @@ class WriteTestClusterRangeRestrictedInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37508,7 +39846,7 @@ class ReportTestClusterRangeRestrictedInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37547,7 +39885,7 @@ class ReadTestClusterRangeRestrictedInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37557,7 +39895,7 @@ class ReadTestClusterRangeRestrictedInt8s : public ModelCommand static void OnAttributeResponse(void * context, int8_t value) { - OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt8s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.RangeRestrictedInt8s response", value); } }; @@ -37575,7 +39913,7 @@ class WriteTestClusterRangeRestrictedInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37603,7 +39941,7 @@ class ReportTestClusterRangeRestrictedInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37642,7 +39980,7 @@ class ReadTestClusterRangeRestrictedInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37652,7 +39990,7 @@ class ReadTestClusterRangeRestrictedInt16u : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt16u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.RangeRestrictedInt16u response", value); } }; @@ -37670,7 +40008,7 @@ class WriteTestClusterRangeRestrictedInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37698,7 +40036,7 @@ class ReportTestClusterRangeRestrictedInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37737,7 +40075,7 @@ class ReadTestClusterRangeRestrictedInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37747,7 +40085,7 @@ class ReadTestClusterRangeRestrictedInt16s : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.RangeRestrictedInt16s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.RangeRestrictedInt16s response", value); } }; @@ -37765,7 +40103,7 @@ class WriteTestClusterRangeRestrictedInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37793,7 +40131,7 @@ class ReportTestClusterRangeRestrictedInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37832,7 +40170,7 @@ class ReadTestClusterListLongOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37842,7 +40180,7 @@ class ReadTestClusterListLongOctetString : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TestCluster.ListLongOctetString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.ListLongOctetString response", value); } }; @@ -37862,7 +40200,7 @@ class ReadTestClusterTimedWriteBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37872,7 +40210,7 @@ class ReadTestClusterTimedWriteBoolean : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "TestCluster.TimedWriteBoolean response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.TimedWriteBoolean response", value); } }; @@ -37890,7 +40228,7 @@ class WriteTestClusterTimedWriteBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37918,7 +40256,7 @@ class ReadTestClusterUnsupported : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37928,7 +40266,7 @@ class ReadTestClusterUnsupported : public ModelCommand static void OnAttributeResponse(void * context, bool value) { - OnGeneralAttributeResponse(context, "TestCluster.Unsupported response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.Unsupported response", value); } }; @@ -37946,7 +40284,7 @@ class WriteTestClusterUnsupported : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -37974,7 +40312,7 @@ class ReportTestClusterUnsupported : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38013,7 +40351,7 @@ class ReadTestClusterNullableBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38023,7 +40361,7 @@ class ReadTestClusterNullableBoolean : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableBoolean response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableBoolean response", value); } }; @@ -38041,7 +40379,7 @@ class WriteTestClusterNullableBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38069,7 +40407,7 @@ class ReportTestClusterNullableBoolean : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38111,7 +40449,7 @@ class ReadTestClusterNullableBitmap8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38121,7 +40459,7 @@ class ReadTestClusterNullableBitmap8 : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap8 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableBitmap8 response", value); } }; @@ -38139,7 +40477,7 @@ class WriteTestClusterNullableBitmap8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38167,7 +40505,7 @@ class ReportTestClusterNullableBitmap8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38209,7 +40547,7 @@ class ReadTestClusterNullableBitmap16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38219,7 +40557,7 @@ class ReadTestClusterNullableBitmap16 : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap16 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableBitmap16 response", value); } }; @@ -38237,7 +40575,7 @@ class WriteTestClusterNullableBitmap16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38265,7 +40603,7 @@ class ReportTestClusterNullableBitmap16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38307,7 +40645,7 @@ class ReadTestClusterNullableBitmap32 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38317,7 +40655,7 @@ class ReadTestClusterNullableBitmap32 : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap32 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableBitmap32 response", value); } }; @@ -38335,7 +40673,7 @@ class WriteTestClusterNullableBitmap32 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38363,7 +40701,7 @@ class ReportTestClusterNullableBitmap32 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38405,7 +40743,7 @@ class ReadTestClusterNullableBitmap64 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38415,7 +40753,7 @@ class ReadTestClusterNullableBitmap64 : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableBitmap64 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableBitmap64 response", value); } }; @@ -38433,7 +40771,7 @@ class WriteTestClusterNullableBitmap64 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38461,7 +40799,7 @@ class ReportTestClusterNullableBitmap64 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38503,7 +40841,7 @@ class ReadTestClusterNullableInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38513,7 +40851,7 @@ class ReadTestClusterNullableInt8u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt8u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt8u response", value); } }; @@ -38531,7 +40869,7 @@ class WriteTestClusterNullableInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38559,7 +40897,7 @@ class ReportTestClusterNullableInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38601,7 +40939,7 @@ class ReadTestClusterNullableInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38611,7 +40949,7 @@ class ReadTestClusterNullableInt16u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt16u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt16u response", value); } }; @@ -38629,7 +40967,7 @@ class WriteTestClusterNullableInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38657,7 +40995,7 @@ class ReportTestClusterNullableInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38699,7 +41037,7 @@ class ReadTestClusterNullableInt24u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38709,7 +41047,7 @@ class ReadTestClusterNullableInt24u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt24u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt24u response", value); } }; @@ -38727,7 +41065,7 @@ class WriteTestClusterNullableInt24u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38755,7 +41093,7 @@ class ReportTestClusterNullableInt24u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38797,7 +41135,7 @@ class ReadTestClusterNullableInt32u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38807,7 +41145,7 @@ class ReadTestClusterNullableInt32u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt32u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt32u response", value); } }; @@ -38825,7 +41163,7 @@ class WriteTestClusterNullableInt32u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38853,7 +41191,7 @@ class ReportTestClusterNullableInt32u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38895,7 +41233,7 @@ class ReadTestClusterNullableInt40u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38905,7 +41243,7 @@ class ReadTestClusterNullableInt40u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt40u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt40u response", value); } }; @@ -38923,7 +41261,7 @@ class WriteTestClusterNullableInt40u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38951,7 +41289,7 @@ class ReportTestClusterNullableInt40u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -38993,7 +41331,7 @@ class ReadTestClusterNullableInt48u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39003,7 +41341,7 @@ class ReadTestClusterNullableInt48u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt48u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt48u response", value); } }; @@ -39021,7 +41359,7 @@ class WriteTestClusterNullableInt48u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39049,7 +41387,7 @@ class ReportTestClusterNullableInt48u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39091,7 +41429,7 @@ class ReadTestClusterNullableInt56u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39101,7 +41439,7 @@ class ReadTestClusterNullableInt56u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt56u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt56u response", value); } }; @@ -39119,7 +41457,7 @@ class WriteTestClusterNullableInt56u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39147,7 +41485,7 @@ class ReportTestClusterNullableInt56u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39189,7 +41527,7 @@ class ReadTestClusterNullableInt64u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39199,7 +41537,7 @@ class ReadTestClusterNullableInt64u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt64u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt64u response", value); } }; @@ -39217,7 +41555,7 @@ class WriteTestClusterNullableInt64u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39245,7 +41583,7 @@ class ReportTestClusterNullableInt64u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39287,7 +41625,7 @@ class ReadTestClusterNullableInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39297,7 +41635,7 @@ class ReadTestClusterNullableInt8s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt8s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt8s response", value); } }; @@ -39315,7 +41653,7 @@ class WriteTestClusterNullableInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39343,7 +41681,7 @@ class ReportTestClusterNullableInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39385,7 +41723,7 @@ class ReadTestClusterNullableInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39395,7 +41733,7 @@ class ReadTestClusterNullableInt16s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt16s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt16s response", value); } }; @@ -39413,7 +41751,7 @@ class WriteTestClusterNullableInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39441,7 +41779,7 @@ class ReportTestClusterNullableInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39483,7 +41821,7 @@ class ReadTestClusterNullableInt24s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39493,7 +41831,7 @@ class ReadTestClusterNullableInt24s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt24s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt24s response", value); } }; @@ -39511,7 +41849,7 @@ class WriteTestClusterNullableInt24s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39539,7 +41877,7 @@ class ReportTestClusterNullableInt24s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39581,7 +41919,7 @@ class ReadTestClusterNullableInt32s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39591,7 +41929,7 @@ class ReadTestClusterNullableInt32s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt32s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt32s response", value); } }; @@ -39609,7 +41947,7 @@ class WriteTestClusterNullableInt32s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39637,7 +41975,7 @@ class ReportTestClusterNullableInt32s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39679,7 +42017,7 @@ class ReadTestClusterNullableInt40s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39689,7 +42027,7 @@ class ReadTestClusterNullableInt40s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt40s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt40s response", value); } }; @@ -39707,7 +42045,7 @@ class WriteTestClusterNullableInt40s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39735,7 +42073,7 @@ class ReportTestClusterNullableInt40s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39777,7 +42115,7 @@ class ReadTestClusterNullableInt48s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39787,7 +42125,7 @@ class ReadTestClusterNullableInt48s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt48s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt48s response", value); } }; @@ -39805,7 +42143,7 @@ class WriteTestClusterNullableInt48s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39833,7 +42171,7 @@ class ReportTestClusterNullableInt48s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39875,7 +42213,7 @@ class ReadTestClusterNullableInt56s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39885,7 +42223,7 @@ class ReadTestClusterNullableInt56s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt56s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt56s response", value); } }; @@ -39903,7 +42241,7 @@ class WriteTestClusterNullableInt56s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39931,7 +42269,7 @@ class ReportTestClusterNullableInt56s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39973,7 +42311,7 @@ class ReadTestClusterNullableInt64s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -39983,7 +42321,7 @@ class ReadTestClusterNullableInt64s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableInt64s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableInt64s response", value); } }; @@ -40001,7 +42339,7 @@ class WriteTestClusterNullableInt64s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40029,7 +42367,7 @@ class ReportTestClusterNullableInt64s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40071,7 +42409,7 @@ class ReadTestClusterNullableEnum8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40081,7 +42419,7 @@ class ReadTestClusterNullableEnum8 : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableEnum8 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableEnum8 response", value); } }; @@ -40099,7 +42437,7 @@ class WriteTestClusterNullableEnum8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40127,7 +42465,7 @@ class ReportTestClusterNullableEnum8 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40169,7 +42507,7 @@ class ReadTestClusterNullableEnum16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40179,7 +42517,7 @@ class ReadTestClusterNullableEnum16 : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableEnum16 response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableEnum16 response", value); } }; @@ -40197,7 +42535,7 @@ class WriteTestClusterNullableEnum16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40225,7 +42563,7 @@ class ReportTestClusterNullableEnum16 : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40267,7 +42605,7 @@ class ReadTestClusterNullableFloatSingle : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40277,7 +42615,7 @@ class ReadTestClusterNullableFloatSingle : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableFloatSingle response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableFloatSingle response", value); } }; @@ -40295,7 +42633,7 @@ class WriteTestClusterNullableFloatSingle : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40323,7 +42661,7 @@ class ReportTestClusterNullableFloatSingle : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40365,7 +42703,7 @@ class ReadTestClusterNullableFloatDouble : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40375,7 +42713,7 @@ class ReadTestClusterNullableFloatDouble : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableFloatDouble response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableFloatDouble response", value); } }; @@ -40393,7 +42731,7 @@ class WriteTestClusterNullableFloatDouble : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40421,7 +42759,7 @@ class ReportTestClusterNullableFloatDouble : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40463,7 +42801,7 @@ class ReadTestClusterNullableOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40473,7 +42811,7 @@ class ReadTestClusterNullableOctetString : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableOctetString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableOctetString response", value); } }; @@ -40491,7 +42829,7 @@ class WriteTestClusterNullableOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40519,7 +42857,7 @@ class ReportTestClusterNullableOctetString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40561,7 +42899,7 @@ class ReadTestClusterNullableCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40571,7 +42909,7 @@ class ReadTestClusterNullableCharString : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableCharString response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableCharString response", value); } }; @@ -40589,7 +42927,7 @@ class WriteTestClusterNullableCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40617,7 +42955,7 @@ class ReportTestClusterNullableCharString : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40659,7 +42997,7 @@ class ReadTestClusterNullableEnumAttr : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40670,7 +43008,7 @@ class ReadTestClusterNullableEnumAttr : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableEnumAttr response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableEnumAttr response", value); } }; @@ -40688,7 +43026,7 @@ class WriteTestClusterNullableEnumAttr : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40716,7 +43054,7 @@ class ReportTestClusterNullableEnumAttr : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40759,7 +43097,7 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40769,7 +43107,7 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt8u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableRangeRestrictedInt8u response", value); } }; @@ -40787,7 +43125,7 @@ class WriteTestClusterNullableRangeRestrictedInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40815,7 +43153,7 @@ class ReportTestClusterNullableRangeRestrictedInt8u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40857,7 +43195,7 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40867,7 +43205,7 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt8s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableRangeRestrictedInt8s response", value); } }; @@ -40885,7 +43223,7 @@ class WriteTestClusterNullableRangeRestrictedInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40913,7 +43251,7 @@ class ReportTestClusterNullableRangeRestrictedInt8s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40955,7 +43293,7 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -40965,7 +43303,7 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt16u response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableRangeRestrictedInt16u response", value); } }; @@ -40983,7 +43321,7 @@ class WriteTestClusterNullableRangeRestrictedInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41011,7 +43349,7 @@ class ReportTestClusterNullableRangeRestrictedInt16u : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41053,7 +43391,7 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41063,7 +43401,7 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "TestCluster.NullableRangeRestrictedInt16s response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.NullableRangeRestrictedInt16s response", value); } }; @@ -41081,7 +43419,7 @@ class WriteTestClusterNullableRangeRestrictedInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41109,7 +43447,7 @@ class ReportTestClusterNullableRangeRestrictedInt16s : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41151,7 +43489,7 @@ class ReadTestClusterAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41161,7 +43499,7 @@ class ReadTestClusterAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "TestCluster.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.AttributeList response", value); } }; @@ -41181,7 +43519,7 @@ class ReadTestClusterClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41191,7 +43529,7 @@ class ReadTestClusterClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "TestCluster.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "TestCluster.ClusterRevision response", value); } }; @@ -41211,7 +43549,7 @@ class ReportTestClusterClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x050F) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x050F) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::TestClusterCluster cluster; cluster.Associate(device, endpointId); @@ -41407,7 +43745,7 @@ class ReadThermostatLocalTemperature : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41417,7 +43755,7 @@ class ReadThermostatLocalTemperature : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.LocalTemperature response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.LocalTemperature response", value); } }; @@ -41437,7 +43775,7 @@ class ReportThermostatLocalTemperature : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41476,7 +43814,7 @@ class ReadThermostatAbsMinHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41486,7 +43824,7 @@ class ReadThermostatAbsMinHeatSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.AbsMinHeatSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.AbsMinHeatSetpointLimit response", value); } }; @@ -41506,7 +43844,7 @@ class ReportThermostatAbsMinHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41545,7 +43883,7 @@ class ReadThermostatAbsMaxHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41555,7 +43893,7 @@ class ReadThermostatAbsMaxHeatSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.AbsMaxHeatSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.AbsMaxHeatSetpointLimit response", value); } }; @@ -41575,7 +43913,7 @@ class ReportThermostatAbsMaxHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41614,7 +43952,7 @@ class ReadThermostatAbsMinCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41624,7 +43962,7 @@ class ReadThermostatAbsMinCoolSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.AbsMinCoolSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.AbsMinCoolSetpointLimit response", value); } }; @@ -41644,7 +43982,7 @@ class ReportThermostatAbsMinCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41683,7 +44021,7 @@ class ReadThermostatAbsMaxCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41693,7 +44031,7 @@ class ReadThermostatAbsMaxCoolSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.AbsMaxCoolSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.AbsMaxCoolSetpointLimit response", value); } }; @@ -41713,7 +44051,7 @@ class ReportThermostatAbsMaxCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41752,7 +44090,7 @@ class ReadThermostatOccupiedCoolingSetpoint : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41762,7 +44100,7 @@ class ReadThermostatOccupiedCoolingSetpoint : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.OccupiedCoolingSetpoint response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.OccupiedCoolingSetpoint response", value); } }; @@ -41780,7 +44118,7 @@ class WriteThermostatOccupiedCoolingSetpoint : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41808,7 +44146,7 @@ class ReportThermostatOccupiedCoolingSetpoint : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41847,7 +44185,7 @@ class ReadThermostatOccupiedHeatingSetpoint : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41857,7 +44195,7 @@ class ReadThermostatOccupiedHeatingSetpoint : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.OccupiedHeatingSetpoint response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.OccupiedHeatingSetpoint response", value); } }; @@ -41875,7 +44213,7 @@ class WriteThermostatOccupiedHeatingSetpoint : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41903,7 +44241,7 @@ class ReportThermostatOccupiedHeatingSetpoint : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41942,7 +44280,7 @@ class ReadThermostatMinHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41952,7 +44290,7 @@ class ReadThermostatMinHeatSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.MinHeatSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.MinHeatSetpointLimit response", value); } }; @@ -41970,7 +44308,7 @@ class WriteThermostatMinHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -41998,7 +44336,7 @@ class ReportThermostatMinHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42037,7 +44375,7 @@ class ReadThermostatMaxHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42047,7 +44385,7 @@ class ReadThermostatMaxHeatSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.MaxHeatSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.MaxHeatSetpointLimit response", value); } }; @@ -42065,7 +44403,7 @@ class WriteThermostatMaxHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42093,7 +44431,7 @@ class ReportThermostatMaxHeatSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42132,7 +44470,7 @@ class ReadThermostatMinCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42142,7 +44480,7 @@ class ReadThermostatMinCoolSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.MinCoolSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.MinCoolSetpointLimit response", value); } }; @@ -42160,7 +44498,7 @@ class WriteThermostatMinCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42188,7 +44526,7 @@ class ReportThermostatMinCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42227,7 +44565,7 @@ class ReadThermostatMaxCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42237,7 +44575,7 @@ class ReadThermostatMaxCoolSetpointLimit : public ModelCommand static void OnAttributeResponse(void * context, int16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.MaxCoolSetpointLimit response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.MaxCoolSetpointLimit response", value); } }; @@ -42255,7 +44593,7 @@ class WriteThermostatMaxCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42283,7 +44621,7 @@ class ReportThermostatMaxCoolSetpointLimit : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42322,7 +44660,7 @@ class ReadThermostatMinSetpointDeadBand : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42332,7 +44670,7 @@ class ReadThermostatMinSetpointDeadBand : public ModelCommand static void OnAttributeResponse(void * context, int8_t value) { - OnGeneralAttributeResponse(context, "Thermostat.MinSetpointDeadBand response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.MinSetpointDeadBand response", value); } }; @@ -42350,7 +44688,7 @@ class WriteThermostatMinSetpointDeadBand : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42378,7 +44716,7 @@ class ReportThermostatMinSetpointDeadBand : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42417,7 +44755,7 @@ class ReadThermostatControlSequenceOfOperation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42427,7 +44765,7 @@ class ReadThermostatControlSequenceOfOperation : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Thermostat.ControlSequenceOfOperation response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.ControlSequenceOfOperation response", value); } }; @@ -42445,7 +44783,7 @@ class WriteThermostatControlSequenceOfOperation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42473,7 +44811,7 @@ class ReportThermostatControlSequenceOfOperation : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42512,7 +44850,7 @@ class ReadThermostatSystemMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42522,7 +44860,7 @@ class ReadThermostatSystemMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Thermostat.SystemMode response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.SystemMode response", value); } }; @@ -42540,7 +44878,7 @@ class WriteThermostatSystemMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42568,7 +44906,7 @@ class ReportThermostatSystemMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42607,7 +44945,7 @@ class ReadThermostatStartOfWeek : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42617,7 +44955,7 @@ class ReadThermostatStartOfWeek : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Thermostat.StartOfWeek response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.StartOfWeek response", value); } }; @@ -42637,7 +44975,7 @@ class ReportThermostatStartOfWeek : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42676,7 +45014,7 @@ class ReadThermostatNumberOfWeeklyTransitions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42686,7 +45024,7 @@ class ReadThermostatNumberOfWeeklyTransitions : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Thermostat.NumberOfWeeklyTransitions response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.NumberOfWeeklyTransitions response", value); } }; @@ -42706,7 +45044,7 @@ class ReportThermostatNumberOfWeeklyTransitions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42745,7 +45083,7 @@ class ReadThermostatNumberOfDailyTransitions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42755,7 +45093,7 @@ class ReadThermostatNumberOfDailyTransitions : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "Thermostat.NumberOfDailyTransitions response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.NumberOfDailyTransitions response", value); } }; @@ -42775,7 +45113,7 @@ class ReportThermostatNumberOfDailyTransitions : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42814,7 +45152,7 @@ class ReadThermostatAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42824,7 +45162,7 @@ class ReadThermostatAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "Thermostat.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.AttributeList response", value); } }; @@ -42844,7 +45182,7 @@ class ReadThermostatFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42854,7 +45192,7 @@ class ReadThermostatFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "Thermostat.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.FeatureMap response", value); } }; @@ -42874,7 +45212,7 @@ class ReportThermostatFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42913,7 +45251,7 @@ class ReadThermostatClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42923,7 +45261,7 @@ class ReadThermostatClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "Thermostat.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "Thermostat.ClusterRevision response", value); } }; @@ -42943,7 +45281,7 @@ class ReportThermostatClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0201) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0201) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatCluster cluster; cluster.Associate(device, endpointId); @@ -42995,7 +45333,7 @@ class ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode : public Mo CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43006,7 +45344,7 @@ class ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode : public Mo static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.TemperatureDisplayMode response", value); + OnGeneralAttributeEventResponse(context, "ThermostatUserInterfaceConfiguration.TemperatureDisplayMode response", value); } }; @@ -43024,7 +45362,7 @@ class WriteThermostatUserInterfaceConfigurationTemperatureDisplayMode : public M CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43053,7 +45391,7 @@ class ReportThermostatUserInterfaceConfigurationTemperatureDisplayMode : public CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43096,7 +45434,7 @@ class ReadThermostatUserInterfaceConfigurationKeypadLockout : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43107,7 +45445,7 @@ class ReadThermostatUserInterfaceConfigurationKeypadLockout : public ModelComman static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.KeypadLockout response", value); + OnGeneralAttributeEventResponse(context, "ThermostatUserInterfaceConfiguration.KeypadLockout response", value); } }; @@ -43125,7 +45463,7 @@ class WriteThermostatUserInterfaceConfigurationKeypadLockout : public ModelComma CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43154,7 +45492,7 @@ class ReportThermostatUserInterfaceConfigurationKeypadLockout : public ModelComm CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43197,7 +45535,7 @@ class ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : pu CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43208,7 +45546,8 @@ class ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : pu static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.ScheduleProgrammingVisibility response", value); + OnGeneralAttributeEventResponse(context, "ThermostatUserInterfaceConfiguration.ScheduleProgrammingVisibility response", + value); } }; @@ -43226,7 +45565,7 @@ class WriteThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : p CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43255,7 +45594,7 @@ class ReportThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43298,7 +45637,7 @@ class ReadThermostatUserInterfaceConfigurationAttributeList : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43309,7 +45648,7 @@ class ReadThermostatUserInterfaceConfigurationAttributeList : public ModelComman static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ThermostatUserInterfaceConfiguration.AttributeList response", value); } }; @@ -43329,7 +45668,7 @@ class ReadThermostatUserInterfaceConfigurationClusterRevision : public ModelComm CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43340,7 +45679,7 @@ class ReadThermostatUserInterfaceConfigurationClusterRevision : public ModelComm static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThermostatUserInterfaceConfiguration.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ThermostatUserInterfaceConfiguration.ClusterRevision response", value); } }; @@ -43360,7 +45699,7 @@ class ReportThermostatUserInterfaceConfigurationClusterRevision : public ModelCo CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0204) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0204) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThermostatUserInterfaceConfigurationCluster cluster; cluster.Associate(device, endpointId); @@ -43482,6 +45821,37 @@ class ThreadNetworkDiagnosticsResetCounts : public ModelCommand chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Type mRequest; }; +/* + * Event ConnectionStatus + */ +class ReadThreadNetworkDiagnosticsConnectionStatus : public ModelCommand +{ +public: + ReadThreadNetworkDiagnosticsConnectionStatus() : ModelCommand("read-event") + { + AddArgument("event-name", "connection-status"); + ModelCommand::AddArguments(); + } + + ~ReadThreadNetworkDiagnosticsConnectionStatus() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::ThreadNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::ThreadNetworkDiagnostics::Events::ConnectionStatus::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ConnectionStatus response", value); + } +}; + /* * Attribute Channel */ @@ -43498,7 +45868,7 @@ class ReadThreadNetworkDiagnosticsChannel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43508,7 +45878,7 @@ class ReadThreadNetworkDiagnosticsChannel : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.Channel response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.Channel response", value); } }; @@ -43528,7 +45898,7 @@ class ReportThreadNetworkDiagnosticsChannel : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43567,7 +45937,7 @@ class ReadThreadNetworkDiagnosticsRoutingRole : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43577,7 +45947,7 @@ class ReadThreadNetworkDiagnosticsRoutingRole : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RoutingRole response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RoutingRole response", value); } }; @@ -43597,7 +45967,7 @@ class ReportThreadNetworkDiagnosticsRoutingRole : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43636,7 +46006,7 @@ class ReadThreadNetworkDiagnosticsNetworkName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43646,7 +46016,7 @@ class ReadThreadNetworkDiagnosticsNetworkName : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.NetworkName response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.NetworkName response", value); } }; @@ -43666,7 +46036,7 @@ class ReportThreadNetworkDiagnosticsNetworkName : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43708,7 +46078,7 @@ class ReadThreadNetworkDiagnosticsPanId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43718,7 +46088,7 @@ class ReadThreadNetworkDiagnosticsPanId : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PanId response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.PanId response", value); } }; @@ -43738,7 +46108,7 @@ class ReportThreadNetworkDiagnosticsPanId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43777,7 +46147,7 @@ class ReadThreadNetworkDiagnosticsExtendedPanId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43787,7 +46157,7 @@ class ReadThreadNetworkDiagnosticsExtendedPanId : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ExtendedPanId response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ExtendedPanId response", value); } }; @@ -43807,7 +46177,7 @@ class ReportThreadNetworkDiagnosticsExtendedPanId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43849,7 +46219,7 @@ class ReadThreadNetworkDiagnosticsMeshLocalPrefix : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43859,7 +46229,7 @@ class ReadThreadNetworkDiagnosticsMeshLocalPrefix : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.MeshLocalPrefix response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.MeshLocalPrefix response", value); } }; @@ -43879,7 +46249,7 @@ class ReportThreadNetworkDiagnosticsMeshLocalPrefix : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43921,7 +46291,7 @@ class ReadThreadNetworkDiagnosticsOverrunCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43931,7 +46301,7 @@ class ReadThreadNetworkDiagnosticsOverrunCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.OverrunCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.OverrunCount response", value); } }; @@ -43951,7 +46321,7 @@ class ReportThreadNetworkDiagnosticsOverrunCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -43993,7 +46363,7 @@ class ReadThreadNetworkDiagnosticsNeighborTableList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44006,7 +46376,7 @@ class ReadThreadNetworkDiagnosticsNeighborTableList : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.NeighborTableList response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.NeighborTableList response", value); } }; @@ -44026,7 +46396,7 @@ class ReportThreadNetworkDiagnosticsNeighborTableList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44070,7 +46440,7 @@ class ReadThreadNetworkDiagnosticsRouteTableList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44082,7 +46452,7 @@ class ReadThreadNetworkDiagnosticsRouteTableList : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::RouteTable::DecodableType> & value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RouteTableList response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RouteTableList response", value); } }; @@ -44102,7 +46472,7 @@ class ReportThreadNetworkDiagnosticsRouteTableList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44146,7 +46516,7 @@ class ReadThreadNetworkDiagnosticsPartitionId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44156,7 +46526,7 @@ class ReadThreadNetworkDiagnosticsPartitionId : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PartitionId response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.PartitionId response", value); } }; @@ -44176,7 +46546,7 @@ class ReportThreadNetworkDiagnosticsPartitionId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44215,7 +46585,7 @@ class ReadThreadNetworkDiagnosticsWeighting : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44225,7 +46595,7 @@ class ReadThreadNetworkDiagnosticsWeighting : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.Weighting response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.Weighting response", value); } }; @@ -44245,7 +46615,7 @@ class ReportThreadNetworkDiagnosticsWeighting : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44284,7 +46654,7 @@ class ReadThreadNetworkDiagnosticsDataVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44294,7 +46664,7 @@ class ReadThreadNetworkDiagnosticsDataVersion : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.DataVersion response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.DataVersion response", value); } }; @@ -44314,7 +46684,7 @@ class ReportThreadNetworkDiagnosticsDataVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44353,7 +46723,7 @@ class ReadThreadNetworkDiagnosticsStableDataVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44363,7 +46733,7 @@ class ReadThreadNetworkDiagnosticsStableDataVersion : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.StableDataVersion response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.StableDataVersion response", value); } }; @@ -44383,7 +46753,7 @@ class ReportThreadNetworkDiagnosticsStableDataVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44425,7 +46795,7 @@ class ReadThreadNetworkDiagnosticsLeaderRouterId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44435,7 +46805,7 @@ class ReadThreadNetworkDiagnosticsLeaderRouterId : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.LeaderRouterId response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.LeaderRouterId response", value); } }; @@ -44455,7 +46825,7 @@ class ReportThreadNetworkDiagnosticsLeaderRouterId : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44497,7 +46867,7 @@ class ReadThreadNetworkDiagnosticsDetachedRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44507,7 +46877,7 @@ class ReadThreadNetworkDiagnosticsDetachedRoleCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.DetachedRoleCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.DetachedRoleCount response", value); } }; @@ -44527,7 +46897,7 @@ class ReportThreadNetworkDiagnosticsDetachedRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44569,7 +46939,7 @@ class ReadThreadNetworkDiagnosticsChildRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44579,7 +46949,7 @@ class ReadThreadNetworkDiagnosticsChildRoleCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ChildRoleCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ChildRoleCount response", value); } }; @@ -44599,7 +46969,7 @@ class ReportThreadNetworkDiagnosticsChildRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44641,7 +47011,7 @@ class ReadThreadNetworkDiagnosticsRouterRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44651,7 +47021,7 @@ class ReadThreadNetworkDiagnosticsRouterRoleCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RouterRoleCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RouterRoleCount response", value); } }; @@ -44671,7 +47041,7 @@ class ReportThreadNetworkDiagnosticsRouterRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44713,7 +47083,7 @@ class ReadThreadNetworkDiagnosticsLeaderRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44723,7 +47093,7 @@ class ReadThreadNetworkDiagnosticsLeaderRoleCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.LeaderRoleCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.LeaderRoleCount response", value); } }; @@ -44743,7 +47113,7 @@ class ReportThreadNetworkDiagnosticsLeaderRoleCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44785,7 +47155,7 @@ class ReadThreadNetworkDiagnosticsAttachAttemptCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44795,7 +47165,7 @@ class ReadThreadNetworkDiagnosticsAttachAttemptCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.AttachAttemptCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.AttachAttemptCount response", value); } }; @@ -44815,7 +47185,7 @@ class ReportThreadNetworkDiagnosticsAttachAttemptCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44857,7 +47227,7 @@ class ReadThreadNetworkDiagnosticsPartitionIdChangeCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44867,7 +47237,7 @@ class ReadThreadNetworkDiagnosticsPartitionIdChangeCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PartitionIdChangeCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.PartitionIdChangeCount response", value); } }; @@ -44887,7 +47257,7 @@ class ReportThreadNetworkDiagnosticsPartitionIdChangeCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44930,7 +47300,7 @@ class ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public Mod CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -44941,7 +47311,7 @@ class ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public Mod static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.BetterPartitionAttachAttemptCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.BetterPartitionAttachAttemptCount response", value); } }; @@ -44961,7 +47331,7 @@ class ReportThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public M CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45004,7 +47374,7 @@ class ReadThreadNetworkDiagnosticsParentChangeCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45014,7 +47384,7 @@ class ReadThreadNetworkDiagnosticsParentChangeCount : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ParentChangeCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ParentChangeCount response", value); } }; @@ -45034,7 +47404,7 @@ class ReportThreadNetworkDiagnosticsParentChangeCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45076,7 +47446,7 @@ class ReadThreadNetworkDiagnosticsTxTotalCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45086,7 +47456,7 @@ class ReadThreadNetworkDiagnosticsTxTotalCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxTotalCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxTotalCount response", value); } }; @@ -45106,7 +47476,7 @@ class ReportThreadNetworkDiagnosticsTxTotalCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45148,7 +47518,7 @@ class ReadThreadNetworkDiagnosticsTxUnicastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45158,7 +47528,7 @@ class ReadThreadNetworkDiagnosticsTxUnicastCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxUnicastCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxUnicastCount response", value); } }; @@ -45178,7 +47548,7 @@ class ReportThreadNetworkDiagnosticsTxUnicastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45220,7 +47590,7 @@ class ReadThreadNetworkDiagnosticsTxBroadcastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45230,7 +47600,7 @@ class ReadThreadNetworkDiagnosticsTxBroadcastCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxBroadcastCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxBroadcastCount response", value); } }; @@ -45250,7 +47620,7 @@ class ReportThreadNetworkDiagnosticsTxBroadcastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45292,7 +47662,7 @@ class ReadThreadNetworkDiagnosticsTxAckRequestedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45302,7 +47672,7 @@ class ReadThreadNetworkDiagnosticsTxAckRequestedCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxAckRequestedCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxAckRequestedCount response", value); } }; @@ -45322,7 +47692,7 @@ class ReportThreadNetworkDiagnosticsTxAckRequestedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45364,7 +47734,7 @@ class ReadThreadNetworkDiagnosticsTxAckedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45374,7 +47744,7 @@ class ReadThreadNetworkDiagnosticsTxAckedCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxAckedCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxAckedCount response", value); } }; @@ -45394,7 +47764,7 @@ class ReportThreadNetworkDiagnosticsTxAckedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45436,7 +47806,7 @@ class ReadThreadNetworkDiagnosticsTxNoAckRequestedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45446,7 +47816,7 @@ class ReadThreadNetworkDiagnosticsTxNoAckRequestedCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxNoAckRequestedCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxNoAckRequestedCount response", value); } }; @@ -45466,7 +47836,7 @@ class ReportThreadNetworkDiagnosticsTxNoAckRequestedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45509,7 +47879,7 @@ class ReadThreadNetworkDiagnosticsTxDataCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45519,7 +47889,7 @@ class ReadThreadNetworkDiagnosticsTxDataCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxDataCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxDataCount response", value); } }; @@ -45539,7 +47909,7 @@ class ReportThreadNetworkDiagnosticsTxDataCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45578,7 +47948,7 @@ class ReadThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45588,7 +47958,7 @@ class ReadThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxDataPollCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxDataPollCount response", value); } }; @@ -45608,7 +47978,7 @@ class ReportThreadNetworkDiagnosticsTxDataPollCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45650,7 +48020,7 @@ class ReadThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45660,7 +48030,7 @@ class ReadThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxBeaconCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxBeaconCount response", value); } }; @@ -45680,7 +48050,7 @@ class ReportThreadNetworkDiagnosticsTxBeaconCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45722,7 +48092,7 @@ class ReadThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45732,7 +48102,7 @@ class ReadThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxBeaconRequestCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxBeaconRequestCount response", value); } }; @@ -45752,7 +48122,7 @@ class ReportThreadNetworkDiagnosticsTxBeaconRequestCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45795,7 +48165,7 @@ class ReadThreadNetworkDiagnosticsTxOtherCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45805,7 +48175,7 @@ class ReadThreadNetworkDiagnosticsTxOtherCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxOtherCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxOtherCount response", value); } }; @@ -45825,7 +48195,7 @@ class ReportThreadNetworkDiagnosticsTxOtherCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45867,7 +48237,7 @@ class ReadThreadNetworkDiagnosticsTxRetryCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45877,7 +48247,7 @@ class ReadThreadNetworkDiagnosticsTxRetryCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxRetryCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxRetryCount response", value); } }; @@ -45897,7 +48267,7 @@ class ReportThreadNetworkDiagnosticsTxRetryCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45939,7 +48309,7 @@ class ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ModelComm CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -45950,7 +48320,7 @@ class ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ModelComm static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxDirectMaxRetryExpiryCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxDirectMaxRetryExpiryCount response", value); } }; @@ -45970,7 +48340,7 @@ class ReportThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ModelCo CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46013,7 +48383,7 @@ class ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ModelCo CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46024,7 +48394,7 @@ class ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ModelCo static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxIndirectMaxRetryExpiryCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxIndirectMaxRetryExpiryCount response", value); } }; @@ -46044,7 +48414,7 @@ class ReportThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public Model CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46087,7 +48457,7 @@ class ReadThreadNetworkDiagnosticsTxErrCcaCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46097,7 +48467,7 @@ class ReadThreadNetworkDiagnosticsTxErrCcaCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxErrCcaCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxErrCcaCount response", value); } }; @@ -46117,7 +48487,7 @@ class ReportThreadNetworkDiagnosticsTxErrCcaCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46159,7 +48529,7 @@ class ReadThreadNetworkDiagnosticsTxErrAbortCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46169,7 +48539,7 @@ class ReadThreadNetworkDiagnosticsTxErrAbortCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxErrAbortCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxErrAbortCount response", value); } }; @@ -46189,7 +48559,7 @@ class ReportThreadNetworkDiagnosticsTxErrAbortCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46231,7 +48601,7 @@ class ReadThreadNetworkDiagnosticsTxErrBusyChannelCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46241,7 +48611,7 @@ class ReadThreadNetworkDiagnosticsTxErrBusyChannelCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.TxErrBusyChannelCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.TxErrBusyChannelCount response", value); } }; @@ -46261,7 +48631,7 @@ class ReportThreadNetworkDiagnosticsTxErrBusyChannelCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46304,7 +48674,7 @@ class ReadThreadNetworkDiagnosticsRxTotalCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46314,7 +48684,7 @@ class ReadThreadNetworkDiagnosticsRxTotalCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxTotalCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxTotalCount response", value); } }; @@ -46334,7 +48704,7 @@ class ReportThreadNetworkDiagnosticsRxTotalCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46376,7 +48746,7 @@ class ReadThreadNetworkDiagnosticsRxUnicastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46386,7 +48756,7 @@ class ReadThreadNetworkDiagnosticsRxUnicastCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxUnicastCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxUnicastCount response", value); } }; @@ -46406,7 +48776,7 @@ class ReportThreadNetworkDiagnosticsRxUnicastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46448,7 +48818,7 @@ class ReadThreadNetworkDiagnosticsRxBroadcastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46458,7 +48828,7 @@ class ReadThreadNetworkDiagnosticsRxBroadcastCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxBroadcastCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxBroadcastCount response", value); } }; @@ -46478,7 +48848,7 @@ class ReportThreadNetworkDiagnosticsRxBroadcastCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46520,7 +48890,7 @@ class ReadThreadNetworkDiagnosticsRxDataCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46530,7 +48900,7 @@ class ReadThreadNetworkDiagnosticsRxDataCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDataCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxDataCount response", value); } }; @@ -46550,7 +48920,7 @@ class ReportThreadNetworkDiagnosticsRxDataCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46589,7 +48959,7 @@ class ReadThreadNetworkDiagnosticsRxDataPollCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46599,7 +48969,7 @@ class ReadThreadNetworkDiagnosticsRxDataPollCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDataPollCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxDataPollCount response", value); } }; @@ -46619,7 +48989,7 @@ class ReportThreadNetworkDiagnosticsRxDataPollCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46661,7 +49031,7 @@ class ReadThreadNetworkDiagnosticsRxBeaconCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46671,7 +49041,7 @@ class ReadThreadNetworkDiagnosticsRxBeaconCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxBeaconCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxBeaconCount response", value); } }; @@ -46691,7 +49061,7 @@ class ReportThreadNetworkDiagnosticsRxBeaconCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46733,7 +49103,7 @@ class ReadThreadNetworkDiagnosticsRxBeaconRequestCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46743,7 +49113,7 @@ class ReadThreadNetworkDiagnosticsRxBeaconRequestCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxBeaconRequestCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxBeaconRequestCount response", value); } }; @@ -46763,7 +49133,7 @@ class ReportThreadNetworkDiagnosticsRxBeaconRequestCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46806,7 +49176,7 @@ class ReadThreadNetworkDiagnosticsRxOtherCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46816,7 +49186,7 @@ class ReadThreadNetworkDiagnosticsRxOtherCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxOtherCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxOtherCount response", value); } }; @@ -46836,7 +49206,7 @@ class ReportThreadNetworkDiagnosticsRxOtherCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46878,7 +49248,7 @@ class ReadThreadNetworkDiagnosticsRxAddressFilteredCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46888,7 +49258,7 @@ class ReadThreadNetworkDiagnosticsRxAddressFilteredCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxAddressFilteredCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxAddressFilteredCount response", value); } }; @@ -46908,7 +49278,7 @@ class ReportThreadNetworkDiagnosticsRxAddressFilteredCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46951,7 +49321,7 @@ class ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -46961,7 +49331,7 @@ class ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDestAddrFilteredCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxDestAddrFilteredCount response", value); } }; @@ -46981,7 +49351,7 @@ class ReportThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47024,7 +49394,7 @@ class ReadThreadNetworkDiagnosticsRxDuplicatedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47034,7 +49404,7 @@ class ReadThreadNetworkDiagnosticsRxDuplicatedCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxDuplicatedCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxDuplicatedCount response", value); } }; @@ -47054,7 +49424,7 @@ class ReportThreadNetworkDiagnosticsRxDuplicatedCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47096,7 +49466,7 @@ class ReadThreadNetworkDiagnosticsRxErrNoFrameCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47106,7 +49476,7 @@ class ReadThreadNetworkDiagnosticsRxErrNoFrameCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrNoFrameCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxErrNoFrameCount response", value); } }; @@ -47126,7 +49496,7 @@ class ReportThreadNetworkDiagnosticsRxErrNoFrameCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47168,7 +49538,7 @@ class ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47179,7 +49549,7 @@ class ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ModelComman static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrUnknownNeighborCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxErrUnknownNeighborCount response", value); } }; @@ -47199,7 +49569,7 @@ class ReportThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ModelComm CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47242,7 +49612,7 @@ class ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47252,7 +49622,7 @@ class ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrInvalidSrcAddrCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxErrInvalidSrcAddrCount response", value); } }; @@ -47272,7 +49642,7 @@ class ReportThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ModelComma CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47315,7 +49685,7 @@ class ReadThreadNetworkDiagnosticsRxErrSecCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47325,7 +49695,7 @@ class ReadThreadNetworkDiagnosticsRxErrSecCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrSecCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxErrSecCount response", value); } }; @@ -47345,7 +49715,7 @@ class ReportThreadNetworkDiagnosticsRxErrSecCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47387,7 +49757,7 @@ class ReadThreadNetworkDiagnosticsRxErrFcsCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47397,7 +49767,7 @@ class ReadThreadNetworkDiagnosticsRxErrFcsCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrFcsCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxErrFcsCount response", value); } }; @@ -47417,7 +49787,7 @@ class ReportThreadNetworkDiagnosticsRxErrFcsCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47459,7 +49829,7 @@ class ReadThreadNetworkDiagnosticsRxErrOtherCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47469,7 +49839,7 @@ class ReadThreadNetworkDiagnosticsRxErrOtherCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.RxErrOtherCount response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.RxErrOtherCount response", value); } }; @@ -47489,7 +49859,7 @@ class ReportThreadNetworkDiagnosticsRxErrOtherCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47531,7 +49901,7 @@ class ReadThreadNetworkDiagnosticsActiveTimestamp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47541,7 +49911,7 @@ class ReadThreadNetworkDiagnosticsActiveTimestamp : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ActiveTimestamp response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ActiveTimestamp response", value); } }; @@ -47561,7 +49931,7 @@ class ReportThreadNetworkDiagnosticsActiveTimestamp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47603,7 +49973,7 @@ class ReadThreadNetworkDiagnosticsPendingTimestamp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47613,7 +49983,7 @@ class ReadThreadNetworkDiagnosticsPendingTimestamp : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.PendingTimestamp response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.PendingTimestamp response", value); } }; @@ -47633,7 +50003,7 @@ class ReportThreadNetworkDiagnosticsPendingTimestamp : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47675,7 +50045,7 @@ class ReadThreadNetworkDiagnosticsDelay : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47685,7 +50055,7 @@ class ReadThreadNetworkDiagnosticsDelay : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.Delay response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.Delay response", value); } }; @@ -47705,7 +50075,7 @@ class ReportThreadNetworkDiagnosticsDelay : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47744,7 +50114,7 @@ class ReadThreadNetworkDiagnosticsSecurityPolicy : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47757,7 +50127,7 @@ class ReadThreadNetworkDiagnosticsSecurityPolicy : public ModelCommand const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::SecurityPolicy::DecodableType> & value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.SecurityPolicy response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.SecurityPolicy response", value); } }; @@ -47777,7 +50147,7 @@ class ReportThreadNetworkDiagnosticsSecurityPolicy : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47821,7 +50191,7 @@ class ReadThreadNetworkDiagnosticsChannelMask : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47831,7 +50201,7 @@ class ReadThreadNetworkDiagnosticsChannelMask : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ChannelMask response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ChannelMask response", value); } }; @@ -47851,7 +50221,7 @@ class ReportThreadNetworkDiagnosticsChannelMask : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47893,7 +50263,7 @@ class ReadThreadNetworkDiagnosticsOperationalDatasetComponents : public ModelCom CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47907,7 +50277,7 @@ class ReadThreadNetworkDiagnosticsOperationalDatasetComponents : public ModelCom const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.OperationalDatasetComponents response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.OperationalDatasetComponents response", value); } }; @@ -47927,7 +50297,7 @@ class ReportThreadNetworkDiagnosticsOperationalDatasetComponents : public ModelC CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47973,7 +50343,7 @@ class ReadThreadNetworkDiagnosticsActiveNetworkFaultsList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -47985,7 +50355,7 @@ class ReadThreadNetworkDiagnosticsActiveNetworkFaultsList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ActiveNetworkFaultsList response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ActiveNetworkFaultsList response", value); } }; @@ -48005,7 +50375,7 @@ class ReportThreadNetworkDiagnosticsActiveNetworkFaultsList : public ModelComman CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48050,7 +50420,7 @@ class ReadThreadNetworkDiagnosticsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48060,7 +50430,7 @@ class ReadThreadNetworkDiagnosticsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.AttributeList response", value); } }; @@ -48080,7 +50450,7 @@ class ReadThreadNetworkDiagnosticsFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48090,7 +50460,7 @@ class ReadThreadNetworkDiagnosticsFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.FeatureMap response", value); } }; @@ -48110,7 +50480,7 @@ class ReadThreadNetworkDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48120,7 +50490,7 @@ class ReadThreadNetworkDiagnosticsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "ThreadNetworkDiagnostics.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "ThreadNetworkDiagnostics.ClusterRevision response", value); } }; @@ -48140,7 +50510,7 @@ class ReportThreadNetworkDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0035) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0035) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::ThreadNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48192,7 +50562,7 @@ class ReadUserLabelLabelList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0041) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0041) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::UserLabelCluster cluster; cluster.Associate(device, endpointId); @@ -48204,7 +50574,7 @@ class ReadUserLabelLabelList : public ModelCommand void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "UserLabel.LabelList response", value); + OnGeneralAttributeEventResponse(context, "UserLabel.LabelList response", value); } }; @@ -48224,7 +50594,7 @@ class ReadUserLabelClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0041) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0041) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::UserLabelCluster cluster; cluster.Associate(device, endpointId); @@ -48234,7 +50604,7 @@ class ReadUserLabelClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "UserLabel.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "UserLabel.ClusterRevision response", value); } }; @@ -48265,7 +50635,7 @@ class ReadWakeOnLanWakeOnLanMacAddress : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0503) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0503) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); @@ -48275,7 +50645,7 @@ class ReadWakeOnLanWakeOnLanMacAddress : public ModelCommand static void OnAttributeResponse(void * context, chip::CharSpan value) { - OnGeneralAttributeResponse(context, "WakeOnLan.WakeOnLanMacAddress response", value); + OnGeneralAttributeEventResponse(context, "WakeOnLan.WakeOnLanMacAddress response", value); } }; @@ -48295,7 +50665,7 @@ class ReportWakeOnLanWakeOnLanMacAddress : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0503) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0503) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); @@ -48334,7 +50704,7 @@ class ReadWakeOnLanAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0503) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0503) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); @@ -48344,7 +50714,7 @@ class ReadWakeOnLanAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "WakeOnLan.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "WakeOnLan.AttributeList response", value); } }; @@ -48364,7 +50734,7 @@ class ReadWakeOnLanClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0503) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0503) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); @@ -48374,7 +50744,7 @@ class ReadWakeOnLanClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WakeOnLan.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "WakeOnLan.ClusterRevision response", value); } }; @@ -48394,7 +50764,7 @@ class ReportWakeOnLanClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0503) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0503) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WakeOnLanCluster cluster; cluster.Associate(device, endpointId); @@ -48462,6 +50832,97 @@ class WiFiNetworkDiagnosticsResetCounts : public ModelCommand chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Type mRequest; }; +/* + * Event Disconnection + */ +class ReadWiFiNetworkDiagnosticsDisconnection : public ModelCommand +{ +public: + ReadWiFiNetworkDiagnosticsDisconnection() : ModelCommand("read-event") + { + AddArgument("event-name", "disconnection"); + ModelCommand::AddArguments(); + } + + ~ReadWiFiNetworkDiagnosticsDisconnection() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::WiFiNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::Disconnection::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.Disconnection response", value); + } +}; +/* + * Event AssociationFailure + */ +class ReadWiFiNetworkDiagnosticsAssociationFailure : public ModelCommand +{ +public: + ReadWiFiNetworkDiagnosticsAssociationFailure() : ModelCommand("read-event") + { + AddArgument("event-name", "association-failure"); + ModelCommand::AddArguments(); + } + + ~ReadWiFiNetworkDiagnosticsAssociationFailure() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::WiFiNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::AssociationFailure::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.AssociationFailure response", value); + } +}; +/* + * Event ConnectionStatus + */ +class ReadWiFiNetworkDiagnosticsConnectionStatus : public ModelCommand +{ +public: + ReadWiFiNetworkDiagnosticsConnectionStatus() : ModelCommand("read-event") + { + AddArgument("event-name", "connection-status"); + ModelCommand::AddArguments(); + } + + ~ReadWiFiNetworkDiagnosticsConnectionStatus() {} + + CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override + { + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadEvent on endpoint %" PRIu8, endpointId); + + chip::Controller::WiFiNetworkDiagnosticsCluster cluster; + cluster.Associate(device, endpointId); + return cluster.ReadEvent( + this, OnEventResponse, OnDefaultFailure); + } + + static void OnEventResponse(void * context, + chip::app::Clusters::WiFiNetworkDiagnostics::Events::ConnectionStatus::DecodableType value) + { + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.ConnectionStatus response", value); + } +}; + /* * Attribute Bssid */ @@ -48478,7 +50939,7 @@ class ReadWiFiNetworkDiagnosticsBssid : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48488,7 +50949,7 @@ class ReadWiFiNetworkDiagnosticsBssid : public ModelCommand static void OnAttributeResponse(void * context, chip::ByteSpan value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.Bssid response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.Bssid response", value); } }; @@ -48508,7 +50969,7 @@ class ReportWiFiNetworkDiagnosticsBssid : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48547,7 +51008,7 @@ class ReadWiFiNetworkDiagnosticsSecurityType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48557,7 +51018,7 @@ class ReadWiFiNetworkDiagnosticsSecurityType : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.SecurityType response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.SecurityType response", value); } }; @@ -48577,7 +51038,7 @@ class ReportWiFiNetworkDiagnosticsSecurityType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48616,7 +51077,7 @@ class ReadWiFiNetworkDiagnosticsWiFiVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48626,7 +51087,7 @@ class ReadWiFiNetworkDiagnosticsWiFiVersion : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.WiFiVersion response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.WiFiVersion response", value); } }; @@ -48646,7 +51107,7 @@ class ReportWiFiNetworkDiagnosticsWiFiVersion : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48685,7 +51146,7 @@ class ReadWiFiNetworkDiagnosticsChannelNumber : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48695,7 +51156,7 @@ class ReadWiFiNetworkDiagnosticsChannelNumber : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.ChannelNumber response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.ChannelNumber response", value); } }; @@ -48715,7 +51176,7 @@ class ReportWiFiNetworkDiagnosticsChannelNumber : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48754,7 +51215,7 @@ class ReadWiFiNetworkDiagnosticsRssi : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48764,7 +51225,7 @@ class ReadWiFiNetworkDiagnosticsRssi : public ModelCommand static void OnAttributeResponse(void * context, int8_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.Rssi response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.Rssi response", value); } }; @@ -48784,7 +51245,7 @@ class ReportWiFiNetworkDiagnosticsRssi : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48823,7 +51284,7 @@ class ReadWiFiNetworkDiagnosticsBeaconLostCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48833,7 +51294,7 @@ class ReadWiFiNetworkDiagnosticsBeaconLostCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.BeaconLostCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.BeaconLostCount response", value); } }; @@ -48853,7 +51314,7 @@ class ReportWiFiNetworkDiagnosticsBeaconLostCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48895,7 +51356,7 @@ class ReadWiFiNetworkDiagnosticsBeaconRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48905,7 +51366,7 @@ class ReadWiFiNetworkDiagnosticsBeaconRxCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.BeaconRxCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.BeaconRxCount response", value); } }; @@ -48925,7 +51386,7 @@ class ReportWiFiNetworkDiagnosticsBeaconRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48964,7 +51425,7 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -48974,7 +51435,7 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastRxCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketMulticastRxCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.PacketMulticastRxCount response", value); } }; @@ -48994,7 +51455,7 @@ class ReportWiFiNetworkDiagnosticsPacketMulticastRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49037,7 +51498,7 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastTxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49047,7 +51508,7 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastTxCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketMulticastTxCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.PacketMulticastTxCount response", value); } }; @@ -49067,7 +51528,7 @@ class ReportWiFiNetworkDiagnosticsPacketMulticastTxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49110,7 +51571,7 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49120,7 +51581,7 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastRxCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketUnicastRxCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.PacketUnicastRxCount response", value); } }; @@ -49140,7 +51601,7 @@ class ReportWiFiNetworkDiagnosticsPacketUnicastRxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49182,7 +51643,7 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastTxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49192,7 +51653,7 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastTxCount : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.PacketUnicastTxCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.PacketUnicastTxCount response", value); } }; @@ -49212,7 +51673,7 @@ class ReportWiFiNetworkDiagnosticsPacketUnicastTxCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49254,7 +51715,7 @@ class ReadWiFiNetworkDiagnosticsCurrentMaxRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49264,7 +51725,7 @@ class ReadWiFiNetworkDiagnosticsCurrentMaxRate : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.CurrentMaxRate response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.CurrentMaxRate response", value); } }; @@ -49284,7 +51745,7 @@ class ReportWiFiNetworkDiagnosticsCurrentMaxRate : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49326,7 +51787,7 @@ class ReadWiFiNetworkDiagnosticsOverrunCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49336,7 +51797,7 @@ class ReadWiFiNetworkDiagnosticsOverrunCount : public ModelCommand static void OnAttributeResponse(void * context, uint64_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.OverrunCount response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.OverrunCount response", value); } }; @@ -49356,7 +51817,7 @@ class ReportWiFiNetworkDiagnosticsOverrunCount : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49395,7 +51856,7 @@ class ReadWiFiNetworkDiagnosticsAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49405,7 +51866,7 @@ class ReadWiFiNetworkDiagnosticsAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.AttributeList response", value); } }; @@ -49425,7 +51886,7 @@ class ReadWiFiNetworkDiagnosticsFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49435,7 +51896,7 @@ class ReadWiFiNetworkDiagnosticsFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.FeatureMap response", value); } }; @@ -49455,7 +51916,7 @@ class ReadWiFiNetworkDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49465,7 +51926,7 @@ class ReadWiFiNetworkDiagnosticsClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WiFiNetworkDiagnostics.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "WiFiNetworkDiagnostics.ClusterRevision response", value); } }; @@ -49485,7 +51946,7 @@ class ReportWiFiNetworkDiagnosticsClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0036) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0036) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WiFiNetworkDiagnosticsCluster cluster; cluster.Associate(device, endpointId); @@ -49721,7 +52182,7 @@ class ReadWindowCoveringType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49731,7 +52192,7 @@ class ReadWindowCoveringType : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.Type response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.Type response", value); } }; @@ -49751,7 +52212,7 @@ class ReportWindowCoveringType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49790,7 +52251,7 @@ class ReadWindowCoveringCurrentPositionLift : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49800,7 +52261,7 @@ class ReadWindowCoveringCurrentPositionLift : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionLift response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.CurrentPositionLift response", value); } }; @@ -49820,7 +52281,7 @@ class ReportWindowCoveringCurrentPositionLift : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49862,7 +52323,7 @@ class ReadWindowCoveringCurrentPositionTilt : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49872,7 +52333,7 @@ class ReadWindowCoveringCurrentPositionTilt : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionTilt response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.CurrentPositionTilt response", value); } }; @@ -49892,7 +52353,7 @@ class ReportWindowCoveringCurrentPositionTilt : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49934,7 +52395,7 @@ class ReadWindowCoveringConfigStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -49944,7 +52405,7 @@ class ReadWindowCoveringConfigStatus : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.ConfigStatus response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.ConfigStatus response", value); } }; @@ -49964,7 +52425,7 @@ class ReportWindowCoveringConfigStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50003,7 +52464,7 @@ class ReadWindowCoveringCurrentPositionLiftPercentage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50013,7 +52474,7 @@ class ReadWindowCoveringCurrentPositionLiftPercentage : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionLiftPercentage response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.CurrentPositionLiftPercentage response", value); } }; @@ -50033,7 +52494,7 @@ class ReportWindowCoveringCurrentPositionLiftPercentage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50075,7 +52536,7 @@ class ReadWindowCoveringCurrentPositionTiltPercentage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50085,7 +52546,7 @@ class ReadWindowCoveringCurrentPositionTiltPercentage : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionTiltPercentage response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.CurrentPositionTiltPercentage response", value); } }; @@ -50105,7 +52566,7 @@ class ReportWindowCoveringCurrentPositionTiltPercentage : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50147,7 +52608,7 @@ class ReadWindowCoveringOperationalStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50157,7 +52618,7 @@ class ReadWindowCoveringOperationalStatus : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.OperationalStatus response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.OperationalStatus response", value); } }; @@ -50177,7 +52638,7 @@ class ReportWindowCoveringOperationalStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50216,7 +52677,7 @@ class ReadWindowCoveringTargetPositionLiftPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50226,7 +52687,7 @@ class ReadWindowCoveringTargetPositionLiftPercent100ths : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.TargetPositionLiftPercent100ths response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.TargetPositionLiftPercent100ths response", value); } }; @@ -50246,7 +52707,7 @@ class ReportWindowCoveringTargetPositionLiftPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50289,7 +52750,7 @@ class ReadWindowCoveringTargetPositionTiltPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50299,7 +52760,7 @@ class ReadWindowCoveringTargetPositionTiltPercent100ths : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.TargetPositionTiltPercent100ths response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.TargetPositionTiltPercent100ths response", value); } }; @@ -50319,7 +52780,7 @@ class ReportWindowCoveringTargetPositionTiltPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50362,7 +52823,7 @@ class ReadWindowCoveringEndProductType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50372,7 +52833,7 @@ class ReadWindowCoveringEndProductType : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.EndProductType response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.EndProductType response", value); } }; @@ -50392,7 +52853,7 @@ class ReportWindowCoveringEndProductType : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50431,7 +52892,7 @@ class ReadWindowCoveringCurrentPositionLiftPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50441,7 +52902,7 @@ class ReadWindowCoveringCurrentPositionLiftPercent100ths : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionLiftPercent100ths response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.CurrentPositionLiftPercent100ths response", value); } }; @@ -50461,7 +52922,7 @@ class ReportWindowCoveringCurrentPositionLiftPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50504,7 +52965,7 @@ class ReadWindowCoveringCurrentPositionTiltPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50514,7 +52975,7 @@ class ReadWindowCoveringCurrentPositionTiltPercent100ths : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::Nullable & value) { - OnGeneralAttributeResponse(context, "WindowCovering.CurrentPositionTiltPercent100ths response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.CurrentPositionTiltPercent100ths response", value); } }; @@ -50534,7 +52995,7 @@ class ReportWindowCoveringCurrentPositionTiltPercent100ths : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50577,7 +53038,7 @@ class ReadWindowCoveringInstalledOpenLimitLift : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50587,7 +53048,7 @@ class ReadWindowCoveringInstalledOpenLimitLift : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.InstalledOpenLimitLift response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.InstalledOpenLimitLift response", value); } }; @@ -50607,7 +53068,7 @@ class ReportWindowCoveringInstalledOpenLimitLift : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50649,7 +53110,7 @@ class ReadWindowCoveringInstalledClosedLimitLift : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50659,7 +53120,7 @@ class ReadWindowCoveringInstalledClosedLimitLift : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.InstalledClosedLimitLift response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.InstalledClosedLimitLift response", value); } }; @@ -50679,7 +53140,7 @@ class ReportWindowCoveringInstalledClosedLimitLift : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50721,7 +53182,7 @@ class ReadWindowCoveringInstalledOpenLimitTilt : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50731,7 +53192,7 @@ class ReadWindowCoveringInstalledOpenLimitTilt : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.InstalledOpenLimitTilt response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.InstalledOpenLimitTilt response", value); } }; @@ -50751,7 +53212,7 @@ class ReportWindowCoveringInstalledOpenLimitTilt : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50793,7 +53254,7 @@ class ReadWindowCoveringInstalledClosedLimitTilt : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50803,7 +53264,7 @@ class ReadWindowCoveringInstalledClosedLimitTilt : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.InstalledClosedLimitTilt response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.InstalledClosedLimitTilt response", value); } }; @@ -50823,7 +53284,7 @@ class ReportWindowCoveringInstalledClosedLimitTilt : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50865,7 +53326,7 @@ class ReadWindowCoveringMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50875,7 +53336,7 @@ class ReadWindowCoveringMode : public ModelCommand static void OnAttributeResponse(void * context, uint8_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.Mode response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.Mode response", value); } }; @@ -50893,7 +53354,7 @@ class WriteWindowCoveringMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x01) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) WriteAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50921,7 +53382,7 @@ class ReportWindowCoveringMode : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50960,7 +53421,7 @@ class ReadWindowCoveringSafetyStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -50970,7 +53431,7 @@ class ReadWindowCoveringSafetyStatus : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.SafetyStatus response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.SafetyStatus response", value); } }; @@ -50990,7 +53451,7 @@ class ReportWindowCoveringSafetyStatus : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -51029,7 +53490,7 @@ class ReadWindowCoveringAttributeList : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -51039,7 +53500,7 @@ class ReadWindowCoveringAttributeList : public ModelCommand static void OnAttributeResponse(void * context, const chip::app::DataModel::DecodableList & value) { - OnGeneralAttributeResponse(context, "WindowCovering.AttributeList response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.AttributeList response", value); } }; @@ -51059,7 +53520,7 @@ class ReadWindowCoveringFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -51069,7 +53530,7 @@ class ReadWindowCoveringFeatureMap : public ModelCommand static void OnAttributeResponse(void * context, uint32_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.FeatureMap response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.FeatureMap response", value); } }; @@ -51089,7 +53550,7 @@ class ReportWindowCoveringFeatureMap : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -51128,7 +53589,7 @@ class ReadWindowCoveringClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x00) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReadAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -51138,7 +53599,7 @@ class ReadWindowCoveringClusterRevision : public ModelCommand static void OnAttributeResponse(void * context, uint16_t value) { - OnGeneralAttributeResponse(context, "WindowCovering.ClusterRevision response", value); + OnGeneralAttributeEventResponse(context, "WindowCovering.ClusterRevision response", value); } }; @@ -51158,7 +53619,7 @@ class ReportWindowCoveringClusterRevision : public ModelCommand CHIP_ERROR SendCommand(ChipDevice * device, uint8_t endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x0102) command (0x06) on endpoint %" PRIu8, endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x0102) ReportAttribute on endpoint %" PRIu8, endpointId); chip::Controller::WindowCoveringCluster cluster; cluster.Associate(device, endpointId); @@ -51359,6 +53820,10 @@ void registerClusterBasic(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -51407,6 +53872,7 @@ void registerClusterBooleanState(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -51435,6 +53901,8 @@ void registerClusterBridgedActions(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -51710,6 +54178,11 @@ void registerClusterDoorLock(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -51854,6 +54327,10 @@ void registerClusterGeneralDiagnostics(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -52168,6 +54645,9 @@ void registerClusterOtaSoftwareUpdateRequestor(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -52335,63 +54815,80 @@ void registerClusterPumpConfigurationAndControl(Commands & commands) const char * clusterName = "PumpConfigurationAndControl"; commands_list clusterCommands = { - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -52462,6 +54959,7 @@ void registerClusterSoftwareDiagnostics(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -52482,6 +54980,13 @@ void registerClusterSwitch(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -52765,6 +55270,7 @@ void registerClusterTestCluster(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -52983,6 +55489,7 @@ void registerClusterThreadNetworkDiagnostics(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); @@ -53048,6 +55555,9 @@ void registerClusterWiFiNetworkDiagnostics(Commands & commands) make_unique(), // make_unique(), // make_unique(), // + make_unique(), // + make_unique(), // + make_unique(), // }; commands.Register(clusterName, clusterCommands); diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 50bffa05251424..1778175a97f952 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -141,6 +141,7 @@ class TestList : public Command printf("TestClusterComplexTypes\n"); printf("TestConstraints\n"); printf("TestDelayCommands\n"); + printf("TestEvents\n"); printf("TestLogCommands\n"); printf("TestSaveAs\n"); printf("TestConfigVariables\n"); @@ -56679,6 +56680,106 @@ class TestDelayCommands : public TestCommand } }; +class TestEvents : public TestCommand +{ +public: + TestEvents() : TestCommand("TestEvents"), mTestIndex(0) + { + AddArgument("cluster", &mCluster); + AddArgument("endpoint", 0, UINT16_MAX, &mEndpoint); + } + + /////////// TestCommand Interface ///////// + void NextTest() override + { + CHIP_ERROR err = CHIP_NO_ERROR; + + if (0 == mTestIndex) + { + ChipLogProgress(chipTool, " **** Test Start: TestEvents\n"); + } + + if (mTestCount == mTestIndex) + { + ChipLogProgress(chipTool, " **** Test Complete: TestEvents\n"); + SetCommandExitStatus(CHIP_NO_ERROR); + return; + } + + Wait(); + + // Ensure we increment mTestIndex before we start running the relevant + // command. That way if we lose the timeslice after we send the message + // but before our function call returns, we won't end up with an + // incorrect mTestIndex value observed when we get the response. + switch (mTestIndex++) + { + case 0: + ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); + err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); + break; + case 1: + ChipLogProgress(chipTool, " ***** Test Step 1 : Generate an event on the accessory\n"); + err = TestGenerateAnEventOnTheAccessory_1(); + break; + } + + if (CHIP_NO_ERROR != err) + { + ChipLogError(chipTool, " ***** Test Failure: %s\n", chip::ErrorStr(err)); + SetCommandExitStatus(err); + } + } + +private: + std::atomic_uint16_t mTestIndex; + const uint16_t mTestCount = 2; + + chip::Optional mCluster; + chip::Optional mEndpoint; + + // + // Tests methods + // + + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() + { + SetIdentity(kIdentityAlpha); + return WaitForCommissionee(); + } + + CHIP_ERROR TestGenerateAnEventOnTheAccessory_1() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestEmitTestEventRequest::Type; + + RequestType request; + request.arg1 = 3; + request.arg2 = static_cast(1); + request.arg3 = true; + + auto success = [](void * context, const typename RequestType::ResponseType & data) { + (static_cast(context))->OnSuccessResponse_1(data.value); + }; + + auto failure = [](void * context, EmberAfStatus status) { + (static_cast(context))->OnFailureResponse_1(status); + }; + + ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + + void OnSuccessResponse_1(uint64_t value) + { + VerifyOrReturn(CheckValue("value", value, 0ULL)); + + NextTest(); + } +}; + class TestLogCommands : public TestCommand { public: @@ -62878,6 +62979,7 @@ void registerCommandsTests(Commands & commands) make_unique(), make_unique(), make_unique(), + make_unique(), make_unique(), make_unique(), make_unique(),