From 43b14a633e32a7a1a180191aff9f2ca542b5d3e1 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 2 Jun 2022 15:55:53 -0400 Subject: [PATCH] Remove non-Matter door lock bits from door lock XML. (#19063) * The LOG feature is "[Zigbee]" in the device library, and the Door Lock cluster spec says: "If Events are supported the logging feature SHALL NOT be supported.". That means the following attributes are not part of Matter: * NumberOfLogRecordsSupported * EnableLogging and neither are the following commands: * Get Log Record * Get Log Record Response * The NOT feature is "[Zigbee]" in the device library. Again, events replace it in Matter. That means the following attributes are not part of Matter: * KeypadOperationEventMask * RemoteOperationEventMask * ManualOperationEventMask * RFIDOperationEventMask * KeypadProgrammingEventMask * RemoteProgrammingEventMask * RFIDProgrammingEventMask and neither are the following commands: * Operating Event Notification * Programming Event Notification * The Alarms conformance is Zigbee-only in the device library, so the AlarmMask attribute is not part of Matter. * The USR feature is required in Matter if any of PIN, RID, FPG, FACE are supported. That means anything conditioned on !USR and those features is not part of Matter. Specifically, that is the following commands: * Set PIN Code * Get PIN Code * Get PIN Code Response * Clear PIN Code * Clear All PIN Codes * Set User Status * Get User Status * Get User Status Response * Set User Type * Get User Type * Get User Type Response * Set RFID Code * Get RFID Code * Get RFID Code Response * Clear RFID Code * Clear All RFID Codes Fixes https://github.com/project-chip/connectedhomeip/issues/18492 by making it clear that these are not part of Matter and hence not to be tested in Matter certification. --- .../all-clusters-app.matter | 10 - .../all-clusters-common/all-clusters-app.zap | 448 ---- .../all-clusters-minimal-app.matter | 10 - .../all-clusters-minimal-app.zap | 448 ---- examples/lock-app/lock-common/lock-app.matter | 10 - examples/lock-app/lock-common/lock-app.zap | 160 -- .../log-source-common/log-source-app.zap | 232 -- .../ota-provider-common/ota-provider-app.zap | 232 -- .../ota-requestor-app.zap | 232 -- .../thermostat-common/thermostat.zap | 464 ---- examples/tv-app/tv-common/tv-app.zap | 232 -- .../tv-casting-common/tv-casting-app.zap | 288 --- .../zcl/data-model/chip/door-lock-cluster.xml | 217 -- .../data_model/controller-clusters.matter | 15 - .../data_model/controller-clusters.zap | 200 -- .../python/chip/clusters/Objects.py | 568 ----- .../CHIPAttributeTLVValueDecoder.mm | 110 - .../CHIP/zap-generated/CHIPCallbackBridge.mm | 308 --- .../CHIPCallbackBridge_internal.h | 307 --- .../CHIP/zap-generated/CHIPClustersObjc.h | 273 --- .../CHIP/zap-generated/CHIPClustersObjc.mm | 1485 +------------ .../zap-generated/CHIPCommandPayloadsObjc.h | 484 ----- .../zap-generated/CHIPCommandPayloadsObjc.mm | 454 +--- .../zap-generated/MatterClusterConstants.h | 30 - .../app-common/zap-generated/attribute-id.h | 10 - .../zap-generated/attributes/Accessors.cpp | 310 --- .../zap-generated/attributes/Accessors.h | 58 - .../app-common/zap-generated/callback.h | 119 -- .../app-common/zap-generated/cluster-enums.h | 12 - .../zap-generated/cluster-objects.cpp | 1226 ++--------- .../zap-generated/cluster-objects.h | 1340 ++---------- .../app-common/zap-generated/command-id.h | 20 - .../app-common/zap-generated/enums.h | 14 - .../app-common/zap-generated/ids/Attributes.h | 40 - .../app-common/zap-generated/ids/Commands.h | 80 - .../zap-generated/cluster/Commands.h | 722 +------ .../cluster/logging/DataModelLogger.cpp | 167 -- .../cluster/logging/DataModelLogger.h | 14 - .../cluster/CHIPTestClustersObjc.h | 2 - .../cluster/CHIPTestClustersObjc.mm | 19 - .../zap-generated/cluster/Commands.h | 1865 +---------------- 41 files changed, 417 insertions(+), 12818 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 4a8b5a79bf4543..29b91671fbf33f 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -989,16 +989,6 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - bitmap DlAlarmMask : BITMAP16 { - kLockingMechanismJammed = 0x1; - kLockResetToFactoryDefaults = 0x2; - kReserved = 0x4; - kRFModulePowerCycled = 0x8; - kWrongCodeEntryLimit = 0x10; - kFrontEscutcheonRemovedFromMain = 0x20; - kForcedDoorOpenUnderDoorLockedCondition = 0x40; - } - bitmap DlCredentialRuleMask : BITMAP8 { kSingle = 0x1; kDual = 0x2; diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index 45197778d7046b..5984fce870eb3d 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -6274,22 +6274,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -6514,134 +6498,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, @@ -13097,22 +12953,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "NumberOfLogRecordsSupported", - "code": 16, - "mfgCode": null, - "side": "server", - "type": "int16u", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 1, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "NumberOfTotalUsersSupported", "code": 17, @@ -13305,22 +13145,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -13593,134 +13417,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "GeneratedCommandList", "code": 65528, @@ -23192,22 +22888,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -23432,134 +23112,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 5e36a9491e25ae..07e9570e5839ae 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -778,16 +778,6 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - bitmap DlAlarmMask : BITMAP16 { - kLockingMechanismJammed = 0x1; - kLockResetToFactoryDefaults = 0x2; - kReserved = 0x4; - kRFModulePowerCycled = 0x8; - kWrongCodeEntryLimit = 0x10; - kFrontEscutcheonRemovedFromMain = 0x20; - kForcedDoorOpenUnderDoorLockedCondition = 0x40; - } - bitmap DlCredentialRuleMask : BITMAP8 { kSingle = 0x1; kDual = 0x2; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap index b37ffca45ba81b..1ad40bf8b33091 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap @@ -6274,22 +6274,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -6514,134 +6498,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, @@ -13097,22 +12953,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "NumberOfLogRecordsSupported", - "code": 16, - "mfgCode": null, - "side": "server", - "type": "int16u", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 1, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "NumberOfTotalUsersSupported", "code": 17, @@ -13305,22 +13145,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -13593,134 +13417,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "GeneratedCommandList", "code": 65528, @@ -23277,22 +22973,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -23517,134 +23197,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index 1a4cf09c3e9164..9637ed09451f91 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -388,16 +388,6 @@ server cluster DoorLock = 257 { kNotSupported = 255; } - bitmap DlAlarmMask : BITMAP16 { - kLockingMechanismJammed = 0x1; - kLockResetToFactoryDefaults = 0x2; - kReserved = 0x4; - kRFModulePowerCycled = 0x8; - kWrongCodeEntryLimit = 0x10; - kFrontEscutcheonRemovedFromMain = 0x20; - kForcedDoorOpenUnderDoorLockedCondition = 0x40; - } - bitmap DlCredentialRuleMask : BITMAP8 { kSingle = 0x1; kDual = 0x2; diff --git a/examples/lock-app/lock-common/lock-app.zap b/examples/lock-app/lock-common/lock-app.zap index f08bb1e1870d40..7541d086cd6586 100755 --- a/examples/lock-app/lock-common/lock-app.zap +++ b/examples/lock-app/lock-common/lock-app.zap @@ -7412,22 +7412,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "NumberOfLogRecordsSupported", - "code": 16, - "mfgCode": null, - "side": "server", - "type": "int16u", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 1, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "NumberOfTotalUsersSupported", "code": 17, @@ -7620,22 +7604,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -7908,134 +7876,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "GeneratedCommandList", "code": 65528, diff --git a/examples/log-source-app/log-source-common/log-source-app.zap b/examples/log-source-app/log-source-common/log-source-app.zap index 73399a75a46d32..4da01a3120774b 100644 --- a/examples/log-source-app/log-source-common/log-source-app.zap +++ b/examples/log-source-app/log-source-common/log-source-app.zap @@ -1899,46 +1899,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetLogRecord", - "code": 4, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetPINCode", - "code": 5, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetPINCode", - "code": 6, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearPINCode", - "code": 7, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllPINCodes", - "code": 8, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, { "name": "SetWeekDaySchedule", "code": 11, @@ -2010,54 +1970,6 @@ "source": "client", "incoming": 1, "outgoing": 1 - }, - { - "name": "SetUserType", - "code": 20, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetUserType", - "code": 21, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetRFIDCode", - "code": 22, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCode", - "code": 23, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearRFIDCode", - "code": 24, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllRFIDCodes", - "code": 25, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 } ], "attributes": [ @@ -2152,22 +2064,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -2392,134 +2288,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap b/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap index ad244aaa64ecd0..a47aac9c2b0806 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.zap @@ -2612,46 +2612,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetLogRecord", - "code": 4, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetPINCode", - "code": 5, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetPINCode", - "code": 6, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearPINCode", - "code": 7, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllPINCodes", - "code": 8, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, { "name": "SetWeekDaySchedule", "code": 11, @@ -2723,54 +2683,6 @@ "source": "client", "incoming": 1, "outgoing": 1 - }, - { - "name": "SetUserType", - "code": 20, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetUserType", - "code": 21, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetRFIDCode", - "code": 22, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCode", - "code": 23, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearRFIDCode", - "code": 24, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllRFIDCodes", - "code": 25, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 } ], "attributes": [ @@ -2865,22 +2777,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -3105,134 +3001,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap index a0974f8537dbd5..aea3c9e627a2f4 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.zap @@ -2801,46 +2801,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetLogRecord", - "code": 4, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetPINCode", - "code": 5, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetPINCode", - "code": 6, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearPINCode", - "code": 7, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllPINCodes", - "code": 8, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, { "name": "SetWeekDaySchedule", "code": 11, @@ -2912,54 +2872,6 @@ "source": "client", "incoming": 1, "outgoing": 1 - }, - { - "name": "SetUserType", - "code": 20, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetUserType", - "code": 21, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetRFIDCode", - "code": 22, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCode", - "code": 23, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearRFIDCode", - "code": 24, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllRFIDCodes", - "code": 25, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 } ], "attributes": [ @@ -3054,22 +2966,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -3294,134 +3190,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/thermostat/thermostat-common/thermostat.zap b/examples/thermostat/thermostat-common/thermostat.zap index 1dc363e0064f03..cf16c8554b4db2 100644 --- a/examples/thermostat/thermostat-common/thermostat.zap +++ b/examples/thermostat/thermostat-common/thermostat.zap @@ -5102,46 +5102,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetLogRecord", - "code": 4, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetPINCode", - "code": 5, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetPINCode", - "code": 6, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearPINCode", - "code": 7, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllPINCodes", - "code": 8, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, { "name": "SetWeekDaySchedule", "code": 11, @@ -5213,54 +5173,6 @@ "source": "client", "incoming": 1, "outgoing": 1 - }, - { - "name": "SetUserType", - "code": 20, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetUserType", - "code": 21, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetRFIDCode", - "code": 22, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCode", - "code": 23, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearRFIDCode", - "code": 24, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllRFIDCodes", - "code": 25, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 } ], "attributes": [ @@ -5355,22 +5267,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -5595,134 +5491,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, @@ -10052,46 +9820,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetLogRecord", - "code": 4, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetPINCode", - "code": 5, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetPINCode", - "code": 6, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearPINCode", - "code": 7, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllPINCodes", - "code": 8, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, { "name": "SetWeekDaySchedule", "code": 11, @@ -10163,54 +9891,6 @@ "source": "client", "incoming": 1, "outgoing": 1 - }, - { - "name": "SetUserType", - "code": 20, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetUserType", - "code": 21, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetRFIDCode", - "code": 22, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCode", - "code": 23, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearRFIDCode", - "code": 24, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllRFIDCodes", - "code": 25, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 } ], "attributes": [ @@ -10305,22 +9985,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -10545,134 +10209,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/tv-app/tv-common/tv-app.zap b/examples/tv-app/tv-common/tv-app.zap index f209f486fd5478..6e0c49b7e94917 100644 --- a/examples/tv-app/tv-common/tv-app.zap +++ b/examples/tv-app/tv-common/tv-app.zap @@ -5118,46 +5118,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetLogRecord", - "code": 4, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetPINCode", - "code": 5, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetPINCode", - "code": 6, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearPINCode", - "code": 7, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllPINCodes", - "code": 8, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, { "name": "SetWeekDaySchedule", "code": 11, @@ -5229,54 +5189,6 @@ "source": "client", "incoming": 1, "outgoing": 1 - }, - { - "name": "SetUserType", - "code": 20, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetUserType", - "code": 21, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "SetRFIDCode", - "code": 22, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCode", - "code": 23, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearRFIDCode", - "code": 24, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "ClearAllRFIDCodes", - "code": 25, - "mfgCode": null, - "source": "client", - "incoming": 1, - "outgoing": 1 } ], "attributes": [ @@ -5371,22 +5283,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -5611,134 +5507,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap index eb57b25dedaac9..143ca49f296b55 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.zap @@ -5154,22 +5154,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -5394,134 +5378,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, @@ -16135,22 +15991,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x00", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -16375,134 +16215,6 @@ "maxInterval": 65344, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0x0000", - "reportable": 1, - "minInterval": 0, - "maxInterval": 65344, - "reportableChange": 0 - }, { "name": "ClusterRevision", "code": 65533, diff --git a/src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml index cb824c9243d911..faef2b0de95eb6 100644 --- a/src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml @@ -86,8 +86,6 @@ limitations under the License. - - NumberOfLogRecordsSupported NumberOfTotalUsersSupported @@ -112,12 +110,6 @@ limitations under the License. CredentialRulesSupport NumberOfCredentialsSupportedPerUser - - - EnableLogging - - - Language @@ -201,53 +193,6 @@ limitations under the License. - - AlarmMask - - - - - - KeypadOperationEventMask - - - - - - RemoteOperationEventMask - - - - - - ManualOperationEventMask - - - - - - RFIDOperationEventMask - - - - - - KeypadProgrammingEventMask - - - - - - RemoteProgrammingEventMask - - - - - - RFIDProgrammingEventMask - - - @@ -267,79 +212,6 @@ limitations under the License. - - - Request a log record. - - - - - - Returns the specified log record. - - - - - - - - - - - - Set a PIN Code into the lock. - - - - - - - - - Retrieve a PIN Code. - - - - - - Returns the PIN for the specified user ID. - - - - - - - - - Clear a PIN code or all PIN codes. - - - - - - Clear out all PINs on the lock. - - - - - Set the status of a user ID. - - - - - - - Get the status of a user. - - - - - - Returns the user status for the specified user ID. - - - - Set a weekly repeating schedule for a specified user. @@ -443,61 +315,6 @@ limitations under the License. - - - Set the user type for a specified user. - - - - - - - Retrieve the user type for a specific user. - - - - - - Returns the user type for the specified user ID. - - - - - - - Set an ID for RFID access into the lock. - - - - - - - - - Retrieve an RFID code. - - - - - - Returns the RFID code for the specified user ID. - - - - - - - - - Clear an RFID code or all RFID codes. - - - - - - Clear out all RFIDs on the lock. - - Set User into the lock. @@ -537,28 +354,6 @@ limitations under the License. - - - The door lock server sends out operation event notification when the event is triggered by the various event sources. - - - - - - - - - - The door lock server sends out a programming event notification whenever a programming event takes place on the door lock. - - - - - - - - - Set a credential (e.g. PIN, RFID, Fingerprint, etc.) into the lock for a new user, existing user, or ProgrammingUser. @@ -855,18 +650,6 @@ limitations under the License. - - - - - - - - - - - - diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 179bde555ec212..c6727b9016190b 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -1276,16 +1276,6 @@ client cluster DoorLock = 257 { kNotSupported = 255; } - bitmap DlAlarmMask : BITMAP16 { - kLockingMechanismJammed = 0x1; - kLockResetToFactoryDefaults = 0x2; - kReserved = 0x4; - kRFModulePowerCycled = 0x8; - kWrongCodeEntryLimit = 0x10; - kFrontEscutcheonRemovedFromMain = 0x20; - kForcedDoorOpenUnderDoorLockedCondition = 0x40; - } - bitmap DlCredentialRuleMask : BITMAP8 { kSingle = 0x1; kDual = 0x2; @@ -1624,11 +1614,6 @@ client cluster DoorLock = 257 { optional DlOperatingMode operatingMode = 4; } - response struct GetUserTypeResponse = 21 { - INT16U userId = 0; - DlUserType userType = 1; - } - response struct GetUserResponse = 28 { INT16U userIndex = 0; nullable CHAR_STRING userName = 1; diff --git a/src/controller/data_model/controller-clusters.zap b/src/controller/data_model/controller-clusters.zap index 05e9b099b567c9..0d2b2739d3a231 100644 --- a/src/controller/data_model/controller-clusters.zap +++ b/src/controller/data_model/controller-clusters.zap @@ -9551,30 +9551,6 @@ "side": "server", "enabled": 0, "commands": [ - { - "name": "GetLogRecordResponse", - "code": 4, - "mfgCode": null, - "source": "server", - "incoming": 0, - "outgoing": 1 - }, - { - "name": "GetPINCodeResponse", - "code": 6, - "mfgCode": null, - "source": "server", - "incoming": 0, - "outgoing": 1 - }, - { - "name": "GetUserStatusResponse", - "code": 10, - "mfgCode": null, - "source": "server", - "incoming": 0, - "outgoing": 0 - }, { "name": "GetWeekDayScheduleResponse", "code": 12, @@ -9599,22 +9575,6 @@ "incoming": 1, "outgoing": 1 }, - { - "name": "GetUserTypeResponse", - "code": 21, - "mfgCode": null, - "source": "server", - "incoming": 1, - "outgoing": 1 - }, - { - "name": "GetRFIDCodeResponse", - "code": 23, - "mfgCode": null, - "source": "server", - "incoming": 0, - "outgoing": 1 - }, { "name": "GetUserResponse", "code": 28, @@ -9753,22 +9713,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "NumberOfLogRecordsSupported", - "code": 16, - "mfgCode": null, - "side": "server", - "type": "int16u", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 1, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "NumberOfTotalUsersSupported", "code": 17, @@ -9961,22 +9905,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "EnableLogging", - "code": 32, - "mfgCode": null, - "side": "server", - "type": "boolean", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "Language", "code": 33, @@ -10249,134 +10177,6 @@ "maxInterval": 65534, "reportableChange": 0 }, - { - "name": "AlarmMask", - "code": 64, - "mfgCode": null, - "side": "server", - "type": "DlAlarmMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadOperationEventMask", - "code": 65, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteOperationEventMask", - "code": 66, - "mfgCode": null, - "side": "server", - "type": "DlRemoteOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "ManualOperationEventMask", - "code": 67, - "mfgCode": null, - "side": "server", - "type": "DlManualOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDOperationEventMask", - "code": 68, - "mfgCode": null, - "side": "server", - "type": "DlRFIDOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "KeypadProgrammingEventMask", - "code": 69, - "mfgCode": null, - "side": "server", - "type": "DlKeypadOperationEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RemoteProgrammingEventMask", - "code": 70, - "mfgCode": null, - "side": "server", - "type": "DlRemoteProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, - { - "name": "RFIDProgrammingEventMask", - "code": 71, - "mfgCode": null, - "side": "server", - "type": "DlRFIDProgrammingEventMask", - "included": 0, - "storageOption": "RAM", - "singleton": 0, - "bounded": 0, - "defaultValue": "0xFFFF", - "reportable": 0, - "minInterval": 1, - "maxInterval": 65534, - "reportableChange": 0 - }, { "name": "GeneratedCommandList", "code": 65528, diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index e6b126cb3893ee..4e84ccdff3a1a6 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -16192,7 +16192,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="doorOpenEvents", Tag=0x00000004, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="doorClosedEvents", Tag=0x00000005, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="openPeriod", Tag=0x00000006, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="numberOfLogRecordsSupported", Tag=0x00000010, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="numberOfTotalUsersSupported", Tag=0x00000011, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="numberOfPINUsersSupported", Tag=0x00000012, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="numberOfRFIDUsersSupported", Tag=0x00000013, Type=typing.Optional[uint]), @@ -16205,7 +16204,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="minRFIDCodeLength", Tag=0x0000001A, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="credentialRulesSupport", Tag=0x0000001B, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="numberOfCredentialsSupportedPerUser", Tag=0x0000001C, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="enableLogging", Tag=0x00000020, Type=typing.Optional[bool]), ClusterObjectFieldDescriptor(Label="language", Tag=0x00000021, Type=typing.Optional[str]), ClusterObjectFieldDescriptor(Label="LEDSettings", Tag=0x00000022, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="autoRelockTime", Tag=0x00000023, Type=uint), @@ -16223,14 +16221,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="sendPINOverTheAir", Tag=0x00000032, Type=typing.Optional[bool]), ClusterObjectFieldDescriptor(Label="requirePINforRemoteOperation", Tag=0x00000033, Type=typing.Optional[bool]), ClusterObjectFieldDescriptor(Label="expiringUserTimeout", Tag=0x00000035, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="alarmMask", Tag=0x00000040, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="keypadOperationEventMask", Tag=0x00000041, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="remoteOperationEventMask", Tag=0x00000042, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="manualOperationEventMask", Tag=0x00000043, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="RFIDOperationEventMask", Tag=0x00000044, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="keypadProgrammingEventMask", Tag=0x00000045, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="remoteProgrammingEventMask", Tag=0x00000046, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="RFIDProgrammingEventMask", Tag=0x00000047, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="attributeList", Tag=0x0000FFFB, Type=typing.List[uint]), @@ -16245,7 +16235,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: doorOpenEvents: 'typing.Optional[uint]' = None doorClosedEvents: 'typing.Optional[uint]' = None openPeriod: 'typing.Optional[uint]' = None - numberOfLogRecordsSupported: 'typing.Optional[uint]' = None numberOfTotalUsersSupported: 'typing.Optional[uint]' = None numberOfPINUsersSupported: 'typing.Optional[uint]' = None numberOfRFIDUsersSupported: 'typing.Optional[uint]' = None @@ -16258,7 +16247,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: minRFIDCodeLength: 'typing.Optional[uint]' = None credentialRulesSupport: 'typing.Optional[uint]' = None numberOfCredentialsSupportedPerUser: 'typing.Optional[uint]' = None - enableLogging: 'typing.Optional[bool]' = None language: 'typing.Optional[str]' = None LEDSettings: 'typing.Optional[uint]' = None autoRelockTime: 'uint' = None @@ -16276,14 +16264,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: sendPINOverTheAir: 'typing.Optional[bool]' = None requirePINforRemoteOperation: 'typing.Optional[bool]' = None expiringUserTimeout: 'typing.Optional[uint]' = None - alarmMask: 'typing.Optional[uint]' = None - keypadOperationEventMask: 'typing.Optional[uint]' = None - remoteOperationEventMask: 'typing.Optional[uint]' = None - manualOperationEventMask: 'typing.Optional[uint]' = None - RFIDOperationEventMask: 'typing.Optional[uint]' = None - keypadProgrammingEventMask: 'typing.Optional[uint]' = None - remoteProgrammingEventMask: 'typing.Optional[uint]' = None - RFIDProgrammingEventMask: 'typing.Optional[uint]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None attributeList: 'typing.List[uint]' = None @@ -16537,194 +16517,6 @@ def must_use_timed_invoke(cls) -> bool: timeout: 'uint' = 0 pinCode: 'typing.Optional[bytes]' = None - @dataclass - class GetLogRecord(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0004 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="logIndex", Tag=0, Type=uint), - ]) - - logIndex: 'uint' = 0 - - @dataclass - class GetLogRecordResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0004 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="logEntryId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="timestamp", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="eventType", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="source", Tag=3, Type=uint), - ClusterObjectFieldDescriptor(Label="eventIdOrAlarmCode", Tag=4, Type=uint), - ClusterObjectFieldDescriptor(Label="userId", Tag=5, Type=uint), - ClusterObjectFieldDescriptor(Label="pin", Tag=6, Type=bytes), - ]) - - logEntryId: 'uint' = 0 - timestamp: 'uint' = 0 - eventType: 'uint' = 0 - source: 'uint' = 0 - eventIdOrAlarmCode: 'uint' = 0 - userId: 'uint' = 0 - pin: 'bytes' = b"" - - @dataclass - class SetPINCode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0005 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=bytes), - ]) - - @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - userId: 'uint' = 0 - userStatus: 'typing.Union[Nullable, DoorLock.Enums.DlUserStatus]' = NullValue - userType: 'typing.Union[Nullable, DoorLock.Enums.DlUserType]' = NullValue - pin: 'bytes' = b"" - - @dataclass - class GetPINCode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0006 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ]) - - userId: 'uint' = 0 - - @dataclass - class GetPINCodeResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0006 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=typing.Union[Nullable, bytes]), - ]) - - userId: 'uint' = 0 - userStatus: 'typing.Union[Nullable, DoorLock.Enums.DlUserStatus]' = NullValue - userType: 'typing.Union[Nullable, DoorLock.Enums.DlUserType]' = NullValue - pin: 'typing.Union[Nullable, bytes]' = NullValue - - @dataclass - class ClearPINCode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0007 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="pinSlotIndex", Tag=0, Type=uint), - ]) - - @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - pinSlotIndex: 'uint' = 0 - - @dataclass - class ClearAllPINCodes(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0008 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - - @dataclass - class SetUserStatus(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0009 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), - ]) - - userId: 'uint' = 0 - userStatus: 'DoorLock.Enums.DlUserStatus' = 0 - - @dataclass - class GetUserStatus(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x000A - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ]) - - userId: 'uint' = 0 - - @dataclass - class GetUserStatusResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x000A - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=DoorLock.Enums.DlUserStatus), - ]) - - userId: 'uint' = 0 - userStatus: 'DoorLock.Enums.DlUserStatus' = 0 - @dataclass class SetWeekDaySchedule(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0101 @@ -16967,152 +16759,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: holidayIndex: 'uint' = 0 - @dataclass - class SetUserType(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0014 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userType", Tag=1, Type=DoorLock.Enums.DlUserType), - ]) - - userId: 'uint' = 0 - userType: 'DoorLock.Enums.DlUserType' = 0 - - @dataclass - class GetUserType(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0015 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ]) - - userId: 'uint' = 0 - - @dataclass - class GetUserTypeResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0015 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userType", Tag=1, Type=DoorLock.Enums.DlUserType), - ]) - - userId: 'uint' = 0 - userType: 'DoorLock.Enums.DlUserType' = 0 - - @dataclass - class SetRFIDCode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0016 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor(Label="rfidCode", Tag=3, Type=bytes), - ]) - - @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - userId: 'uint' = 0 - userStatus: 'typing.Union[Nullable, DoorLock.Enums.DlUserStatus]' = NullValue - userType: 'typing.Union[Nullable, DoorLock.Enums.DlUserType]' = NullValue - rfidCode: 'bytes' = b"" - - @dataclass - class GetRFIDCode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0017 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ]) - - userId: 'uint' = 0 - - @dataclass - class GetRFIDCodeResponse(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0017 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="userId", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=1, Type=typing.Union[Nullable, DoorLock.Enums.DlUserStatus]), - ClusterObjectFieldDescriptor(Label="userType", Tag=2, Type=typing.Union[Nullable, DoorLock.Enums.DlUserType]), - ClusterObjectFieldDescriptor(Label="rfidCode", Tag=3, Type=typing.Union[Nullable, bytes]), - ]) - - userId: 'uint' = 0 - userStatus: 'typing.Union[Nullable, DoorLock.Enums.DlUserStatus]' = NullValue - userType: 'typing.Union[Nullable, DoorLock.Enums.DlUserType]' = NullValue - rfidCode: 'typing.Union[Nullable, bytes]' = NullValue - - @dataclass - class ClearRFIDCode(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0018 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="rfidSlotIndex", Tag=0, Type=uint), - ]) - - @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - rfidSlotIndex: 'uint' = 0 - - @dataclass - class ClearAllRFIDCodes(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0019 - is_client: typing.ClassVar[bool] = True - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ]) - - @ChipUtility.classproperty - def must_use_timed_invoke(cls) -> bool: - return True - - @dataclass class SetUser(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0101 @@ -17211,60 +16857,6 @@ def must_use_timed_invoke(cls) -> bool: userIndex: 'uint' = 0 - @dataclass - class OperatingEventNotification(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0020 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="operationEventSource", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="operationEventCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="userId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor(Label="localTime", Tag=4, Type=uint), - ClusterObjectFieldDescriptor(Label="data", Tag=5, Type=typing.Optional[str]), - ]) - - operationEventSource: 'uint' = 0 - operationEventCode: 'uint' = 0 - userId: 'uint' = 0 - pin: 'bytes' = b"" - localTime: 'uint' = 0 - data: 'typing.Optional[str]' = None - - @dataclass - class ProgrammingEventNotification(ClusterCommand): - cluster_id: typing.ClassVar[int] = 0x0101 - command_id: typing.ClassVar[int] = 0x0021 - is_client: typing.ClassVar[bool] = False - - @ChipUtility.classproperty - def descriptor(cls) -> ClusterObjectDescriptor: - return ClusterObjectDescriptor( - Fields = [ - ClusterObjectFieldDescriptor(Label="programEventSource", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="programEventCode", Tag=1, Type=uint), - ClusterObjectFieldDescriptor(Label="userId", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="pin", Tag=3, Type=bytes), - ClusterObjectFieldDescriptor(Label="userType", Tag=4, Type=DoorLock.Enums.DlUserType), - ClusterObjectFieldDescriptor(Label="userStatus", Tag=5, Type=DoorLock.Enums.DlUserStatus), - ClusterObjectFieldDescriptor(Label="localTime", Tag=6, Type=uint), - ClusterObjectFieldDescriptor(Label="data", Tag=7, Type=typing.Optional[str]), - ]) - - programEventSource: 'uint' = 0 - programEventCode: 'uint' = 0 - userId: 'uint' = 0 - pin: 'bytes' = b"" - userType: 'DoorLock.Enums.DlUserType' = 0 - userStatus: 'DoorLock.Enums.DlUserStatus' = 0 - localTime: 'uint' = 0 - data: 'typing.Optional[str]' = None - @dataclass class SetCredential(ClusterCommand): cluster_id: typing.ClassVar[int] = 0x0101 @@ -17484,22 +17076,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None - @dataclass - class NumberOfLogRecordsSupported(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000010 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - @dataclass class NumberOfTotalUsersSupported(ClusterAttributeDescriptor): @ChipUtility.classproperty @@ -17692,22 +17268,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None - @dataclass - class EnableLogging(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000020 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[bool]) - - value: 'typing.Optional[bool]' = None - @dataclass class Language(ClusterAttributeDescriptor): @ChipUtility.classproperty @@ -17980,134 +17540,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None - @dataclass - class AlarmMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000040 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class KeypadOperationEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000041 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class RemoteOperationEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000042 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class ManualOperationEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000043 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class RFIDOperationEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000044 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class KeypadProgrammingEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000045 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class RemoteProgrammingEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000046 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - - @dataclass - class RFIDProgrammingEventMask(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x0101 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000047 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - @dataclass class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm index 0a41ed48f15e88..2fc5ba0b8b67d5 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPAttributeTLVValueDecoder.mm @@ -4085,17 +4085,6 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader value = [NSNumber numberWithUnsignedShort:cppValue]; return value; } - case Attributes::NumberOfLogRecordsSupported::Id: { - using TypeInfo = Attributes::NumberOfLogRecordsSupported::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue]; - return value; - } case Attributes::NumberOfTotalUsersSupported::Id: { using TypeInfo = Attributes::NumberOfTotalUsersSupported::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4228,17 +4217,6 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } - case Attributes::EnableLogging::Id: { - using TypeInfo = Attributes::EnableLogging::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithBool:cppValue]; - return value; - } case Attributes::Language::Id: { using TypeInfo = Attributes::Language::TypeInfo; TypeInfo::DecodableType cppValue; @@ -4426,94 +4404,6 @@ id CHIPDecodeAttributeValue(const ConcreteAttributePath & aPath, TLV::TLVReader value = [NSNumber numberWithUnsignedShort:cppValue]; return value; } - case Attributes::AlarmMask::Id: { - using TypeInfo = Attributes::AlarmMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::KeypadOperationEventMask::Id: { - using TypeInfo = Attributes::KeypadOperationEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::RemoteOperationEventMask::Id: { - using TypeInfo = Attributes::RemoteOperationEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::ManualOperationEventMask::Id: { - using TypeInfo = Attributes::ManualOperationEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::RFIDOperationEventMask::Id: { - using TypeInfo = Attributes::RFIDOperationEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::KeypadProgrammingEventMask::Id: { - using TypeInfo = Attributes::KeypadProgrammingEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::RemoteProgrammingEventMask::Id: { - using TypeInfo = Attributes::RemoteProgrammingEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } - case Attributes::RFIDProgrammingEventMask::Id: { - using TypeInfo = Attributes::RFIDProgrammingEventMask::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; - return value; - } case Attributes::GeneratedCommandList::Id: { using TypeInfo = Attributes::GeneratedCommandList::TypeInfo; TypeInfo::DecodableType cppValue; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm index 556fae9870fe8b..2a13d577034c66 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm @@ -3814,198 +3814,6 @@ } } -void CHIPDoorLockAlarmMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockAlarmMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockKeypadOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockRemoteOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockManualOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockRFIDOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - -void CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge::OnSuccessFn( - void * context, chip::BitFlags value) -{ - NSNumber * _Nonnull objCValue; - objCValue = [NSNumber numberWithUnsignedShort:value.Raw()]; - DispatchSuccess(context, objCValue); -}; - -void CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished(void * context) -{ - auto * self = static_cast(context); - if (!self->mQueue) { - return; - } - - if (self->mEstablishedHandler != nil) { - dispatch_async(self->mQueue, self->mEstablishedHandler); - // On failure, mEstablishedHandler will be cleaned up by our destructor, - // but we can clean it up earlier on successful subscription - // establishment. - self->mEstablishedHandler = nil; - } -} - void CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge::OnSuccessFn( void * context, const chip::app::DataModel::DecodableList & value) { @@ -11667,78 +11475,6 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetLogRecordResponseCallbackBridge::OnSuccessFn( - void * context, const chip::app::Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType & data) -{ - auto * response = [CHIPDoorLockClusterGetLogRecordResponseParams new]; - { - response.logEntryId = [NSNumber numberWithUnsignedShort:data.logEntryId]; - } - { - response.timestamp = [NSNumber numberWithUnsignedInt:data.timestamp]; - } - { - response.eventType = [NSNumber numberWithUnsignedChar:data.eventType]; - } - { - response.source = [NSNumber numberWithUnsignedChar:data.source]; - } - { - response.eventIdOrAlarmCode = [NSNumber numberWithUnsignedChar:data.eventIdOrAlarmCode]; - } - { - response.userId = [NSNumber numberWithUnsignedShort:data.userId]; - } - { - response.pin = [NSData dataWithBytes:data.pin.data() length:data.pin.size()]; - } - DispatchSuccess(context, response); -}; - -void CHIPDoorLockClusterGetPINCodeResponseCallbackBridge::OnSuccessFn( - void * context, const chip::app::Clusters::DoorLock::Commands::GetPINCodeResponse::DecodableType & data) -{ - auto * response = [CHIPDoorLockClusterGetPINCodeResponseParams new]; - { - response.userId = [NSNumber numberWithUnsignedShort:data.userId]; - } - { - if (data.userStatus.IsNull()) { - response.userStatus = nil; - } else { - response.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.userStatus.Value())]; - } - } - { - if (data.userType.IsNull()) { - response.userType = nil; - } else { - response.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.userType.Value())]; - } - } - { - if (data.pin.IsNull()) { - response.pin = nil; - } else { - response.pin = [NSData dataWithBytes:data.pin.Value().data() length:data.pin.Value().size()]; - } - } - DispatchSuccess(context, response); -}; - -void CHIPDoorLockClusterGetUserStatusResponseCallbackBridge::OnSuccessFn( - void * context, const chip::app::Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType & data) -{ - auto * response = [CHIPDoorLockClusterGetUserStatusResponseParams new]; - { - response.userId = [NSNumber numberWithUnsignedShort:data.userId]; - } - { - response.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.userStatus)]; - } - DispatchSuccess(context, response); -}; - void CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType & data) { @@ -11854,50 +11590,6 @@ DispatchSuccess(context, response); }; -void CHIPDoorLockClusterGetUserTypeResponseCallbackBridge::OnSuccessFn( - void * context, const chip::app::Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType & data) -{ - auto * response = [CHIPDoorLockClusterGetUserTypeResponseParams new]; - { - response.userId = [NSNumber numberWithUnsignedShort:data.userId]; - } - { - response.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.userType)]; - } - DispatchSuccess(context, response); -}; - -void CHIPDoorLockClusterGetRFIDCodeResponseCallbackBridge::OnSuccessFn( - void * context, const chip::app::Clusters::DoorLock::Commands::GetRFIDCodeResponse::DecodableType & data) -{ - auto * response = [CHIPDoorLockClusterGetRFIDCodeResponseParams new]; - { - response.userId = [NSNumber numberWithUnsignedShort:data.userId]; - } - { - if (data.userStatus.IsNull()) { - response.userStatus = nil; - } else { - response.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.userStatus.Value())]; - } - } - { - if (data.userType.IsNull()) { - response.userType = nil; - } else { - response.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.userType.Value())]; - } - } - { - if (data.rfidCode.IsNull()) { - response.rfidCode = nil; - } else { - response.rfidCode = [NSData dataWithBytes:data.rfidCode.Value().data() length:data.rfidCode.Value().size()]; - } - } - DispatchSuccess(context, response); -}; - void CHIPDoorLockClusterGetUserResponseCallbackBridge::OnSuccessFn( void * context, const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType & data) { diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h index dea4bce64e665d..5442e0bbf6dd0e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h @@ -41,22 +41,12 @@ typedef void (*CHIPContentLauncherClusterLaunchResponseCallbackType)( void *, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType &); typedef void (*CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackType)( void *, const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetLogRecordResponseCallbackType)( - void *, const chip::app::Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetPINCodeResponseCallbackType)( - void *, const chip::app::Clusters::DoorLock::Commands::GetPINCodeResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetUserStatusResponseCallbackType)( - void *, const chip::app::Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType &); typedef void (*CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType &); typedef void (*CHIPDoorLockClusterGetYearDayScheduleResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType &); typedef void (*CHIPDoorLockClusterGetHolidayScheduleResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetUserTypeResponseCallbackType)( - void *, const chip::app::Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType &); -typedef void (*CHIPDoorLockClusterGetRFIDCodeResponseCallbackType)( - void *, const chip::app::Clusters::DoorLock::Commands::GetRFIDCodeResponse::DecodableType &); typedef void (*CHIPDoorLockClusterGetUserResponseCallbackType)( void *, const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType &); typedef void (*CHIPDoorLockClusterSetCredentialResponseCallbackType)( @@ -763,21 +753,6 @@ typedef void (*DoorLockDefaultConfigurationRegisterAttributeCallback)( void *, chip::BitFlags); typedef void (*DoorLockLocalProgrammingFeaturesAttributeCallback)( void *, chip::BitFlags); -typedef void (*DoorLockAlarmMaskAttributeCallback)(void *, chip::BitFlags); -typedef void (*DoorLockKeypadOperationEventMaskAttributeCallback)( - void *, chip::BitFlags); -typedef void (*DoorLockRemoteOperationEventMaskAttributeCallback)( - void *, chip::BitFlags); -typedef void (*DoorLockManualOperationEventMaskAttributeCallback)( - void *, chip::BitFlags); -typedef void (*DoorLockRFIDOperationEventMaskAttributeCallback)( - void *, chip::BitFlags); -typedef void (*DoorLockKeypadProgrammingEventMaskAttributeCallback)( - void *, chip::BitFlags); -typedef void (*DoorLockRemoteProgrammingEventMaskAttributeCallback)( - void *, chip::BitFlags); -typedef void (*DoorLockRFIDProgrammingEventMaskAttributeCallback)( - void *, chip::BitFlags); typedef void (*DoorLockGeneratedCommandListListAttributeCallback)( void * context, const chip::app::DataModel::DecodableList & data); typedef void (*DoorLockAcceptedCommandListListAttributeCallback)(void * context, @@ -4085,228 +4060,6 @@ class CHIPDoorLockLocalProgrammingFeaturesAttributeCallbackSubscriptionBridge SubscriptionEstablishedHandler mEstablishedHandler; }; -class CHIPDoorLockAlarmMaskAttributeCallbackBridge : public CHIPCallbackBridge -{ -public: - CHIPDoorLockAlarmMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockAlarmMaskAttributeCallbackSubscriptionBridge : public CHIPDoorLockAlarmMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockAlarmMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockAlarmMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockKeypadOperationEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockKeypadOperationEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockRemoteOperationEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockRemoteOperationEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockManualOperationEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockManualOperationEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockRFIDOperationEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockRFIDOperationEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - -class CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, chip::BitFlags value); -}; - -class CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackSubscriptionBridge - : public CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge -{ -public: - CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler, - CHIPActionBlock action, - SubscriptionEstablishedHandler establishedHandler) : - CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge(queue, handler, action, true), - mEstablishedHandler(establishedHandler) - {} - - static void OnSubscriptionEstablished(void * context); - -private: - SubscriptionEstablishedHandler mEstablishedHandler; -}; - class CHIPDoorLockGeneratedCommandListListAttributeCallbackBridge : public CHIPCallbackBridge { @@ -9734,42 +9487,6 @@ class CHIPDiagnosticLogsClusterRetrieveLogsResponseCallbackBridge const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetLogRecordResponseCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockClusterGetLogRecordResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, - const chip::app::Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType & data); -}; - -class CHIPDoorLockClusterGetPINCodeResponseCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockClusterGetPINCodeResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, - const chip::app::Clusters::DoorLock::Commands::GetPINCodeResponse::DecodableType & data); -}; - -class CHIPDoorLockClusterGetUserStatusResponseCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockClusterGetUserStatusResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, - const chip::app::Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType & data); -}; - class CHIPDoorLockClusterGetWeekDayScheduleResponseCallbackBridge : public CHIPCallbackBridge { @@ -9809,30 +9526,6 @@ class CHIPDoorLockClusterGetHolidayScheduleResponseCallbackBridge const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType & data); }; -class CHIPDoorLockClusterGetUserTypeResponseCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockClusterGetUserTypeResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, - const chip::app::Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType & data); -}; - -class CHIPDoorLockClusterGetRFIDCodeResponseCallbackBridge - : public CHIPCallbackBridge -{ -public: - CHIPDoorLockClusterGetRFIDCodeResponseCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, CHIPActionBlock action, - bool keepAlive = false) : - CHIPCallbackBridge(queue, handler, action, OnSuccessFn, keepAlive){}; - - static void OnSuccessFn(void * context, - const chip::app::Clusters::DoorLock::Commands::GetRFIDCodeResponse::DecodableType & data); -}; - class CHIPDoorLockClusterGetUserResponseCallbackBridge : public CHIPCallbackBridge { public: diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h index 8ff354f93a34ab..eb8561fc89bd2e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h @@ -4532,23 +4532,6 @@ NS_ASSUME_NONNULL_BEGIN completionHandler:(StatusCompletion)completionHandler; - (void)unlockWithTimeoutWithParams:(CHIPDoorLockClusterUnlockWithTimeoutParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getLogRecordWithParams:(CHIPDoorLockClusterGetLogRecordParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetLogRecordResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler; -- (void)setPINCodeWithParams:(CHIPDoorLockClusterSetPINCodeParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getPINCodeWithParams:(CHIPDoorLockClusterGetPINCodeParams *)params - completionHandler: - (void (^)(CHIPDoorLockClusterGetPINCodeResponseParams * _Nullable data, NSError * _Nullable error))completionHandler; -- (void)clearPINCodeWithParams:(CHIPDoorLockClusterClearPINCodeParams *)params - completionHandler:(StatusCompletion)completionHandler; -- (void)clearAllPINCodesWithParams:(CHIPDoorLockClusterClearAllPINCodesParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -- (void)clearAllPINCodesWithCompletionHandler:(StatusCompletion)completionHandler; -- (void)setUserStatusWithParams:(CHIPDoorLockClusterSetUserStatusParams *)params - completionHandler:(StatusCompletion)completionHandler; -- (void)getUserStatusWithParams:(CHIPDoorLockClusterGetUserStatusParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetUserStatusResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler; - (void)setWeekDayScheduleWithParams:(CHIPDoorLockClusterSetWeekDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)getWeekDayScheduleWithParams:(CHIPDoorLockClusterGetWeekDayScheduleParams *)params @@ -4570,19 +4553,6 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)clearHolidayScheduleWithParams:(CHIPDoorLockClusterClearHolidayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)setUserTypeWithParams:(CHIPDoorLockClusterSetUserTypeParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getUserTypeWithParams:(CHIPDoorLockClusterGetUserTypeParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetUserTypeResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler; -- (void)setRFIDCodeWithParams:(CHIPDoorLockClusterSetRFIDCodeParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)getRFIDCodeWithParams:(CHIPDoorLockClusterGetRFIDCodeParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetRFIDCodeResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler; -- (void)clearRFIDCodeWithParams:(CHIPDoorLockClusterClearRFIDCodeParams *)params - completionHandler:(StatusCompletion)completionHandler; -- (void)clearAllRFIDCodesWithParams:(CHIPDoorLockClusterClearAllRFIDCodesParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -- (void)clearAllRFIDCodesWithCompletionHandler:(StatusCompletion)completionHandler; - (void)setUserWithParams:(CHIPDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler; - (void)getUserWithParams:(CHIPDoorLockClusterGetUserParams *)params completionHandler: @@ -4596,10 +4566,6 @@ NS_ASSUME_NONNULL_BEGIN NSError * _Nullable error))completionHandler; - (void)clearCredentialWithParams:(CHIPDoorLockClusterClearCredentialParams *)params completionHandler:(StatusCompletion)completionHandler; -- (void)operatingEventNotificationWithParams:(CHIPDoorLockClusterOperatingEventNotificationParams *)params - completionHandler:(StatusCompletion)completionHandler; -- (void)programmingEventNotificationWithParams:(CHIPDoorLockClusterProgrammingEventNotificationParams *)params - completionHandler:(StatusCompletion)completionHandler; - (void)readAttributeLockStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; @@ -4732,25 +4698,6 @@ NS_ASSUME_NONNULL_BEGIN completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeNumberOfLogRecordsSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeNumberOfLogRecordsSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeNumberOfLogRecordsSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - - (void)readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; /** @@ -4977,28 +4924,6 @@ NS_ASSUME_NONNULL_BEGIN completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeEnableLoggingWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeEnableLoggingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEnableLoggingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeEnableLoggingWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeEnableLoggingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - - (void)readAttributeLanguageWithCompletionHandler:(void (^)( NSString * _Nullable value, NSError * _Nullable error))completionHandler; - (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; @@ -5379,194 +5304,6 @@ NS_ASSUME_NONNULL_BEGIN completionHandler: (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)readAttributeAlarmMaskWithCompletionHandler:(void (^)( - NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; -- (void)writeAttributeAlarmMaskWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAlarmMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeAlarmMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler; -+ (void)readAttributeAlarmMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - -- (void)readAttributeKeypadOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeKeypadOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeKeypadOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeKeypadOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeKeypadOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - -- (void)readAttributeRemoteOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeRemoteOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRemoteOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeRemoteOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeRemoteOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - -- (void)readAttributeManualOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeManualOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeManualOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeManualOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeManualOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - -- (void)readAttributeRFIDOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeRFIDOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRFIDOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeRFIDOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeRFIDOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler; - -- (void)readAttributeKeypadProgrammingEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeKeypadProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeKeypadProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeKeypadProgrammingEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeKeypadProgrammingEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - -- (void)readAttributeRemoteProgrammingEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeRemoteProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRemoteProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeRemoteProgrammingEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeRemoteProgrammingEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - -- (void)readAttributeRFIDProgrammingEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; -- (void)writeAttributeRFIDProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRFIDProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler; -/** - * This API does not support setting autoResubscribe to NO in the - * CHIPSubscribeParams. - */ -- (void)subscribeAttributeRFIDProgrammingEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler; -+ (void)readAttributeRFIDProgrammingEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler; - - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler; /** @@ -22169,16 +21906,6 @@ typedef NS_ENUM(uint8_t, CHIPDoorLockUserType) { CHIPDoorLockUserTypeNotSupported = 0xFF, }; -typedef NS_OPTIONS(uint16_t, CHIPDoorLockDlAlarmMask) { - CHIPDoorLockDlAlarmMaskLockingMechanismJammed = 0x1, - CHIPDoorLockDlAlarmMaskLockResetToFactoryDefaults = 0x2, - CHIPDoorLockDlAlarmMaskReserved = 0x4, - CHIPDoorLockDlAlarmMaskRFModulePowerCycled = 0x8, - CHIPDoorLockDlAlarmMaskWrongCodeEntryLimit = 0x10, - CHIPDoorLockDlAlarmMaskFrontEscutcheonRemovedFromMain = 0x20, - CHIPDoorLockDlAlarmMaskForcedDoorOpenUnderDoorLockedCondition = 0x40, -}; - typedef NS_OPTIONS(uint8_t, CHIPDoorLockDlCredentialRuleMask) { CHIPDoorLockDlCredentialRuleMaskSingle = 0x1, CHIPDoorLockDlCredentialRuleMaskDual = 0x2, diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm index cb95cbe211e29c..5a0097b4d40fee 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm @@ -17508,203 +17508,6 @@ new CHIPCommandSuccessCallbackBridge( }); } -- (void)getLogRecordWithParams:(CHIPDoorLockClusterGetLogRecordParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetLogRecordResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::GetLogRecord::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.logIndex = params.logIndex.unsignedShortValue; - - new CHIPDoorLockClusterGetLogRecordResponseCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)setPINCodeWithParams:(CHIPDoorLockClusterSetPINCodeParams *)params completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::SetPINCode::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - if (!timedInvokeTimeoutMs.HasValue()) { - timedInvokeTimeoutMs.SetValue(10000); - } - request.userId = params.userId.unsignedShortValue; - if (params.userStatus == nil) { - request.userStatus.SetNull(); - } else { - auto & nonNullValue_0 = request.userStatus.SetNonNull(); - nonNullValue_0 = static_cast>(params.userStatus.unsignedCharValue); - } - if (params.userType == nil) { - request.userType.SetNull(); - } else { - auto & nonNullValue_0 = request.userType.SetNonNull(); - nonNullValue_0 = static_cast>(params.userType.unsignedCharValue); - } - request.pin = [self asByteSpan:params.pin]; - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)getPINCodeWithParams:(CHIPDoorLockClusterGetPINCodeParams *)params - completionHandler: - (void (^)(CHIPDoorLockClusterGetPINCodeResponseParams * _Nullable data, NSError * _Nullable error))completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::GetPINCode::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.userId = params.userId.unsignedShortValue; - - new CHIPDoorLockClusterGetPINCodeResponseCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)clearPINCodeWithParams:(CHIPDoorLockClusterClearPINCodeParams *)params completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::ClearPINCode::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - if (!timedInvokeTimeoutMs.HasValue()) { - timedInvokeTimeoutMs.SetValue(10000); - } - request.pinSlotIndex = params.pinSlotIndex.unsignedShortValue; - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)clearAllPINCodesWithCompletionHandler:(StatusCompletion)completionHandler -{ - [self clearAllPINCodesWithParams:nil completionHandler:completionHandler]; -} -- (void)clearAllPINCodesWithParams:(CHIPDoorLockClusterClearAllPINCodesParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::ClearAllPINCodes::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - if (!timedInvokeTimeoutMs.HasValue()) { - timedInvokeTimeoutMs.SetValue(10000); - } - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)setUserStatusWithParams:(CHIPDoorLockClusterSetUserStatusParams *)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::SetUserStatus::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.userId = params.userId.unsignedShortValue; - request.userStatus = static_cast>(params.userStatus.unsignedCharValue); - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)getUserStatusWithParams:(CHIPDoorLockClusterGetUserStatusParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetUserStatusResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::GetUserStatus::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.userId = params.userId.unsignedShortValue; - - new CHIPDoorLockClusterGetUserStatusResponseCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - - (void)setWeekDayScheduleWithParams:(CHIPDoorLockClusterSetWeekDayScheduleParams *)params completionHandler:(StatusCompletion)completionHandler { @@ -17947,60 +17750,11 @@ new CHIPCommandSuccessCallbackBridge( }); } -- (void)setUserTypeWithParams:(CHIPDoorLockClusterSetUserTypeParams *)params completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::SetUserType::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.userId = params.userId.unsignedShortValue; - request.userType = static_cast>(params.userType.unsignedCharValue); - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)getUserTypeWithParams:(CHIPDoorLockClusterGetUserTypeParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetUserTypeResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::GetUserType::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.userId = params.userId.unsignedShortValue; - - new CHIPDoorLockClusterGetUserTypeResponseCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)setRFIDCodeWithParams:(CHIPDoorLockClusterSetRFIDCodeParams *)params completionHandler:(StatusCompletion)completionHandler +- (void)setUserWithParams:(CHIPDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; - DoorLock::Commands::SetRFIDCode::Type request; + DoorLock::Commands::SetUser::Type request; if (params != nil) { if (params.timedInvokeTimeoutMs != nil) { timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); @@ -18009,7 +17763,21 @@ - (void)setRFIDCodeWithParams:(CHIPDoorLockClusterSetRFIDCodeParams *)params com if (!timedInvokeTimeoutMs.HasValue()) { timedInvokeTimeoutMs.SetValue(10000); } - request.userId = params.userId.unsignedShortValue; + request.operationType + = static_cast>(params.operationType.unsignedCharValue); + request.userIndex = params.userIndex.unsignedShortValue; + if (params.userName == nil) { + request.userName.SetNull(); + } else { + auto & nonNullValue_0 = request.userName.SetNonNull(); + nonNullValue_0 = [self asCharSpan:params.userName]; + } + if (params.userUniqueId == nil) { + request.userUniqueId.SetNull(); + } else { + auto & nonNullValue_0 = request.userUniqueId.SetNonNull(); + nonNullValue_0 = params.userUniqueId.unsignedIntValue; + } if (params.userStatus == nil) { request.userStatus.SetNull(); } else { @@ -18022,7 +17790,12 @@ - (void)setRFIDCodeWithParams:(CHIPDoorLockClusterSetRFIDCodeParams *)params com auto & nonNullValue_0 = request.userType.SetNonNull(); nonNullValue_0 = static_cast>(params.userType.unsignedCharValue); } - request.rfidCode = [self asByteSpan:params.rfidCode]; + if (params.credentialRule == nil) { + request.credentialRule.SetNull(); + } else { + auto & nonNullValue_0 = request.credentialRule.SetNonNull(); + nonNullValue_0 = static_cast>(params.credentialRule.unsignedCharValue); + } new CHIPCommandSuccessCallbackBridge( self.callbackQueue, @@ -18037,35 +17810,34 @@ new CHIPCommandSuccessCallbackBridge( }); } -- (void)getRFIDCodeWithParams:(CHIPDoorLockClusterGetRFIDCodeParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterGetRFIDCodeResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler +- (void)getUserWithParams:(CHIPDoorLockClusterGetUserParams *)params + completionHandler: + (void (^)(CHIPDoorLockClusterGetUserResponseParams * _Nullable data, NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; - DoorLock::Commands::GetRFIDCode::Type request; + DoorLock::Commands::GetUser::Type request; if (params != nil) { if (params.timedInvokeTimeoutMs != nil) { timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); } } - request.userId = params.userId.unsignedShortValue; + request.userIndex = params.userIndex.unsignedShortValue; - new CHIPDoorLockClusterGetRFIDCodeResponseCallbackBridge( + new CHIPDoorLockClusterGetUserResponseCallbackBridge( self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); + auto successFn = Callback::FromCancelable(success); auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.InvokeCommand( request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); }); } -- (void)clearRFIDCodeWithParams:(CHIPDoorLockClusterClearRFIDCodeParams *)params - completionHandler:(StatusCompletion)completionHandler +- (void)clearUserWithParams:(CHIPDoorLockClusterClearUserParams *)params completionHandler:(StatusCompletion)completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; - DoorLock::Commands::ClearRFIDCode::Type request; + DoorLock::Commands::ClearUser::Type request; if (params != nil) { if (params.timedInvokeTimeoutMs != nil) { timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); @@ -18074,7 +17846,7 @@ - (void)clearRFIDCodeWithParams:(CHIPDoorLockClusterClearRFIDCodeParams *)params if (!timedInvokeTimeoutMs.HasValue()) { timedInvokeTimeoutMs.SetValue(10000); } - request.rfidSlotIndex = params.rfidSlotIndex.unsignedShortValue; + request.userIndex = params.userIndex.unsignedShortValue; new CHIPCommandSuccessCallbackBridge( self.callbackQueue, @@ -18089,156 +17861,13 @@ new CHIPCommandSuccessCallbackBridge( }); } -- (void)clearAllRFIDCodesWithCompletionHandler:(StatusCompletion)completionHandler -{ - [self clearAllRFIDCodesWithParams:nil completionHandler:completionHandler]; -} -- (void)clearAllRFIDCodesWithParams:(CHIPDoorLockClusterClearAllRFIDCodesParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler +- (void)setCredentialWithParams:(CHIPDoorLockClusterSetCredentialParams *)params + completionHandler:(void (^)(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable data, + NSError * _Nullable error))completionHandler { chip::Optional timedInvokeTimeoutMs; ListFreer listFreer; - DoorLock::Commands::ClearAllRFIDCodes::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - if (!timedInvokeTimeoutMs.HasValue()) { - timedInvokeTimeoutMs.SetValue(10000); - } - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)setUserWithParams:(CHIPDoorLockClusterSetUserParams *)params completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::SetUser::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - if (!timedInvokeTimeoutMs.HasValue()) { - timedInvokeTimeoutMs.SetValue(10000); - } - request.operationType - = static_cast>(params.operationType.unsignedCharValue); - request.userIndex = params.userIndex.unsignedShortValue; - if (params.userName == nil) { - request.userName.SetNull(); - } else { - auto & nonNullValue_0 = request.userName.SetNonNull(); - nonNullValue_0 = [self asCharSpan:params.userName]; - } - if (params.userUniqueId == nil) { - request.userUniqueId.SetNull(); - } else { - auto & nonNullValue_0 = request.userUniqueId.SetNonNull(); - nonNullValue_0 = params.userUniqueId.unsignedIntValue; - } - if (params.userStatus == nil) { - request.userStatus.SetNull(); - } else { - auto & nonNullValue_0 = request.userStatus.SetNonNull(); - nonNullValue_0 = static_cast>(params.userStatus.unsignedCharValue); - } - if (params.userType == nil) { - request.userType.SetNull(); - } else { - auto & nonNullValue_0 = request.userType.SetNonNull(); - nonNullValue_0 = static_cast>(params.userType.unsignedCharValue); - } - if (params.credentialRule == nil) { - request.credentialRule.SetNull(); - } else { - auto & nonNullValue_0 = request.credentialRule.SetNonNull(); - nonNullValue_0 = static_cast>(params.credentialRule.unsignedCharValue); - } - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)getUserWithParams:(CHIPDoorLockClusterGetUserParams *)params - completionHandler: - (void (^)(CHIPDoorLockClusterGetUserResponseParams * _Nullable data, NSError * _Nullable error))completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::GetUser::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.userIndex = params.userIndex.unsignedShortValue; - - new CHIPDoorLockClusterGetUserResponseCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)clearUserWithParams:(CHIPDoorLockClusterClearUserParams *)params completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::ClearUser::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - if (!timedInvokeTimeoutMs.HasValue()) { - timedInvokeTimeoutMs.SetValue(10000); - } - request.userIndex = params.userIndex.unsignedShortValue; - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)setCredentialWithParams:(CHIPDoorLockClusterSetCredentialParams *)params - completionHandler:(void (^)(CHIPDoorLockClusterSetCredentialResponseParams * _Nullable data, - NSError * _Nullable error))completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::SetCredential::Type request; + DoorLock::Commands::SetCredential::Type request; if (params != nil) { if (params.timedInvokeTimeoutMs != nil) { timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); @@ -18342,76 +17971,6 @@ new CHIPCommandSuccessCallbackBridge( }); } -- (void)operatingEventNotificationWithParams:(CHIPDoorLockClusterOperatingEventNotificationParams *)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::OperatingEventNotification::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.operationEventSource = params.operationEventSource.unsignedCharValue; - request.operationEventCode = params.operationEventCode.unsignedCharValue; - request.userId = params.userId.unsignedShortValue; - request.pin = [self asByteSpan:params.pin]; - request.localTime = params.localTime.unsignedIntValue; - if (params.data != nil) { - auto & definedValue_0 = request.data.Emplace(); - definedValue_0 = [self asCharSpan:params.data]; - } - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - -- (void)programmingEventNotificationWithParams:(CHIPDoorLockClusterProgrammingEventNotificationParams *)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedInvokeTimeoutMs; - ListFreer listFreer; - DoorLock::Commands::ProgrammingEventNotification::Type request; - if (params != nil) { - if (params.timedInvokeTimeoutMs != nil) { - timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue); - } - } - request.programEventSource = params.programEventSource.unsignedCharValue; - request.programEventCode = params.programEventCode.unsignedCharValue; - request.userId = params.userId.unsignedShortValue; - request.pin = [self asByteSpan:params.pin]; - request.userType = static_cast>(params.userType.unsignedCharValue); - request.userStatus = static_cast>(params.userStatus.unsignedCharValue); - request.localTime = params.localTime.unsignedIntValue; - if (params.data != nil) { - auto & definedValue_0 = request.data.Emplace(); - definedValue_0 = [self asCharSpan:params.data]; - } - - new CHIPCommandSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable value, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.InvokeCommand( - request, successFn->mContext, successFn->mCall, failureFn->mCall, timedInvokeTimeoutMs); - }); -} - - (void)readAttributeLockStateWithCompletionHandler:(void (^)( NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { @@ -18940,69 +18499,6 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s }); } -- (void)readAttributeNumberOfLogRecordsSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPInt16uAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::NumberOfLogRecordsSupported::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)subscribeAttributeNumberOfLogRecordsSupportedWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPInt16uAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::NumberOfLogRecordsSupported::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPInt16uAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeNumberOfLogRecordsSupportedWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::NumberOfLogRecordsSupported::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - - (void)readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { @@ -19759,24 +19255,24 @@ new CHIPInt8uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * su }); } -- (void)readAttributeEnableLoggingWithCompletionHandler:(void (^)( - NSNumber * _Nullable value, NSError * _Nullable error))completionHandler +- (void)readAttributeLanguageWithCompletionHandler:(void (^)( + NSString * _Nullable value, NSError * _Nullable error))completionHandler { - new CHIPBooleanAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::EnableLogging::TypeInfo; - auto successFn = Callback::FromCancelable(success); + new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { + using TypeInfo = DoorLock::Attributes::Language::TypeInfo; + auto successFn = Callback::FromCancelable(success); auto failureFn = Callback::FromCancelable(failure); return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); }); } -- (void)writeAttributeEnableLoggingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler +- (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler { - [self writeAttributeEnableLoggingWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; + [self writeAttributeLanguageWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; } -- (void)writeAttributeEnableLoggingWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler +- (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value + params:(CHIPWriteParams * _Nullable)params + completionHandler:(StatusCompletion)completionHandler { chip::Optional timedWriteTimeoutMs; if (params != nil) { @@ -19792,101 +19288,7 @@ new CHIPDefaultSuccessCallbackBridge( }, ^(Cancelable * success, Cancelable * failure) { ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::EnableLogging::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeEnableLoggingWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - new CHIPBooleanAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::EnableLogging::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPBooleanAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeEnableLoggingWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPBooleanAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::EnableLogging::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeLanguageWithCompletionHandler:(void (^)( - NSString * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPCharStringAttributeCallbackBridge(self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::Language::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeLanguageWithValue:(NSString * _Nonnull) value params:nil completionHandler:completionHandler]; -} -- (void)writeAttributeLanguageWithValue:(NSString * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::Language::TypeInfo; + using TypeInfo = DoorLock::Attributes::Language::TypeInfo; TypeInfo::Type cppValue; cppValue = [self asCharSpan:value]; auto successFn = Callback::FromCancelable(success); @@ -21417,797 +20819,6 @@ new CHIPInt16uAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * s }); } -- (void)readAttributeAlarmMaskWithCompletionHandler:(void (^)( - NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockAlarmMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::AlarmMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAlarmMaskWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeAlarmMaskWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; -} -- (void)writeAttributeAlarmMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::AlarmMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeAlarmMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished:(SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockAlarmMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::AlarmMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockAlarmMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeAlarmMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockAlarmMaskAttributeCallbackBridge(queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::AlarmMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeKeypadOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::KeypadOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeKeypadOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeKeypadOperationEventMaskWithValue:(NSNumber * _Nonnull) value - params:nil - completionHandler:completionHandler]; -} -- (void)writeAttributeKeypadOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::KeypadOperationEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeKeypadOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockKeypadOperationEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::KeypadOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockKeypadOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeKeypadOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockKeypadOperationEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::KeypadOperationEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeRemoteOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::RemoteOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRemoteOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeRemoteOperationEventMaskWithValue:(NSNumber * _Nonnull) value - params:nil - completionHandler:completionHandler]; -} -- (void)writeAttributeRemoteOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::RemoteOperationEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeRemoteOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockRemoteOperationEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::RemoteOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockRemoteOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeRemoteOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRemoteOperationEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::RemoteOperationEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeManualOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::ManualOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeManualOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeManualOperationEventMaskWithValue:(NSNumber * _Nonnull) value - params:nil - completionHandler:completionHandler]; -} -- (void)writeAttributeManualOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::ManualOperationEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeManualOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockManualOperationEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::ManualOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockManualOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeManualOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockManualOperationEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::ManualOperationEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeRFIDOperationEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::RFIDOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRFIDOperationEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeRFIDOperationEventMaskWithValue:(NSNumber * _Nonnull) value params:nil completionHandler:completionHandler]; -} -- (void)writeAttributeRFIDOperationEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::RFIDOperationEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeRFIDOperationEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockRFIDOperationEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::RFIDOperationEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockRFIDOperationEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeRFIDOperationEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRFIDOperationEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::RFIDOperationEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeKeypadProgrammingEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::KeypadProgrammingEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeKeypadProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeKeypadProgrammingEventMaskWithValue:(NSNumber * _Nonnull) value - params:nil - completionHandler:completionHandler]; -} -- (void)writeAttributeKeypadProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::KeypadProgrammingEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeKeypadProgrammingEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::KeypadProgrammingEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeKeypadProgrammingEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockKeypadProgrammingEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::KeypadProgrammingEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeRemoteProgrammingEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::RemoteProgrammingEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRemoteProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeRemoteProgrammingEventMaskWithValue:(NSNumber * _Nonnull) value - params:nil - completionHandler:completionHandler]; -} -- (void)writeAttributeRemoteProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::RemoteProgrammingEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeRemoteProgrammingEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::RemoteProgrammingEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeRemoteProgrammingEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRemoteProgrammingEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::RemoteProgrammingEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - -- (void)readAttributeRFIDProgrammingEventMaskWithCompletionHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge( - self.callbackQueue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - using TypeInfo = DoorLock::Attributes::RFIDProgrammingEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.ReadAttribute(successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRFIDProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - [self writeAttributeRFIDProgrammingEventMaskWithValue:(NSNumber * _Nonnull) value - params:nil - completionHandler:completionHandler]; -} -- (void)writeAttributeRFIDProgrammingEventMaskWithValue:(NSNumber * _Nonnull)value - params:(CHIPWriteParams * _Nullable)params - completionHandler:(StatusCompletion)completionHandler -{ - chip::Optional timedWriteTimeoutMs; - if (params != nil) { - if (params.timedWriteTimeoutMs != nil) { - timedWriteTimeoutMs.SetValue(params.timedWriteTimeoutMs.unsignedShortValue); - } - } - - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::RFIDProgrammingEventMask::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute( - cppValue, successFn->mContext, successFn->mCall, failureFn->mCall, timedWriteTimeoutMs); - }); -} - -- (void)subscribeAttributeRFIDProgrammingEventMaskWithMinInterval:(NSNumber * _Nonnull)minInterval - maxInterval:(NSNumber * _Nonnull)maxInterval - params:(CHIPSubscribeParams * _Nullable)params - subscriptionEstablished: - (SubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, - NSError * _Nullable error))reportHandler -{ - new CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackSubscriptionBridge( - self.callbackQueue, reportHandler, - ^(Cancelable * success, Cancelable * failure) { - if (params != nil && params.autoResubscribe != nil && ![params.autoResubscribe boolValue]) { - // We don't support disabling auto-resubscribe. - return CHIP_ERROR_INVALID_ARGUMENT; - } - using TypeInfo = DoorLock::Attributes::RFIDProgrammingEventMask::TypeInfo; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.SubscribeAttribute(successFn->mContext, successFn->mCall, failureFn->mCall, - [minInterval unsignedShortValue], [maxInterval unsignedShortValue], - CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished, - params == nil || params.fabricFiltered == nil || [params.fabricFiltered boolValue], - params != nil && params.keepPreviousSubscriptions != nil && [params.keepPreviousSubscriptions boolValue]); - }, - subscriptionEstablishedHandler); -} - -+ (void)readAttributeRFIDProgrammingEventMaskWithAttributeCache:(CHIPAttributeCacheContainer *)attributeCacheContainer - endpoint:(NSNumber *)endpoint - queue:(dispatch_queue_t)queue - completionHandler: - (void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - new CHIPDoorLockRFIDProgrammingEventMaskAttributeCallbackBridge( - queue, completionHandler, ^(Cancelable * success, Cancelable * failure) { - if (attributeCacheContainer.cppAttributeCache) { - chip::app::ConcreteAttributePath path; - using TypeInfo = DoorLock::Attributes::RFIDProgrammingEventMask::TypeInfo; - path.mEndpointId = static_cast([endpoint unsignedShortValue]); - path.mClusterId = TypeInfo::GetClusterId(); - path.mAttributeId = TypeInfo::GetAttributeId(); - TypeInfo::DecodableType value; - CHIP_ERROR err = attributeCacheContainer.cppAttributeCache->Get(path, value); - auto successFn = Callback::FromCancelable(success); - if (err == CHIP_NO_ERROR) { - successFn->mCall(successFn->mContext, value); - } - return err; - } - return CHIP_ERROR_NOT_FOUND; - }); -} - - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h index 20b0b78b29a3df..80d8a6c93d7dfd 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.h @@ -3547,242 +3547,6 @@ NS_ASSUME_NONNULL_BEGIN */ @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetLogRecordParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull logIndex; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetLogRecordResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull logEntryId; - -@property (strong, nonatomic) NSNumber * _Nonnull timestamp; - -@property (strong, nonatomic) NSNumber * _Nonnull eventType; - -@property (strong, nonatomic) NSNumber * _Nonnull source; - -@property (strong, nonatomic) NSNumber * _Nonnull eventIdOrAlarmCode; - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSData * _Nonnull pin; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterSetPINCodeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nullable userStatus; - -@property (strong, nonatomic) NSNumber * _Nullable userType; - -@property (strong, nonatomic) NSData * _Nonnull pin; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetPINCodeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetPINCodeResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nullable userStatus; - -@property (strong, nonatomic) NSNumber * _Nullable userType; - -@property (strong, nonatomic) NSData * _Nullable pin; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterClearPINCodeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull pinSlotIndex; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterClearAllPINCodesParams : NSObject -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterSetUserStatusParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nonnull userStatus; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetUserStatusParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetUserStatusResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nonnull userStatus; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - - (instancetype)init; @end @interface CHIPDoorLockClusterSetWeekDayScheduleParams : NSObject @@ -4097,188 +3861,6 @@ NS_ASSUME_NONNULL_BEGIN */ @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; -- (instancetype)init; -@end -@interface CHIPDoorLockClusterSetUserTypeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nonnull userType; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetUserTypeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetUserTypeResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nonnull userType; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterSetRFIDCodeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nullable userStatus; - -@property (strong, nonatomic) NSNumber * _Nullable userType; - -@property (strong, nonatomic) NSData * _Nonnull rfidCode; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetRFIDCodeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterGetRFIDCodeResponseParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSNumber * _Nullable userStatus; - -@property (strong, nonatomic) NSNumber * _Nullable userType; - -@property (strong, nonatomic) NSData * _Nullable rfidCode; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterClearRFIDCodeParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull rfidSlotIndex; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterClearAllRFIDCodesParams : NSObject -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - - (instancetype)init; @end @interface CHIPDoorLockClusterSetUserParams : NSObject @@ -4393,72 +3975,6 @@ NS_ASSUME_NONNULL_BEGIN */ @property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; -- (instancetype)init; -@end -@interface CHIPDoorLockClusterOperatingEventNotificationParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull operationEventSource; - -@property (strong, nonatomic) NSNumber * _Nonnull operationEventCode; - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSData * _Nonnull pin; - -@property (strong, nonatomic) NSNumber * _Nonnull localTime; - -@property (strong, nonatomic) NSString * _Nullable data; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - -- (instancetype)init; -@end -@interface CHIPDoorLockClusterProgrammingEventNotificationParams : NSObject - -@property (strong, nonatomic) NSNumber * _Nonnull programEventSource; - -@property (strong, nonatomic) NSNumber * _Nonnull programEventCode; - -@property (strong, nonatomic) NSNumber * _Nonnull userId; - -@property (strong, nonatomic) NSData * _Nonnull pin; - -@property (strong, nonatomic) NSNumber * _Nonnull userType; - -@property (strong, nonatomic) NSNumber * _Nonnull userStatus; - -@property (strong, nonatomic) NSNumber * _Nonnull localTime; - -@property (strong, nonatomic) NSString * _Nullable data; -/** - * Controls whether the command is a timed command (using Timed Invoke). - * - * If nil (the default value), a regular invoke is done for commands that do - * not require a timed invoke and a timed invoke with some default timed request - * timeout is done for commands that require a timed invoke. - * - * If not nil, a timed invoke is done, with the provided value used as the timed - * request timeout. The value should be chosen small enough to provide the - * desired security properties but large enough that it will allow a round-trip - * from the sever to the client (for the status response and actual invoke - * request) within the timeout window. - * - */ -@property (strong, nonatomic, nullable) NSNumber * timedInvokeTimeoutMs; - - (instancetype)init; @end @interface CHIPDoorLockClusterSetCredentialParams : NSObject diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm index ddf855f7e3e999..ba6b8c7df777b8 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCommandPayloadsObjc.mm @@ -1006,6 +1006,13 @@ - (instancetype)init } return self; } + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: frequency:%@; >", NSStringFromClass([self class]), _frequency]; + return descriptionString; +} + @end @implementation CHIPAlarmsClusterResetAlarmParams - (instancetype)init @@ -3246,222 +3253,6 @@ - (NSString *)description return descriptionString; } -@end -@implementation CHIPDoorLockClusterGetLogRecordParams -- (instancetype)init -{ - if (self = [super init]) { - - _logIndex = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: logIndex:%@; >", NSStringFromClass([self class]), _logIndex]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetLogRecordResponseParams -- (instancetype)init -{ - if (self = [super init]) { - - _logEntryId = @(0); - - _timestamp = @(0); - - _eventType = @(0); - - _source = @(0); - - _eventIdOrAlarmCode = @(0); - - _userId = @(0); - - _pin = [NSData data]; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString - stringWithFormat:@"<%@: logEntryId:%@; timestamp:%@; eventType:%@; source:%@; eventIdOrAlarmCode:%@; userId:%@; pin:%@; >", - NSStringFromClass([self class]), _logEntryId, _timestamp, _eventType, _source, _eventIdOrAlarmCode, _userId, - [_pin base64EncodedStringWithOptions:0]]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterSetPINCodeParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userStatus = nil; - - _userType = nil; - - _pin = [NSData data]; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userStatus:%@; userType:%@; pin:%@; >", NSStringFromClass([self class]), - _userId, _userStatus, _userType, [_pin base64EncodedStringWithOptions:0]]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetPINCodeParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: userId:%@; >", NSStringFromClass([self class]), _userId]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetPINCodeResponseParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userStatus = nil; - - _userType = nil; - - _pin = nil; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userStatus:%@; userType:%@; pin:%@; >", NSStringFromClass([self class]), - _userId, _userStatus, _userType, [_pin base64EncodedStringWithOptions:0]]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterClearPINCodeParams -- (instancetype)init -{ - if (self = [super init]) { - - _pinSlotIndex = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: pinSlotIndex:%@; >", NSStringFromClass([self class]), _pinSlotIndex]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterClearAllPINCodesParams -- (instancetype)init -{ - if (self = [super init]) { - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterSetUserStatusParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userStatus = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userStatus:%@; >", NSStringFromClass([self class]), _userId, _userStatus]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetUserStatusParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: userId:%@; >", NSStringFromClass([self class]), _userId]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetUserStatusResponseParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userStatus = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userStatus:%@; >", NSStringFromClass([self class]), _userId, _userStatus]; - return descriptionString; -} - @end @implementation CHIPDoorLockClusterSetWeekDayScheduleParams - (instancetype)init @@ -3760,171 +3551,6 @@ - (NSString *)description return descriptionString; } -@end -@implementation CHIPDoorLockClusterSetUserTypeParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userType = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userType:%@; >", NSStringFromClass([self class]), _userId, _userType]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetUserTypeParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: userId:%@; >", NSStringFromClass([self class]), _userId]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetUserTypeResponseParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userType = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userType:%@; >", NSStringFromClass([self class]), _userId, _userType]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterSetRFIDCodeParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userStatus = nil; - - _userType = nil; - - _rfidCode = [NSData data]; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userStatus:%@; userType:%@; rfidCode:%@; >", NSStringFromClass([self class]), - _userId, _userStatus, _userType, [_rfidCode base64EncodedStringWithOptions:0]]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetRFIDCodeParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: userId:%@; >", NSStringFromClass([self class]), _userId]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterGetRFIDCodeResponseParams -- (instancetype)init -{ - if (self = [super init]) { - - _userId = @(0); - - _userStatus = nil; - - _userType = nil; - - _rfidCode = nil; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: userId:%@; userStatus:%@; userType:%@; rfidCode:%@; >", NSStringFromClass([self class]), - _userId, _userStatus, _userType, [_rfidCode base64EncodedStringWithOptions:0]]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterClearRFIDCodeParams -- (instancetype)init -{ - if (self = [super init]) { - - _rfidSlotIndex = @(0); - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = - [NSString stringWithFormat:@"<%@: rfidSlotIndex:%@; >", NSStringFromClass([self class]), _rfidSlotIndex]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterClearAllRFIDCodesParams -- (instancetype)init -{ - if (self = [super init]) { - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; - return descriptionString; -} - @end @implementation CHIPDoorLockClusterSetUserParams - (instancetype)init @@ -4035,72 +3661,6 @@ - (NSString *)description return descriptionString; } -@end -@implementation CHIPDoorLockClusterOperatingEventNotificationParams -- (instancetype)init -{ - if (self = [super init]) { - - _operationEventSource = @(0); - - _operationEventCode = @(0); - - _userId = @(0); - - _pin = [NSData data]; - - _localTime = @(0); - - _data = nil; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString - stringWithFormat:@"<%@: operationEventSource:%@; operationEventCode:%@; userId:%@; pin:%@; localTime:%@; data:%@; >", - NSStringFromClass([self class]), _operationEventSource, _operationEventCode, _userId, - [_pin base64EncodedStringWithOptions:0], _localTime, _data]; - return descriptionString; -} - -@end -@implementation CHIPDoorLockClusterProgrammingEventNotificationParams -- (instancetype)init -{ - if (self = [super init]) { - - _programEventSource = @(0); - - _programEventCode = @(0); - - _userId = @(0); - - _pin = [NSData data]; - - _userType = @(0); - - _userStatus = @(0); - - _localTime = @(0); - - _data = nil; - _timedInvokeTimeoutMs = nil; - } - return self; -} - -- (NSString *)description -{ - NSString * descriptionString = [NSString stringWithFormat:@"<%@: programEventSource:%@; programEventCode:%@; userId:%@; " - @"pin:%@; userType:%@; userStatus:%@; localTime:%@; data:%@; >", - NSStringFromClass([self class]), _programEventSource, _programEventCode, _userId, - [_pin base64EncodedStringWithOptions:0], _userType, _userStatus, _localTime, _data]; - return descriptionString; -} - @end @implementation CHIPDoorLockClusterSetCredentialParams - (instancetype)init diff --git a/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h index d6f7d7f7390862..87cf8a5f6fa778 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h +++ b/src/darwin/Framework/CHIP/zap-generated/MatterClusterConstants.h @@ -869,7 +869,6 @@ typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { kMatterClusterDoorLockAttributeDoorOpenEventsID = 0x00000004, kMatterClusterDoorLockAttributeDoorClosedEventsID = 0x00000005, kMatterClusterDoorLockAttributeOpenPeriodID = 0x00000006, - kMatterClusterDoorLockAttributeNumberOfLogRecordsSupportedID = 0x00000010, kMatterClusterDoorLockAttributeNumberOfTotalUsersSupportedID = 0x00000011, kMatterClusterDoorLockAttributeNumberOfPINUsersSupportedID = 0x00000012, kMatterClusterDoorLockAttributeNumberOfRFIDUsersSupportedID = 0x00000013, @@ -882,7 +881,6 @@ typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { kMatterClusterDoorLockAttributeMinRFIDCodeLengthID = 0x0000001A, kMatterClusterDoorLockAttributeCredentialRulesSupportID = 0x0000001B, kMatterClusterDoorLockAttributeNumberOfCredentialsSupportedPerUserID = 0x0000001C, - kMatterClusterDoorLockAttributeEnableLoggingID = 0x00000020, kMatterClusterDoorLockAttributeLanguageID = 0x00000021, kMatterClusterDoorLockAttributeLEDSettingsID = 0x00000022, kMatterClusterDoorLockAttributeAutoRelockTimeID = 0x00000023, @@ -900,14 +898,6 @@ typedef NS_ENUM(uint32_t, MatterClusterAttributeIDType) { kMatterClusterDoorLockAttributeSendPINOverTheAirID = 0x00000032, kMatterClusterDoorLockAttributeRequirePINforRemoteOperationID = 0x00000033, kMatterClusterDoorLockAttributeExpiringUserTimeoutID = 0x00000035, - kMatterClusterDoorLockAttributeAlarmMaskID = 0x00000040, - kMatterClusterDoorLockAttributeKeypadOperationEventMaskID = 0x00000041, - kMatterClusterDoorLockAttributeRemoteOperationEventMaskID = 0x00000042, - kMatterClusterDoorLockAttributeManualOperationEventMaskID = 0x00000043, - kMatterClusterDoorLockAttributeRFIDOperationEventMaskID = 0x00000044, - kMatterClusterDoorLockAttributeKeypadProgrammingEventMaskID = 0x00000045, - kMatterClusterDoorLockAttributeRemoteProgrammingEventMaskID = 0x00000046, - kMatterClusterDoorLockAttributeRFIDProgrammingEventMaskID = 0x00000047, kMatterClusterDoorLockAttributeGeneratedCommandListID = kMatterClusterGlobalAttributeGeneratedCommandListID, kMatterClusterDoorLockAttributeAcceptedCommandListID = kMatterClusterGlobalAttributeAcceptedCommandListID, kMatterClusterDoorLockAttributeAttributeListID = kMatterClusterGlobalAttributeAttributeListID, @@ -2285,16 +2275,6 @@ typedef NS_ENUM(uint32_t, MatterClusterCommandIDType) { kMatterClusterDoorLockCommandLockDoorID = 0x00000000, kMatterClusterDoorLockCommandUnlockDoorID = 0x00000001, kMatterClusterDoorLockCommandUnlockWithTimeoutID = 0x00000003, - kMatterClusterDoorLockCommandGetLogRecordID = 0x00000004, - kMatterClusterDoorLockCommandGetLogRecordResponseID = 0x00000004, - kMatterClusterDoorLockCommandSetPINCodeID = 0x00000005, - kMatterClusterDoorLockCommandGetPINCodeID = 0x00000006, - kMatterClusterDoorLockCommandGetPINCodeResponseID = 0x00000006, - kMatterClusterDoorLockCommandClearPINCodeID = 0x00000007, - kMatterClusterDoorLockCommandClearAllPINCodesID = 0x00000008, - kMatterClusterDoorLockCommandSetUserStatusID = 0x00000009, - kMatterClusterDoorLockCommandGetUserStatusID = 0x0000000A, - kMatterClusterDoorLockCommandGetUserStatusResponseID = 0x0000000A, kMatterClusterDoorLockCommandSetWeekDayScheduleID = 0x0000000B, kMatterClusterDoorLockCommandGetWeekDayScheduleID = 0x0000000C, kMatterClusterDoorLockCommandGetWeekDayScheduleResponseID = 0x0000000C, @@ -2307,20 +2287,10 @@ typedef NS_ENUM(uint32_t, MatterClusterCommandIDType) { kMatterClusterDoorLockCommandGetHolidayScheduleID = 0x00000012, kMatterClusterDoorLockCommandGetHolidayScheduleResponseID = 0x00000012, kMatterClusterDoorLockCommandClearHolidayScheduleID = 0x00000013, - kMatterClusterDoorLockCommandSetUserTypeID = 0x00000014, - kMatterClusterDoorLockCommandGetUserTypeID = 0x00000015, - kMatterClusterDoorLockCommandGetUserTypeResponseID = 0x00000015, - kMatterClusterDoorLockCommandSetRFIDCodeID = 0x00000016, - kMatterClusterDoorLockCommandGetRFIDCodeID = 0x00000017, - kMatterClusterDoorLockCommandGetRFIDCodeResponseID = 0x00000017, - kMatterClusterDoorLockCommandClearRFIDCodeID = 0x00000018, - kMatterClusterDoorLockCommandClearAllRFIDCodesID = 0x00000019, kMatterClusterDoorLockCommandSetUserID = 0x0000001A, kMatterClusterDoorLockCommandGetUserID = 0x0000001B, kMatterClusterDoorLockCommandGetUserResponseID = 0x0000001C, kMatterClusterDoorLockCommandClearUserID = 0x0000001D, - kMatterClusterDoorLockCommandOperatingEventNotificationID = 0x00000020, - kMatterClusterDoorLockCommandProgrammingEventNotificationID = 0x00000021, kMatterClusterDoorLockCommandSetCredentialID = 0x00000022, kMatterClusterDoorLockCommandSetCredentialResponseID = 0x00000023, kMatterClusterDoorLockCommandGetCredentialStatusID = 0x00000024, diff --git a/zzz_generated/app-common/app-common/zap-generated/attribute-id.h b/zzz_generated/app-common/app-common/zap-generated/attribute-id.h index d86056835f18c5..674ea17b437e66 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attribute-id.h +++ b/zzz_generated/app-common/app-common/zap-generated/attribute-id.h @@ -697,7 +697,6 @@ #define ZCL_DOOR_OPEN_EVENTS_ATTRIBUTE_ID (0x0004) #define ZCL_DOOR_CLOSED_EVENTS_ATTRIBUTE_ID (0x0005) #define ZCL_OPEN_PERIOD_ATTRIBUTE_ID (0x0006) -#define ZCL_NUM_LOG_RECORDS_SUPPORTED_ATTRIBUTE_ID (0x0010) #define ZCL_NUM_TOTAL_USERS_SUPPORTED_ATTRIBUTE_ID (0x0011) #define ZCL_NUM_PIN_USERS_SUPPORTED_ATTRIBUTE_ID (0x0012) #define ZCL_NUM_RFID_USERS_SUPPORTED_ATTRIBUTE_ID (0x0013) @@ -710,7 +709,6 @@ #define ZCL_MIN_RFID_CODE_LENGTH_ATTRIBUTE_ID (0x001A) #define ZCL_CREDENTIAL_RULES_SUPPORT_ATTRIBUTE_ID (0x001B) #define ZCL_NUM_CREDENTIALS_SUPPORTED_PER_USER_ATTRIBUTE_ID (0x001C) -#define ZCL_ENABLE_LOGGING_ATTRIBUTE_ID (0x0020) #define ZCL_LANGUAGE_ATTRIBUTE_ID (0x0021) #define ZCL_LED_SETTINGS_ATTRIBUTE_ID (0x0022) #define ZCL_AUTO_RELOCK_TIME_ATTRIBUTE_ID (0x0023) @@ -728,14 +726,6 @@ #define ZCL_SEND_PIN_OVER_THE_AIR_ATTRIBUTE_ID (0x0032) #define ZCL_REQUIRE_PIN_FOR_REMOTE_OPERATION_ATTRIBUTE_ID (0x0033) #define ZCL_EXPIRING_USER_TIMEOUT_ATTRIBUTE_ID (0x0035) -#define ZCL_ALARM_MASK_ATTRIBUTE_ID (0x0040) -#define ZCL_KEYPAD_OPERATION_EVENT_MASK_ATTRIBUTE_ID (0x0041) -#define ZCL_REMOTE_OPERATION_EVENT_MASK_ATTRIBUTE_ID (0x0042) -#define ZCL_MANUAL_OPERATION_EVENT_MASK_ATTRIBUTE_ID (0x0043) -#define ZCL_RFID_OPERATION_EVENT_MASK_ATTRIBUTE_ID (0x0044) -#define ZCL_KEYPAD_PROGRAMMING_EVENT_MASK_ATTRIBUTE_ID (0x0045) -#define ZCL_REMOTE_PROGRAMMING_EVENT_MASK_ATTRIBUTE_ID (0x0046) -#define ZCL_RFID_PROGRAMMING_EVENT_MASK_ATTRIBUTE_ID (0x0047) // Attribute ids for cluster: Window Covering diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index 9690744c1c1e44..4f3cb8801c0179 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -14548,37 +14548,6 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) } // namespace OpenPeriod -namespace NumberOfLogRecordsSupported { - -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) -{ - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_INT16U_ATTRIBUTE_TYPE); -} - -} // namespace NumberOfLogRecordsSupported - namespace NumberOfTotalUsersSupported { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) @@ -14951,37 +14920,6 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) } // namespace NumberOfCredentialsSupportedPerUser -namespace EnableLogging { - -EmberAfStatus Get(chip::EndpointId endpoint, bool * value) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, bool value) -{ - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); -} - -} // namespace EnableLogging - namespace Language { EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value) @@ -15508,254 +15446,6 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) } // namespace ExpiringUserTimeout -namespace AlarmMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace AlarmMask - -namespace KeypadOperationEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace KeypadOperationEventMask - -namespace RemoteOperationEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace RemoteOperationEventMask - -namespace ManualOperationEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace ManualOperationEventMask - -namespace RFIDOperationEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace RFIDOperationEventMask - -namespace KeypadProgrammingEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace KeypadProgrammingEventMask - -namespace RemoteProgrammingEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace RemoteProgrammingEventMask - -namespace RFIDProgrammingEventMask { - -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value) -{ - using Traits = NumericAttributeTraits>; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadServerAttribute(endpoint, Clusters::DoorLock::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value) -{ - using Traits = NumericAttributeTraits>; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteServerAttribute(endpoint, Clusters::DoorLock::Id, Id, writable, ZCL_BITMAP16_ATTRIBUTE_TYPE); -} - -} // namespace RFIDProgrammingEventMask - namespace FeatureMap { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h index 1c18d071840ba8..13a112b0832938 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h @@ -2579,11 +2579,6 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace OpenPeriod -namespace NumberOfLogRecordsSupported { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); -} // namespace NumberOfLogRecordsSupported - namespace NumberOfTotalUsersSupported { EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); @@ -2645,11 +2640,6 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); } // namespace NumberOfCredentialsSupportedPerUser -namespace EnableLogging { -EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean -EmberAfStatus Set(chip::EndpointId endpoint, bool value); -} // namespace EnableLogging - namespace Language { EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value); @@ -2739,54 +2729,6 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // int16u EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace ExpiringUserTimeout -namespace AlarmMask { -EmberAfStatus Get(chip::EndpointId endpoint, chip::BitFlags * value); // DlAlarmMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace AlarmMask - -namespace KeypadOperationEventMask { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlKeypadOperationEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace KeypadOperationEventMask - -namespace RemoteOperationEventMask { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlRemoteOperationEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace RemoteOperationEventMask - -namespace ManualOperationEventMask { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlManualOperationEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace ManualOperationEventMask - -namespace RFIDOperationEventMask { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlRFIDOperationEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace RFIDOperationEventMask - -namespace KeypadProgrammingEventMask { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlKeypadOperationEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace KeypadProgrammingEventMask - -namespace RemoteProgrammingEventMask { -EmberAfStatus -Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlRemoteProgrammingEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace RemoteProgrammingEventMask - -namespace RFIDProgrammingEventMask { -EmberAfStatus Get(chip::EndpointId endpoint, - chip::BitFlags * value); // DlRFIDProgrammingEventMask -EmberAfStatus Set(chip::EndpointId endpoint, chip::BitFlags value); -} // namespace RFIDProgrammingEventMask - namespace FeatureMap { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); diff --git a/zzz_generated/app-common/app-common/zap-generated/callback.h b/zzz_generated/app-common/app-common/zap-generated/callback.h index c334f98771c8f0..20e4c5a0a2cb4a 100644 --- a/zzz_generated/app-common/app-common/zap-generated/callback.h +++ b/zzz_generated/app-common/app-common/zap-generated/callback.h @@ -13187,64 +13187,6 @@ bool emberAfDoorLockClusterUnlockDoorCallback( bool emberAfDoorLockClusterUnlockWithTimeoutCallback( chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, const chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetLogRecord Command callback (from client) - */ -bool emberAfDoorLockClusterGetLogRecordCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::GetLogRecord::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetLogRecordResponse Command callback (from server) - */ -bool emberAfDoorLockClusterGetLogRecordResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t logEntryId, uint32_t timestamp, uint8_t eventType, uint8_t source, - uint8_t eventIdOrAlarmCode, uint16_t userId, chip::ByteSpan pin); -/** - * @brief Door Lock Cluster SetPINCode Command callback (from client) - */ -bool emberAfDoorLockClusterSetPINCodeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::SetPINCode::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetPINCode Command callback (from client) - */ -bool emberAfDoorLockClusterGetPINCodeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::GetPINCode::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetPINCodeResponse Command callback (from server) - */ -bool emberAfDoorLockClusterGetPINCodeResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t userId, uint8_t userStatus, uint8_t userType, chip::ByteSpan pin); -/** - * @brief Door Lock Cluster ClearPINCode Command callback (from client) - */ -bool emberAfDoorLockClusterClearPINCodeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::ClearPINCode::DecodableType & commandData); -/** - * @brief Door Lock Cluster ClearAllPINCodes Command callback (from client) - */ -bool emberAfDoorLockClusterClearAllPINCodesCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::ClearAllPINCodes::DecodableType & commandData); -/** - * @brief Door Lock Cluster SetUserStatus Command callback (from client) - */ -bool emberAfDoorLockClusterSetUserStatusCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::SetUserStatus::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetUserStatus Command callback (from client) - */ -bool emberAfDoorLockClusterGetUserStatusCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::GetUserStatus::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetUserStatusResponse Command callback (from server) - */ -bool emberAfDoorLockClusterGetUserStatusResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t userId, uint8_t userStatus); /** * @brief Door Lock Cluster SetWeekDaySchedule Command callback (from client) */ @@ -13318,53 +13260,6 @@ bool emberAfDoorLockClusterGetHolidayScheduleResponseCallback(chip::EndpointId e bool emberAfDoorLockClusterClearHolidayScheduleCallback( chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, const chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::DecodableType & commandData); -/** - * @brief Door Lock Cluster SetUserType Command callback (from client) - */ -bool emberAfDoorLockClusterSetUserTypeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::SetUserType::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetUserType Command callback (from client) - */ -bool emberAfDoorLockClusterGetUserTypeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::GetUserType::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetUserTypeResponse Command callback (from server) - */ -bool emberAfDoorLockClusterGetUserTypeResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t userId, uint8_t userType); -/** - * @brief Door Lock Cluster SetRFIDCode Command callback (from client) - */ -bool emberAfDoorLockClusterSetRFIDCodeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::SetRFIDCode::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetRFIDCode Command callback (from client) - */ -bool emberAfDoorLockClusterGetRFIDCodeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::GetRFIDCode::DecodableType & commandData); -/** - * @brief Door Lock Cluster GetRFIDCodeResponse Command callback (from server) - */ -bool emberAfDoorLockClusterGetRFIDCodeResponseCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint16_t userId, uint8_t userStatus, uint8_t userType, - chip::ByteSpan rfidCode); -/** - * @brief Door Lock Cluster ClearRFIDCode Command callback (from client) - */ -bool emberAfDoorLockClusterClearRFIDCodeCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::ClearRFIDCode::DecodableType & commandData); -/** - * @brief Door Lock Cluster ClearAllRFIDCodes Command callback (from client) - */ -bool emberAfDoorLockClusterClearAllRFIDCodesCallback( - chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, - const chip::app::Clusters::DoorLock::Commands::ClearAllRFIDCodes::DecodableType & commandData); /** * @brief Door Lock Cluster SetUser Command callback (from client) */ @@ -13392,20 +13287,6 @@ bool emberAfDoorLockClusterGetUserResponseCallback(chip::EndpointId endpoint, ch bool emberAfDoorLockClusterClearUserCallback(chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, const chip::app::Clusters::DoorLock::Commands::ClearUser::DecodableType & commandData); -/** - * @brief Door Lock Cluster OperatingEventNotification Command callback (from server) - */ -bool emberAfDoorLockClusterOperatingEventNotificationCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t operationEventSource, uint8_t operationEventCode, - uint16_t userId, chip::ByteSpan pin, uint32_t localTime, - chip::CharSpan data); -/** - * @brief Door Lock Cluster ProgrammingEventNotification Command callback (from server) - */ -bool emberAfDoorLockClusterProgrammingEventNotificationCallback(chip::EndpointId endpoint, chip::app::CommandSender * commandObj, - uint8_t programEventSource, uint8_t programEventCode, - uint16_t userId, chip::ByteSpan pin, uint8_t userType, - uint8_t userStatus, uint32_t localTime, chip::CharSpan data); /** * @brief Door Lock Cluster SetCredential Command callback (from client) */ diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 7d9c297c6b497a..4b68a74a5abb9e 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -1204,18 +1204,6 @@ enum class DoorLockUserType : uint8_t kNotSupported = 0xFF, }; -// Bitmap for DlAlarmMask -enum class DlAlarmMask : uint16_t -{ - kLockingMechanismJammed = 0x1, - kLockResetToFactoryDefaults = 0x2, - kReserved = 0x4, - kRFModulePowerCycled = 0x8, - kWrongCodeEntryLimit = 0x10, - kFrontEscutcheonRemovedFromMain = 0x20, - kForcedDoorOpenUnderDoorLockedCondition = 0x40, -}; - // Bitmap for DlCredentialRuleMask enum class DlCredentialRuleMask : uint8_t { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp index a8e339f235a41d..992a335e868dba 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp @@ -12679,646 +12679,18 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) return CHIP_NO_ERROR; } } // namespace UnlockWithTimeout. -namespace GetLogRecord { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogIndex)), logIndex)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kLogIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, logIndex)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetLogRecord. -namespace GetLogRecordResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLogEntryId)), logEntryId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kTimestamp)), timestamp)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEventType)), eventType)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kSource)), source)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEventIdOrAlarmCode)), eventIdOrAlarmCode)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kPin)), pin)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kLogEntryId): - ReturnErrorOnFailure(DataModel::Decode(reader, logEntryId)); - break; - case to_underlying(Fields::kTimestamp): - ReturnErrorOnFailure(DataModel::Decode(reader, timestamp)); - break; - case to_underlying(Fields::kEventType): - ReturnErrorOnFailure(DataModel::Decode(reader, eventType)); - break; - case to_underlying(Fields::kSource): - ReturnErrorOnFailure(DataModel::Decode(reader, source)); - break; - case to_underlying(Fields::kEventIdOrAlarmCode): - ReturnErrorOnFailure(DataModel::Decode(reader, eventIdOrAlarmCode)); - break; - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kPin): - ReturnErrorOnFailure(DataModel::Decode(reader, pin)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetLogRecordResponse. -namespace SetPINCode { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kPin)), pin)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); - break; - case to_underlying(Fields::kPin): - ReturnErrorOnFailure(DataModel::Decode(reader, pin)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SetPINCode. -namespace GetPINCode { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetPINCode. -namespace GetPINCodeResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kPin)), pin)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); - break; - case to_underlying(Fields::kPin): - ReturnErrorOnFailure(DataModel::Decode(reader, pin)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetPINCodeResponse. -namespace ClearPINCode { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kPinSlotIndex)), pinSlotIndex)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kPinSlotIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, pinSlotIndex)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace ClearPINCode. -namespace ClearAllPINCodes { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace ClearAllPINCodes. -namespace SetUserStatus { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SetUserStatus. -namespace GetUserStatus { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetUserStatus. -namespace GetUserStatusResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetUserStatusResponse. -namespace SetWeekDaySchedule { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDaysMask)), daysMask)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartHour)), startHour)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartMinute)), startMinute)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndHour)), endHour)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndMinute)), endMinute)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kWeekDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); - break; - case to_underlying(Fields::kUserIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); - break; - case to_underlying(Fields::kDaysMask): - ReturnErrorOnFailure(DataModel::Decode(reader, daysMask)); - break; - case to_underlying(Fields::kStartHour): - ReturnErrorOnFailure(DataModel::Decode(reader, startHour)); - break; - case to_underlying(Fields::kStartMinute): - ReturnErrorOnFailure(DataModel::Decode(reader, startMinute)); - break; - case to_underlying(Fields::kEndHour): - ReturnErrorOnFailure(DataModel::Decode(reader, endHour)); - break; - case to_underlying(Fields::kEndMinute): - ReturnErrorOnFailure(DataModel::Decode(reader, endMinute)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SetWeekDaySchedule. -namespace GetWeekDaySchedule { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kWeekDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); - break; - case to_underlying(Fields::kUserIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetWeekDaySchedule. -namespace GetWeekDayScheduleResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDaysMask)), daysMask)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartHour)), startHour)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartMinute)), startMinute)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndHour)), endHour)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndMinute)), endMinute)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kWeekDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); - break; - case to_underlying(Fields::kUserIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); - break; - case to_underlying(Fields::kStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, status)); - break; - case to_underlying(Fields::kDaysMask): - ReturnErrorOnFailure(DataModel::Decode(reader, daysMask)); - break; - case to_underlying(Fields::kStartHour): - ReturnErrorOnFailure(DataModel::Decode(reader, startHour)); - break; - case to_underlying(Fields::kStartMinute): - ReturnErrorOnFailure(DataModel::Decode(reader, startMinute)); - break; - case to_underlying(Fields::kEndHour): - ReturnErrorOnFailure(DataModel::Decode(reader, endHour)); - break; - case to_underlying(Fields::kEndMinute): - ReturnErrorOnFailure(DataModel::Decode(reader, endMinute)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetWeekDayScheduleResponse. -namespace ClearWeekDaySchedule { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kWeekDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); - break; - case to_underlying(Fields::kUserIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace ClearWeekDaySchedule. -namespace SetYearDaySchedule { +namespace SetWeekDaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDaysMask)), daysMask)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartHour)), startHour)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartMinute)), startMinute)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndHour)), endHour)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndMinute)), endMinute)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13337,58 +12709,26 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kYearDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); + case to_underlying(Fields::kWeekDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); break; case to_underlying(Fields::kUserIndex): ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); break; - case to_underlying(Fields::kLocalStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); + case to_underlying(Fields::kDaysMask): + ReturnErrorOnFailure(DataModel::Decode(reader, daysMask)); break; - case to_underlying(Fields::kLocalEndTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); + case to_underlying(Fields::kStartHour): + ReturnErrorOnFailure(DataModel::Decode(reader, startHour)); break; - default: + case to_underlying(Fields::kStartMinute): + ReturnErrorOnFailure(DataModel::Decode(reader, startMinute)); break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SetYearDaySchedule. -namespace GetYearDaySchedule { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kYearDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); + case to_underlying(Fields::kEndHour): + ReturnErrorOnFailure(DataModel::Decode(reader, endHour)); break; - case to_underlying(Fields::kUserIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); + case to_underlying(Fields::kEndMinute): + ReturnErrorOnFailure(DataModel::Decode(reader, endMinute)); break; default: break; @@ -13399,17 +12739,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetYearDaySchedule. -namespace GetYearDayScheduleResponse { +} // namespace SetWeekDaySchedule. +namespace GetWeekDaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13428,21 +12765,12 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kYearDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); + case to_underlying(Fields::kWeekDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); break; case to_underlying(Fields::kUserIndex): ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); break; - case to_underlying(Fields::kStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, status)); - break; - case to_underlying(Fields::kLocalStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); - break; - case to_underlying(Fields::kLocalEndTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); - break; default: break; } @@ -13452,14 +12780,20 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetYearDayScheduleResponse. -namespace ClearYearDaySchedule { +} // namespace GetWeekDaySchedule. +namespace GetWeekDayScheduleResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kDaysMask)), daysMask)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartHour)), startHour)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStartMinute)), startMinute)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndHour)), endHour)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kEndMinute)), endMinute)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13478,150 +12812,29 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kYearDayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); + case to_underlying(Fields::kWeekDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); break; case to_underlying(Fields::kUserIndex): ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace ClearYearDaySchedule. -namespace SetHolidaySchedule { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperatingMode)), operatingMode)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kHolidayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); - break; - case to_underlying(Fields::kLocalStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); - break; - case to_underlying(Fields::kLocalEndTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); - break; - case to_underlying(Fields::kOperatingMode): - ReturnErrorOnFailure(DataModel::Decode(reader, operatingMode)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace SetHolidaySchedule. -namespace GetHolidaySchedule { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kHolidayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace GetHolidaySchedule. -namespace GetHolidayScheduleResponse { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperatingMode)), operatingMode)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kHolidayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); - break; case to_underlying(Fields::kStatus): ReturnErrorOnFailure(DataModel::Decode(reader, status)); break; - case to_underlying(Fields::kLocalStartTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); + case to_underlying(Fields::kDaysMask): + ReturnErrorOnFailure(DataModel::Decode(reader, daysMask)); + break; + case to_underlying(Fields::kStartHour): + ReturnErrorOnFailure(DataModel::Decode(reader, startHour)); + break; + case to_underlying(Fields::kStartMinute): + ReturnErrorOnFailure(DataModel::Decode(reader, startMinute)); break; - case to_underlying(Fields::kLocalEndTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); + case to_underlying(Fields::kEndHour): + ReturnErrorOnFailure(DataModel::Decode(reader, endHour)); break; - case to_underlying(Fields::kOperatingMode): - ReturnErrorOnFailure(DataModel::Decode(reader, operatingMode)); + case to_underlying(Fields::kEndMinute): + ReturnErrorOnFailure(DataModel::Decode(reader, endMinute)); break; default: break; @@ -13632,13 +12845,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetHolidayScheduleResponse. -namespace ClearHolidaySchedule { +} // namespace GetWeekDayScheduleResponse. +namespace ClearWeekDaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kWeekDayIndex)), weekDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13657,8 +12871,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kHolidayIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); + case to_underlying(Fields::kWeekDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, weekDayIndex)); + break; + case to_underlying(Fields::kUserIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); break; default: break; @@ -13669,14 +12886,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace ClearHolidaySchedule. -namespace SetUserType { +} // namespace ClearWeekDaySchedule. +namespace SetYearDaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13695,11 +12914,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); + case to_underlying(Fields::kYearDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); + case to_underlying(Fields::kUserIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); + break; + case to_underlying(Fields::kLocalStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); + break; + case to_underlying(Fields::kLocalEndTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); break; default: break; @@ -13710,13 +12935,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace SetUserType. -namespace GetUserType { +} // namespace SetYearDaySchedule. +namespace GetYearDaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13735,8 +12961,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); + case to_underlying(Fields::kYearDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); + break; + case to_underlying(Fields::kUserIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); break; default: break; @@ -13747,14 +12976,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetUserType. -namespace GetUserTypeResponse { +} // namespace GetYearDaySchedule. +namespace GetYearDayScheduleResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13773,11 +13005,20 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); + case to_underlying(Fields::kYearDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); + case to_underlying(Fields::kUserIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); + break; + case to_underlying(Fields::kStatus): + ReturnErrorOnFailure(DataModel::Decode(reader, status)); + break; + case to_underlying(Fields::kLocalStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); + break; + case to_underlying(Fields::kLocalEndTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); break; default: break; @@ -13788,16 +13029,14 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetUserTypeResponse. -namespace SetRFIDCode { +} // namespace GetYearDayScheduleResponse. +namespace ClearYearDaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kRfidCode)), rfidCode)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kYearDayIndex)), yearDayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserIndex)), userIndex)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13816,17 +13055,11 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); + case to_underlying(Fields::kYearDayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, yearDayIndex)); break; - case to_underlying(Fields::kRfidCode): - ReturnErrorOnFailure(DataModel::Decode(reader, rfidCode)); + case to_underlying(Fields::kUserIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, userIndex)); break; default: break; @@ -13837,13 +13070,16 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace SetRFIDCode. -namespace GetRFIDCode { +} // namespace ClearYearDaySchedule. +namespace SetHolidaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperatingMode)), operatingMode)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13862,8 +13098,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); + case to_underlying(Fields::kHolidayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); + break; + case to_underlying(Fields::kLocalStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); + break; + case to_underlying(Fields::kLocalEndTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); + break; + case to_underlying(Fields::kOperatingMode): + ReturnErrorOnFailure(DataModel::Decode(reader, operatingMode)); break; default: break; @@ -13874,16 +13119,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetRFIDCode. -namespace GetRFIDCodeResponse { +} // namespace SetHolidaySchedule. +namespace GetHolidaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kRfidCode)), rfidCode)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13902,17 +13144,8 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); - break; - case to_underlying(Fields::kRfidCode): - ReturnErrorOnFailure(DataModel::Decode(reader, rfidCode)); + case to_underlying(Fields::kHolidayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); break; default: break; @@ -13923,13 +13156,17 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace GetRFIDCodeResponse. -namespace ClearRFIDCode { +} // namespace GetHolidaySchedule. +namespace GetHolidayScheduleResponse { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kRfidSlotIndex)), rfidSlotIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kStatus)), status)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalStartTime)), localStartTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalEndTime)), localEndTime)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperatingMode)), operatingMode)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13948,8 +13185,20 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { - case to_underlying(Fields::kRfidSlotIndex): - ReturnErrorOnFailure(DataModel::Decode(reader, rfidSlotIndex)); + case to_underlying(Fields::kHolidayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); + break; + case to_underlying(Fields::kStatus): + ReturnErrorOnFailure(DataModel::Decode(reader, status)); + break; + case to_underlying(Fields::kLocalStartTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localStartTime)); + break; + case to_underlying(Fields::kLocalEndTime): + ReturnErrorOnFailure(DataModel::Decode(reader, localEndTime)); + break; + case to_underlying(Fields::kOperatingMode): + ReturnErrorOnFailure(DataModel::Decode(reader, operatingMode)); break; default: break; @@ -13960,12 +13209,13 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace ClearRFIDCode. -namespace ClearAllRFIDCodes { +} // namespace GetHolidayScheduleResponse. +namespace ClearHolidaySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { TLV::TLVType outer; ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); + ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kHolidayIndex)), holidayIndex)); ReturnErrorOnFailure(writer.EndContainer(outer)); return CHIP_NO_ERROR; } @@ -13984,6 +13234,9 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } switch (TLV::TagNumFromTag(reader.GetTag())) { + case to_underlying(Fields::kHolidayIndex): + ReturnErrorOnFailure(DataModel::Decode(reader, holidayIndex)); + break; default: break; } @@ -13993,7 +13246,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) ReturnErrorOnFailure(reader.ExitContainer(outer)); return CHIP_NO_ERROR; } -} // namespace ClearAllRFIDCodes. +} // namespace ClearHolidaySchedule. namespace SetUser { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { @@ -14204,131 +13457,6 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) return CHIP_NO_ERROR; } } // namespace ClearUser. -namespace OperatingEventNotification { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperationEventSource)), operationEventSource)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kOperationEventCode)), operationEventCode)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kPin)), pin)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalTime)), localTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kData)), data)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kOperationEventSource): - ReturnErrorOnFailure(DataModel::Decode(reader, operationEventSource)); - break; - case to_underlying(Fields::kOperationEventCode): - ReturnErrorOnFailure(DataModel::Decode(reader, operationEventCode)); - break; - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kPin): - ReturnErrorOnFailure(DataModel::Decode(reader, pin)); - break; - case to_underlying(Fields::kLocalTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localTime)); - break; - case to_underlying(Fields::kData): - ReturnErrorOnFailure(DataModel::Decode(reader, data)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace OperatingEventNotification. -namespace ProgrammingEventNotification { -CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const -{ - TLV::TLVType outer; - ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer)); - ReturnErrorOnFailure( - DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProgramEventSource)), programEventSource)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kProgramEventCode)), programEventCode)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserId)), userId)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kPin)), pin)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserType)), userType)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kUserStatus)), userStatus)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kLocalTime)), localTime)); - ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(to_underlying(Fields::kData)), data)); - ReturnErrorOnFailure(writer.EndContainer(outer)); - return CHIP_NO_ERROR; -} - -CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) -{ - CHIP_ERROR err = CHIP_NO_ERROR; - TLV::TLVType outer; - VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE); - ReturnErrorOnFailure(reader.EnterContainer(outer)); - while ((err = reader.Next()) == CHIP_NO_ERROR) - { - if (!TLV::IsContextTag(reader.GetTag())) - { - continue; - } - switch (TLV::TagNumFromTag(reader.GetTag())) - { - case to_underlying(Fields::kProgramEventSource): - ReturnErrorOnFailure(DataModel::Decode(reader, programEventSource)); - break; - case to_underlying(Fields::kProgramEventCode): - ReturnErrorOnFailure(DataModel::Decode(reader, programEventCode)); - break; - case to_underlying(Fields::kUserId): - ReturnErrorOnFailure(DataModel::Decode(reader, userId)); - break; - case to_underlying(Fields::kPin): - ReturnErrorOnFailure(DataModel::Decode(reader, pin)); - break; - case to_underlying(Fields::kUserType): - ReturnErrorOnFailure(DataModel::Decode(reader, userType)); - break; - case to_underlying(Fields::kUserStatus): - ReturnErrorOnFailure(DataModel::Decode(reader, userStatus)); - break; - case to_underlying(Fields::kLocalTime): - ReturnErrorOnFailure(DataModel::Decode(reader, localTime)); - break; - case to_underlying(Fields::kData): - ReturnErrorOnFailure(DataModel::Decode(reader, data)); - break; - default: - break; - } - } - - VerifyOrReturnError(err == CHIP_END_OF_TLV, err); - ReturnErrorOnFailure(reader.ExitContainer(outer)); - return CHIP_NO_ERROR; -} -} // namespace ProgrammingEventNotification. namespace SetCredential { CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const { @@ -14590,9 +13718,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre case Attributes::OpenPeriod::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, openPeriod)); break; - case Attributes::NumberOfLogRecordsSupported::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, numberOfLogRecordsSupported)); - break; case Attributes::NumberOfTotalUsersSupported::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, numberOfTotalUsersSupported)); break; @@ -14629,9 +13754,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre case Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, numberOfCredentialsSupportedPerUser)); break; - case Attributes::EnableLogging::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, enableLogging)); - break; case Attributes::Language::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, language)); break; @@ -14683,30 +13805,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre case Attributes::ExpiringUserTimeout::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, expiringUserTimeout)); break; - case Attributes::AlarmMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, alarmMask)); - break; - case Attributes::KeypadOperationEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, keypadOperationEventMask)); - break; - case Attributes::RemoteOperationEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, remoteOperationEventMask)); - break; - case Attributes::ManualOperationEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, manualOperationEventMask)); - break; - case Attributes::RFIDOperationEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, RFIDOperationEventMask)); - break; - case Attributes::KeypadProgrammingEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, keypadProgrammingEventMask)); - break; - case Attributes::RemoteProgrammingEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, remoteProgrammingEventMask)); - break; - case Attributes::RFIDProgrammingEventMask::TypeInfo::GetAttributeId(): - ReturnErrorOnFailure(DataModel::Decode(reader, RFIDProgrammingEventMask)); - break; case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): ReturnErrorOnFailure(DataModel::Decode(reader, generatedCommandList)); break; @@ -27862,12 +26960,6 @@ bool CommandNeedsTimedInvoke(ClusterId aCluster, CommandId aCommand) case Clusters::DoorLock::Commands::LockDoor::Id: case Clusters::DoorLock::Commands::UnlockDoor::Id: case Clusters::DoorLock::Commands::UnlockWithTimeout::Id: - case Clusters::DoorLock::Commands::SetPINCode::Id: - case Clusters::DoorLock::Commands::ClearPINCode::Id: - case Clusters::DoorLock::Commands::ClearAllPINCodes::Id: - case Clusters::DoorLock::Commands::SetRFIDCode::Id: - case Clusters::DoorLock::Commands::ClearRFIDCode::Id: - case Clusters::DoorLock::Commands::ClearAllRFIDCodes::Id: case Clusters::DoorLock::Commands::SetUser::Id: case Clusters::DoorLock::Commands::ClearUser::Id: case Clusters::DoorLock::Commands::SetCredential::Id: diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index f231d25b5bfb15..9453dca5caf9d4 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -17427,56 +17427,6 @@ struct Type; struct DecodableType; } // namespace UnlockWithTimeout -namespace GetLogRecord { -struct Type; -struct DecodableType; -} // namespace GetLogRecord - -namespace GetLogRecordResponse { -struct Type; -struct DecodableType; -} // namespace GetLogRecordResponse - -namespace SetPINCode { -struct Type; -struct DecodableType; -} // namespace SetPINCode - -namespace GetPINCode { -struct Type; -struct DecodableType; -} // namespace GetPINCode - -namespace GetPINCodeResponse { -struct Type; -struct DecodableType; -} // namespace GetPINCodeResponse - -namespace ClearPINCode { -struct Type; -struct DecodableType; -} // namespace ClearPINCode - -namespace ClearAllPINCodes { -struct Type; -struct DecodableType; -} // namespace ClearAllPINCodes - -namespace SetUserStatus { -struct Type; -struct DecodableType; -} // namespace SetUserStatus - -namespace GetUserStatus { -struct Type; -struct DecodableType; -} // namespace GetUserStatus - -namespace GetUserStatusResponse { -struct Type; -struct DecodableType; -} // namespace GetUserStatusResponse - namespace SetWeekDaySchedule { struct Type; struct DecodableType; @@ -17537,46 +17487,6 @@ struct Type; struct DecodableType; } // namespace ClearHolidaySchedule -namespace SetUserType { -struct Type; -struct DecodableType; -} // namespace SetUserType - -namespace GetUserType { -struct Type; -struct DecodableType; -} // namespace GetUserType - -namespace GetUserTypeResponse { -struct Type; -struct DecodableType; -} // namespace GetUserTypeResponse - -namespace SetRFIDCode { -struct Type; -struct DecodableType; -} // namespace SetRFIDCode - -namespace GetRFIDCode { -struct Type; -struct DecodableType; -} // namespace GetRFIDCode - -namespace GetRFIDCodeResponse { -struct Type; -struct DecodableType; -} // namespace GetRFIDCodeResponse - -namespace ClearRFIDCode { -struct Type; -struct DecodableType; -} // namespace ClearRFIDCode - -namespace ClearAllRFIDCodes { -struct Type; -struct DecodableType; -} // namespace ClearAllRFIDCodes - namespace SetUser { struct Type; struct DecodableType; @@ -17597,16 +17507,6 @@ struct Type; struct DecodableType; } // namespace ClearUser -namespace OperatingEventNotification { -struct Type; -struct DecodableType; -} // namespace OperatingEventNotification - -namespace ProgrammingEventNotification { -struct Type; -struct DecodableType; -} // namespace ProgrammingEventNotification - namespace SetCredential { struct Type; struct DecodableType; @@ -17734,185 +17634,76 @@ struct DecodableType CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace UnlockWithTimeout -namespace GetLogRecord { -enum class Fields -{ - kLogIndex = 0, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetLogRecord::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t logIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetLogRecord::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t logIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetLogRecord -namespace GetLogRecordResponse { -enum class Fields -{ - kLogEntryId = 0, - kTimestamp = 1, - kEventType = 2, - kSource = 3, - kEventIdOrAlarmCode = 4, - kUserId = 5, - kPin = 6, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetLogRecordResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t logEntryId = static_cast(0); - uint32_t timestamp = static_cast(0); - uint8_t eventType = static_cast(0); - uint8_t source = static_cast(0); - uint8_t eventIdOrAlarmCode = static_cast(0); - uint16_t userId = static_cast(0); - chip::ByteSpan pin; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetLogRecordResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t logEntryId = static_cast(0); - uint32_t timestamp = static_cast(0); - uint8_t eventType = static_cast(0); - uint8_t source = static_cast(0); - uint8_t eventIdOrAlarmCode = static_cast(0); - uint16_t userId = static_cast(0); - chip::ByteSpan pin; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetLogRecordResponse -namespace SetPINCode { +namespace SetWeekDaySchedule { enum class Fields { - kUserId = 0, - kUserStatus = 1, - kUserType = 2, - kPin = 3, + kWeekDayIndex = 0, + kUserIndex = 1, + kDaysMask = 2, + kStartHour = 3, + kStartMinute = 4, + kEndHour = 5, + kEndMinute = 6, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetPINCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - chip::ByteSpan pin; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + chip::BitFlags daysMask = static_cast>(0); + uint8_t startHour = static_cast(0); + uint8_t startMinute = static_cast(0); + uint8_t endHour = static_cast(0); + uint8_t endMinute = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; using ResponseType = DataModel::NullObjectType; - static constexpr bool MustUseTimedInvoke() { return true; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::SetPINCode::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - chip::ByteSpan pin; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace SetPINCode -namespace GetPINCode { -enum class Fields -{ - kUserId = 0, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetPINCode::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::DoorLock::Commands::GetPINCodeResponse::DecodableType; - static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetPINCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + chip::BitFlags daysMask = static_cast>(0); + uint8_t startHour = static_cast(0); + uint8_t startMinute = static_cast(0); + uint8_t endHour = static_cast(0); + uint8_t endMinute = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetPINCode -namespace GetPINCodeResponse { +}; // namespace SetWeekDaySchedule +namespace GetWeekDaySchedule { enum class Fields { - kUserId = 0, - kUserStatus = 1, - kUserType = 2, - kPin = 3, + kWeekDayIndex = 0, + kUserIndex = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetPINCodeResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - DataModel::Nullable pin; + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = DataModel::NullObjectType; + using ResponseType = Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -17920,92 +17711,42 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetPINCodeResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - DataModel::Nullable pin; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetPINCodeResponse -namespace ClearPINCode { -enum class Fields -{ - kPinSlotIndex = 0, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearPINCode::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t pinSlotIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return true; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::ClearPINCode::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t pinSlotIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace ClearPINCode -namespace ClearAllPINCodes { -enum class Fields -{ -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearAllPINCodes::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return true; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::ClearAllPINCodes::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace ClearAllPINCodes -namespace SetUserStatus { +}; // namespace GetWeekDaySchedule +namespace GetWeekDayScheduleResponse { enum class Fields { - kUserId = 0, - kUserStatus = 1, + kWeekDayIndex = 0, + kUserIndex = 1, + kStatus = 2, + kDaysMask = 3, + kStartHour = 4, + kStartMinute = 5, + kEndHour = 6, + kEndMinute = 7, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetUserStatus::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetWeekDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DlUserStatus userStatus = static_cast(0); + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + Optional> daysMask; + Optional startHour; + Optional startMinute; + Optional endHour; + Optional endMinute; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18017,540 +17758,36 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::SetUserStatus::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetWeekDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DlUserStatus userStatus = static_cast(0); + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + Optional> daysMask; + Optional startHour; + Optional startMinute; + Optional endHour; + Optional endMinute; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace SetUserStatus -namespace GetUserStatus { -enum class Fields -{ - kUserId = 0, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetUserStatus::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetUserStatus::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetUserStatus -namespace GetUserStatusResponse { -enum class Fields -{ - kUserId = 0, - kUserStatus = 1, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetUserStatusResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - DlUserStatus userStatus = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetUserStatusResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint16_t userId = static_cast(0); - DlUserStatus userStatus = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetUserStatusResponse -namespace SetWeekDaySchedule { -enum class Fields -{ - kWeekDayIndex = 0, - kUserIndex = 1, - kDaysMask = 2, - kStartHour = 3, - kStartMinute = 4, - kEndHour = 5, - kEndMinute = 6, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetWeekDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - chip::BitFlags daysMask = static_cast>(0); - uint8_t startHour = static_cast(0); - uint8_t startMinute = static_cast(0); - uint8_t endHour = static_cast(0); - uint8_t endMinute = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::SetWeekDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - chip::BitFlags daysMask = static_cast>(0); - uint8_t startHour = static_cast(0); - uint8_t startMinute = static_cast(0); - uint8_t endHour = static_cast(0); - uint8_t endMinute = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace SetWeekDaySchedule -namespace GetWeekDaySchedule { -enum class Fields -{ - kWeekDayIndex = 0, - kUserIndex = 1, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetWeekDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetWeekDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetWeekDaySchedule -namespace GetWeekDayScheduleResponse { -enum class Fields -{ - kWeekDayIndex = 0, - kUserIndex = 1, - kStatus = 2, - kDaysMask = 3, - kStartHour = 4, - kStartMinute = 5, - kEndHour = 6, - kEndMinute = 7, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetWeekDayScheduleResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - DlStatus status = static_cast(0); - Optional> daysMask; - Optional startHour; - Optional startMinute; - Optional endHour; - Optional endMinute; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetWeekDayScheduleResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - DlStatus status = static_cast(0); - Optional> daysMask; - Optional startHour; - Optional startMinute; - Optional endHour; - Optional endMinute; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetWeekDayScheduleResponse -namespace ClearWeekDaySchedule { +}; // namespace GetWeekDayScheduleResponse +namespace ClearWeekDaySchedule { enum class Fields { kWeekDayIndex = 0, - kUserIndex = 1, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearWeekDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::ClearWeekDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t weekDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace ClearWeekDaySchedule -namespace SetYearDaySchedule { -enum class Fields -{ - kYearDayIndex = 0, - kUserIndex = 1, - kLocalStartTime = 2, - kLocalEndTime = 3, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetYearDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - uint32_t localStartTime = static_cast(0); - uint32_t localEndTime = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::SetYearDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - uint32_t localStartTime = static_cast(0); - uint32_t localEndTime = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace SetYearDaySchedule -namespace GetYearDaySchedule { -enum class Fields -{ - kYearDayIndex = 0, - kUserIndex = 1, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetYearDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetYearDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetYearDaySchedule -namespace GetYearDayScheduleResponse { -enum class Fields -{ - kYearDayIndex = 0, - kUserIndex = 1, - kStatus = 2, - kLocalStartTime = 3, - kLocalEndTime = 4, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetYearDayScheduleResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - DlStatus status = static_cast(0); - Optional localStartTime; - Optional localEndTime; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetYearDayScheduleResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - DlStatus status = static_cast(0); - Optional localStartTime; - Optional localEndTime; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetYearDayScheduleResponse -namespace ClearYearDaySchedule { -enum class Fields -{ - kYearDayIndex = 0, - kUserIndex = 1, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearYearDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::ClearYearDaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t yearDayIndex = static_cast(0); - uint16_t userIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace ClearYearDaySchedule -namespace SetHolidaySchedule { -enum class Fields -{ - kHolidayIndex = 0, - kLocalStartTime = 1, - kLocalEndTime = 2, - kOperatingMode = 3, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetHolidaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t holidayIndex = static_cast(0); - uint32_t localStartTime = static_cast(0); - uint32_t localEndTime = static_cast(0); - DlOperatingMode operatingMode = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::SetHolidaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t holidayIndex = static_cast(0); - uint32_t localStartTime = static_cast(0); - uint32_t localEndTime = static_cast(0); - DlOperatingMode operatingMode = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace SetHolidaySchedule -namespace GetHolidaySchedule { -enum class Fields -{ - kHolidayIndex = 0, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetHolidaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t holidayIndex = static_cast(0); - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetHolidaySchedule::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t holidayIndex = static_cast(0); - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetHolidaySchedule -namespace GetHolidayScheduleResponse { -enum class Fields -{ - kHolidayIndex = 0, - kStatus = 1, - kLocalStartTime = 2, - kLocalEndTime = 3, - kOperatingMode = 4, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetHolidayScheduleResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t holidayIndex = static_cast(0); - DlStatus status = static_cast(0); - Optional localStartTime; - Optional localEndTime; - Optional operatingMode; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::GetHolidayScheduleResponse::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t holidayIndex = static_cast(0); - DlStatus status = static_cast(0); - Optional localStartTime; - Optional localEndTime; - Optional operatingMode; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace GetHolidayScheduleResponse -namespace ClearHolidaySchedule { -enum class Fields -{ - kHolidayIndex = 0, + kUserIndex = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearHolidaySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::ClearWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex = static_cast(0); + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18562,29 +17799,34 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::ClearHolidaySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::ClearWeekDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint8_t holidayIndex = static_cast(0); + uint8_t weekDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace ClearHolidaySchedule -namespace SetUserType { +}; // namespace ClearWeekDaySchedule +namespace SetYearDaySchedule { enum class Fields { - kUserId = 0, - kUserType = 1, + kYearDayIndex = 0, + kUserIndex = 1, + kLocalStartTime = 2, + kLocalEndTime = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetUserType::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DlUserType userType = static_cast(0); + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18596,32 +17838,36 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::SetUserType::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DlUserType userType = static_cast(0); + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace SetUserType -namespace GetUserType { +}; // namespace SetYearDaySchedule +namespace GetYearDaySchedule { enum class Fields { - kUserId = 0, + kYearDayIndex = 0, + kUserIndex = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetUserType::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType; + using ResponseType = Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -18629,29 +17875,36 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetUserType::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetUserType -namespace GetUserTypeResponse { +}; // namespace GetYearDaySchedule +namespace GetYearDayScheduleResponse { enum class Fields { - kUserId = 0, - kUserType = 1, + kYearDayIndex = 0, + kUserIndex = 1, + kStatus = 2, + kLocalStartTime = 3, + kLocalEndTime = 4, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetUserTypeResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetYearDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DlUserType userType = static_cast(0); + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + Optional localStartTime; + Optional localEndTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; @@ -18663,73 +17916,76 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetUserTypeResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetYearDayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DlUserType userType = static_cast(0); + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); + DlStatus status = static_cast(0); + Optional localStartTime; + Optional localEndTime; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetUserTypeResponse -namespace SetRFIDCode { +}; // namespace GetYearDayScheduleResponse +namespace ClearYearDaySchedule { enum class Fields { - kUserId = 0, - kUserStatus = 1, - kUserType = 2, - kRfidCode = 3, + kYearDayIndex = 0, + kUserIndex = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetRFIDCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::ClearYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - chip::ByteSpan rfidCode; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; using ResponseType = DataModel::NullObjectType; - static constexpr bool MustUseTimedInvoke() { return true; } + static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::SetRFIDCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::ClearYearDaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - chip::ByteSpan rfidCode; + uint8_t yearDayIndex = static_cast(0); + uint16_t userIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace SetRFIDCode -namespace GetRFIDCode { +}; // namespace ClearYearDaySchedule +namespace SetHolidaySchedule { enum class Fields { - kUserId = 0, + kHolidayIndex = 0, + kLocalStartTime = 1, + kLocalEndTime = 2, + kOperatingMode = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetRFIDCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); + uint8_t holidayIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); + DlOperatingMode operatingMode = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = Clusters::DoorLock::Commands::GetRFIDCodeResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -18737,37 +17993,34 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetRFIDCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); + uint8_t holidayIndex = static_cast(0); + uint32_t localStartTime = static_cast(0); + uint32_t localEndTime = static_cast(0); + DlOperatingMode operatingMode = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetRFIDCode -namespace GetRFIDCodeResponse { +}; // namespace SetHolidaySchedule +namespace GetHolidaySchedule { enum class Fields { - kUserId = 0, - kUserStatus = 1, - kUserType = 2, - kRfidCode = 3, + kHolidayIndex = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetRFIDCodeResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - DataModel::Nullable rfidCode; + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - using ResponseType = DataModel::NullObjectType; + using ResponseType = Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -18775,76 +18028,89 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetRFIDCodeResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t userId = static_cast(0); - DataModel::Nullable userStatus; - DataModel::Nullable userType; - DataModel::Nullable rfidCode; + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetRFIDCodeResponse -namespace ClearRFIDCode { +}; // namespace GetHolidaySchedule +namespace GetHolidayScheduleResponse { enum class Fields { - kRfidSlotIndex = 0, + kHolidayIndex = 0, + kStatus = 1, + kLocalStartTime = 2, + kLocalEndTime = 3, + kOperatingMode = 4, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearRFIDCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetHolidayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t rfidSlotIndex = static_cast(0); + uint8_t holidayIndex = static_cast(0); + DlStatus status = static_cast(0); + Optional localStartTime; + Optional localEndTime; + Optional operatingMode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; using ResponseType = DataModel::NullObjectType; - static constexpr bool MustUseTimedInvoke() { return true; } + static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::ClearRFIDCode::Id; } + static constexpr CommandId GetCommandId() { return Commands::GetHolidayScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - uint16_t rfidSlotIndex = static_cast(0); + uint8_t holidayIndex = static_cast(0); + DlStatus status = static_cast(0); + Optional localStartTime; + Optional localEndTime; + Optional operatingMode; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace ClearRFIDCode -namespace ClearAllRFIDCodes { +}; // namespace GetHolidayScheduleResponse +namespace ClearHolidaySchedule { enum class Fields { + kHolidayIndex = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearAllRFIDCodes::Id; } + static constexpr CommandId GetCommandId() { return Commands::ClearHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } + uint8_t holidayIndex = static_cast(0); + CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; using ResponseType = DataModel::NullObjectType; - static constexpr bool MustUseTimedInvoke() { return true; } + static constexpr bool MustUseTimedInvoke() { return false; } }; struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::ClearAllRFIDCodes::Id; } + static constexpr CommandId GetCommandId() { return Commands::ClearHolidaySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } + uint8_t holidayIndex = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace ClearAllRFIDCodes +}; // namespace ClearHolidaySchedule namespace SetUser { enum class Fields { @@ -19018,106 +18284,6 @@ struct DecodableType CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace ClearUser -namespace OperatingEventNotification { -enum class Fields -{ - kOperationEventSource = 0, - kOperationEventCode = 1, - kUserId = 2, - kPin = 3, - kLocalTime = 4, - kData = 5, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::OperatingEventNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t operationEventSource = static_cast(0); - uint8_t operationEventCode = static_cast(0); - uint16_t userId = static_cast(0); - chip::ByteSpan pin; - uint32_t localTime = static_cast(0); - Optional data; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::OperatingEventNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t operationEventSource = static_cast(0); - uint8_t operationEventCode = static_cast(0); - uint16_t userId = static_cast(0); - chip::ByteSpan pin; - uint32_t localTime = static_cast(0); - Optional data; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace OperatingEventNotification -namespace ProgrammingEventNotification { -enum class Fields -{ - kProgramEventSource = 0, - kProgramEventCode = 1, - kUserId = 2, - kPin = 3, - kUserType = 4, - kUserStatus = 5, - kLocalTime = 6, - kData = 7, -}; - -struct Type -{ -public: - // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ProgrammingEventNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t programEventSource = static_cast(0); - uint8_t programEventCode = static_cast(0); - uint16_t userId = static_cast(0); - chip::ByteSpan pin; - DlUserType userType = static_cast(0); - DlUserStatus userStatus = static_cast(0); - uint32_t localTime = static_cast(0); - Optional data; - - CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; - - using ResponseType = DataModel::NullObjectType; - - static constexpr bool MustUseTimedInvoke() { return false; } -}; - -struct DecodableType -{ -public: - static constexpr CommandId GetCommandId() { return Commands::ProgrammingEventNotification::Id; } - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - - uint8_t programEventSource = static_cast(0); - uint8_t programEventCode = static_cast(0); - uint16_t userId = static_cast(0); - chip::ByteSpan pin; - DlUserType userType = static_cast(0); - DlUserStatus userStatus = static_cast(0); - uint32_t localTime = static_cast(0); - Optional data; - CHIP_ERROR Decode(TLV::TLVReader & reader); -}; -}; // namespace ProgrammingEventNotification namespace SetCredential { enum class Fields { @@ -19399,18 +18565,6 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace OpenPeriod -namespace NumberOfLogRecordsSupported { -struct TypeInfo -{ - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfLogRecordsSupported::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace NumberOfLogRecordsSupported namespace NumberOfTotalUsersSupported { struct TypeInfo { @@ -19555,18 +18709,6 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace NumberOfCredentialsSupportedPerUser -namespace EnableLogging { -struct TypeInfo -{ - using Type = bool; - using DecodableType = bool; - using DecodableArgType = bool; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::EnableLogging::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace EnableLogging namespace Language { struct TypeInfo { @@ -19772,102 +18914,6 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace ExpiringUserTimeout -namespace AlarmMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::AlarmMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace AlarmMask -namespace KeypadOperationEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::KeypadOperationEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace KeypadOperationEventMask -namespace RemoteOperationEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RemoteOperationEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace RemoteOperationEventMask -namespace ManualOperationEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ManualOperationEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace ManualOperationEventMask -namespace RFIDOperationEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RFIDOperationEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace RFIDOperationEventMask -namespace KeypadProgrammingEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::KeypadProgrammingEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace KeypadProgrammingEventMask -namespace RemoteProgrammingEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RemoteProgrammingEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace RemoteProgrammingEventMask -namespace RFIDProgrammingEventMask { -struct TypeInfo -{ - using Type = chip::BitFlags; - using DecodableType = chip::BitFlags; - using DecodableArgType = chip::BitFlags; - - static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::RFIDProgrammingEventMask::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace RFIDProgrammingEventMask namespace GeneratedCommandList { struct TypeInfo { @@ -19944,7 +18990,6 @@ struct TypeInfo Attributes::DoorOpenEvents::TypeInfo::DecodableType doorOpenEvents = static_cast(0); Attributes::DoorClosedEvents::TypeInfo::DecodableType doorClosedEvents = static_cast(0); Attributes::OpenPeriod::TypeInfo::DecodableType openPeriod = static_cast(0); - Attributes::NumberOfLogRecordsSupported::TypeInfo::DecodableType numberOfLogRecordsSupported = static_cast(0); Attributes::NumberOfTotalUsersSupported::TypeInfo::DecodableType numberOfTotalUsersSupported = static_cast(0); Attributes::NumberOfPINUsersSupported::TypeInfo::DecodableType numberOfPINUsersSupported = static_cast(0); Attributes::NumberOfRFIDUsersSupported::TypeInfo::DecodableType numberOfRFIDUsersSupported = static_cast(0); @@ -19962,7 +19007,6 @@ struct TypeInfo static_cast>(0); Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo::DecodableType numberOfCredentialsSupportedPerUser = static_cast(0); - Attributes::EnableLogging::TypeInfo::DecodableType enableLogging = static_cast(0); Attributes::Language::TypeInfo::DecodableType language; Attributes::LEDSettings::TypeInfo::DecodableType LEDSettings = static_cast(0); Attributes::AutoRelockTime::TypeInfo::DecodableType autoRelockTime = static_cast(0); @@ -19984,22 +19028,6 @@ struct TypeInfo Attributes::SendPINOverTheAir::TypeInfo::DecodableType sendPINOverTheAir = static_cast(0); Attributes::RequirePINforRemoteOperation::TypeInfo::DecodableType requirePINforRemoteOperation = static_cast(0); Attributes::ExpiringUserTimeout::TypeInfo::DecodableType expiringUserTimeout = static_cast(0); - Attributes::AlarmMask::TypeInfo::DecodableType alarmMask = - static_cast>(0); - Attributes::KeypadOperationEventMask::TypeInfo::DecodableType keypadOperationEventMask = - static_cast>(0); - Attributes::RemoteOperationEventMask::TypeInfo::DecodableType remoteOperationEventMask = - static_cast>(0); - Attributes::ManualOperationEventMask::TypeInfo::DecodableType manualOperationEventMask = - static_cast>(0); - Attributes::RFIDOperationEventMask::TypeInfo::DecodableType RFIDOperationEventMask = - static_cast>(0); - Attributes::KeypadProgrammingEventMask::TypeInfo::DecodableType keypadProgrammingEventMask = - static_cast>(0); - Attributes::RemoteProgrammingEventMask::TypeInfo::DecodableType remoteProgrammingEventMask = - static_cast>(0); - Attributes::RFIDProgrammingEventMask::TypeInfo::DecodableType RFIDProgrammingEventMask = - static_cast>(0); Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; Attributes::AttributeList::TypeInfo::DecodableType attributeList; diff --git a/zzz_generated/app-common/app-common/zap-generated/command-id.h b/zzz_generated/app-common/app-common/zap-generated/command-id.h index 6177743e5b9ca4..601c4dbc461b6a 100644 --- a/zzz_generated/app-common/app-common/zap-generated/command-id.h +++ b/zzz_generated/app-common/app-common/zap-generated/command-id.h @@ -235,16 +235,6 @@ #define ZCL_LOCK_DOOR_COMMAND_ID (0x00) #define ZCL_UNLOCK_DOOR_COMMAND_ID (0x01) #define ZCL_UNLOCK_WITH_TIMEOUT_COMMAND_ID (0x03) -#define ZCL_GET_LOG_RECORD_COMMAND_ID (0x04) -#define ZCL_GET_LOG_RECORD_RESPONSE_COMMAND_ID (0x04) -#define ZCL_SET_PIN_CODE_COMMAND_ID (0x05) -#define ZCL_GET_PIN_CODE_COMMAND_ID (0x06) -#define ZCL_GET_PIN_CODE_RESPONSE_COMMAND_ID (0x06) -#define ZCL_CLEAR_PIN_CODE_COMMAND_ID (0x07) -#define ZCL_CLEAR_ALL_PIN_CODES_COMMAND_ID (0x08) -#define ZCL_SET_USER_STATUS_COMMAND_ID (0x09) -#define ZCL_GET_USER_STATUS_COMMAND_ID (0x0A) -#define ZCL_GET_USER_STATUS_RESPONSE_COMMAND_ID (0x0A) #define ZCL_SET_WEEK_DAY_SCHEDULE_COMMAND_ID (0x0B) #define ZCL_GET_WEEK_DAY_SCHEDULE_COMMAND_ID (0x0C) #define ZCL_GET_WEEK_DAY_SCHEDULE_RESPONSE_COMMAND_ID (0x0C) @@ -257,20 +247,10 @@ #define ZCL_GET_HOLIDAY_SCHEDULE_COMMAND_ID (0x12) #define ZCL_GET_HOLIDAY_SCHEDULE_RESPONSE_COMMAND_ID (0x12) #define ZCL_CLEAR_HOLIDAY_SCHEDULE_COMMAND_ID (0x13) -#define ZCL_SET_USER_TYPE_COMMAND_ID (0x14) -#define ZCL_GET_USER_TYPE_COMMAND_ID (0x15) -#define ZCL_GET_USER_TYPE_RESPONSE_COMMAND_ID (0x15) -#define ZCL_SET_RFID_CODE_COMMAND_ID (0x16) -#define ZCL_GET_RFID_CODE_COMMAND_ID (0x17) -#define ZCL_GET_RFID_CODE_RESPONSE_COMMAND_ID (0x17) -#define ZCL_CLEAR_RFID_CODE_COMMAND_ID (0x18) -#define ZCL_CLEAR_ALL_RFID_CODES_COMMAND_ID (0x19) #define ZCL_SET_USER_COMMAND_ID (0x1A) #define ZCL_GET_USER_COMMAND_ID (0x1B) #define ZCL_GET_USER_RESPONSE_COMMAND_ID (0x1C) #define ZCL_CLEAR_USER_COMMAND_ID (0x1D) -#define ZCL_OPERATING_EVENT_NOTIFICATION_COMMAND_ID (0x20) -#define ZCL_PROGRAMMING_EVENT_NOTIFICATION_COMMAND_ID (0x21) #define ZCL_SET_CREDENTIAL_COMMAND_ID (0x22) #define ZCL_SET_CREDENTIAL_RESPONSE_COMMAND_ID (0x23) #define ZCL_GET_CREDENTIAL_STATUS_COMMAND_ID (0x24) diff --git a/zzz_generated/app-common/app-common/zap-generated/enums.h b/zzz_generated/app-common/app-common/zap-generated/enums.h index 5bbf2307c1de1a..4108b5f322d174 100644 --- a/zzz_generated/app-common/app-common/zap-generated/enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/enums.h @@ -534,20 +534,6 @@ enum EmberAfWiFiVersionType : uint8_t #define EMBER_AF_DEVICE_TEMP_ALARM_MASK_TOO_LOW_OFFSET (0) #define EMBER_AF_DEVICE_TEMP_ALARM_MASK_TOO_HIGH (2) #define EMBER_AF_DEVICE_TEMP_ALARM_MASK_TOO_HIGH_OFFSET (1) -#define EMBER_AF_DL_ALARM_MASK_LOCKING_MECHANISM_JAMMED (1) -#define EMBER_AF_DL_ALARM_MASK_LOCKING_MECHANISM_JAMMED_OFFSET (0) -#define EMBER_AF_DL_ALARM_MASK_LOCK_RESET_TO_FACTORY_DEFAULTS (2) -#define EMBER_AF_DL_ALARM_MASK_LOCK_RESET_TO_FACTORY_DEFAULTS_OFFSET (1) -#define EMBER_AF_DL_ALARM_MASK_RESERVED (4) -#define EMBER_AF_DL_ALARM_MASK_RESERVED_OFFSET (2) -#define EMBER_AF_DL_ALARM_MASK_RF_MODULE_POWER_CYCLED (8) -#define EMBER_AF_DL_ALARM_MASK_RF_MODULE_POWER_CYCLED_OFFSET (3) -#define EMBER_AF_DL_ALARM_MASK_WRONG_CODE_ENTRY_LIMIT (16) -#define EMBER_AF_DL_ALARM_MASK_WRONG_CODE_ENTRY_LIMIT_OFFSET (4) -#define EMBER_AF_DL_ALARM_MASK_FRONT_ESCUTCHEON_REMOVED_FROM_MAIN (32) -#define EMBER_AF_DL_ALARM_MASK_FRONT_ESCUTCHEON_REMOVED_FROM_MAIN_OFFSET (5) -#define EMBER_AF_DL_ALARM_MASK_FORCED_DOOR_OPEN_UNDER_DOOR_LOCKED_CONDITION (64) -#define EMBER_AF_DL_ALARM_MASK_FORCED_DOOR_OPEN_UNDER_DOOR_LOCKED_CONDITION_OFFSET (6) #define EMBER_AF_DL_CREDENTIAL_RULE_MASK_SINGLE (1) #define EMBER_AF_DL_CREDENTIAL_RULE_MASK_SINGLE_OFFSET (0) #define EMBER_AF_DL_CREDENTIAL_RULE_MASK_DUAL (2) diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h index 0c66e1704bef46..0e65c09b996e40 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h @@ -2804,10 +2804,6 @@ namespace OpenPeriod { static constexpr AttributeId Id = 0x00000006; } // namespace OpenPeriod -namespace NumberOfLogRecordsSupported { -static constexpr AttributeId Id = 0x00000010; -} // namespace NumberOfLogRecordsSupported - namespace NumberOfTotalUsersSupported { static constexpr AttributeId Id = 0x00000011; } // namespace NumberOfTotalUsersSupported @@ -2856,10 +2852,6 @@ namespace NumberOfCredentialsSupportedPerUser { static constexpr AttributeId Id = 0x0000001C; } // namespace NumberOfCredentialsSupportedPerUser -namespace EnableLogging { -static constexpr AttributeId Id = 0x00000020; -} // namespace EnableLogging - namespace Language { static constexpr AttributeId Id = 0x00000021; } // namespace Language @@ -2928,38 +2920,6 @@ namespace ExpiringUserTimeout { static constexpr AttributeId Id = 0x00000035; } // namespace ExpiringUserTimeout -namespace AlarmMask { -static constexpr AttributeId Id = 0x00000040; -} // namespace AlarmMask - -namespace KeypadOperationEventMask { -static constexpr AttributeId Id = 0x00000041; -} // namespace KeypadOperationEventMask - -namespace RemoteOperationEventMask { -static constexpr AttributeId Id = 0x00000042; -} // namespace RemoteOperationEventMask - -namespace ManualOperationEventMask { -static constexpr AttributeId Id = 0x00000043; -} // namespace ManualOperationEventMask - -namespace RFIDOperationEventMask { -static constexpr AttributeId Id = 0x00000044; -} // namespace RFIDOperationEventMask - -namespace KeypadProgrammingEventMask { -static constexpr AttributeId Id = 0x00000045; -} // namespace KeypadProgrammingEventMask - -namespace RemoteProgrammingEventMask { -static constexpr AttributeId Id = 0x00000046; -} // namespace RemoteProgrammingEventMask - -namespace RFIDProgrammingEventMask { -static constexpr AttributeId Id = 0x00000047; -} // namespace RFIDProgrammingEventMask - namespace GeneratedCommandList { static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; } // namespace GeneratedCommandList diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h index 204ce7417176a0..44c41b9e76ace3 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h @@ -788,46 +788,6 @@ namespace UnlockWithTimeout { static constexpr CommandId Id = 0x00000003; } // namespace UnlockWithTimeout -namespace GetLogRecord { -static constexpr CommandId Id = 0x00000004; -} // namespace GetLogRecord - -namespace GetLogRecordResponse { -static constexpr CommandId Id = 0x00000004; -} // namespace GetLogRecordResponse - -namespace SetPINCode { -static constexpr CommandId Id = 0x00000005; -} // namespace SetPINCode - -namespace GetPINCode { -static constexpr CommandId Id = 0x00000006; -} // namespace GetPINCode - -namespace GetPINCodeResponse { -static constexpr CommandId Id = 0x00000006; -} // namespace GetPINCodeResponse - -namespace ClearPINCode { -static constexpr CommandId Id = 0x00000007; -} // namespace ClearPINCode - -namespace ClearAllPINCodes { -static constexpr CommandId Id = 0x00000008; -} // namespace ClearAllPINCodes - -namespace SetUserStatus { -static constexpr CommandId Id = 0x00000009; -} // namespace SetUserStatus - -namespace GetUserStatus { -static constexpr CommandId Id = 0x0000000A; -} // namespace GetUserStatus - -namespace GetUserStatusResponse { -static constexpr CommandId Id = 0x0000000A; -} // namespace GetUserStatusResponse - namespace SetWeekDaySchedule { static constexpr CommandId Id = 0x0000000B; } // namespace SetWeekDaySchedule @@ -876,38 +836,6 @@ namespace ClearHolidaySchedule { static constexpr CommandId Id = 0x00000013; } // namespace ClearHolidaySchedule -namespace SetUserType { -static constexpr CommandId Id = 0x00000014; -} // namespace SetUserType - -namespace GetUserType { -static constexpr CommandId Id = 0x00000015; -} // namespace GetUserType - -namespace GetUserTypeResponse { -static constexpr CommandId Id = 0x00000015; -} // namespace GetUserTypeResponse - -namespace SetRFIDCode { -static constexpr CommandId Id = 0x00000016; -} // namespace SetRFIDCode - -namespace GetRFIDCode { -static constexpr CommandId Id = 0x00000017; -} // namespace GetRFIDCode - -namespace GetRFIDCodeResponse { -static constexpr CommandId Id = 0x00000017; -} // namespace GetRFIDCodeResponse - -namespace ClearRFIDCode { -static constexpr CommandId Id = 0x00000018; -} // namespace ClearRFIDCode - -namespace ClearAllRFIDCodes { -static constexpr CommandId Id = 0x00000019; -} // namespace ClearAllRFIDCodes - namespace SetUser { static constexpr CommandId Id = 0x0000001A; } // namespace SetUser @@ -924,14 +852,6 @@ namespace ClearUser { static constexpr CommandId Id = 0x0000001D; } // namespace ClearUser -namespace OperatingEventNotification { -static constexpr CommandId Id = 0x00000020; -} // namespace OperatingEventNotification - -namespace ProgrammingEventNotification { -static constexpr CommandId Id = 0x00000021; -} // namespace ProgrammingEventNotification - namespace SetCredential { static constexpr CommandId Id = 0x00000022; } // namespace SetCredential diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 985d4b3d60431e..fc8c7a3f49abe6 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -7364,13 +7364,6 @@ class WriteShadeConfigurationMode : public WriteAttribute | * LockDoor | 0x00 | | * UnlockDoor | 0x01 | | * UnlockWithTimeout | 0x03 | -| * GetLogRecord | 0x04 | -| * SetPINCode | 0x05 | -| * GetPINCode | 0x06 | -| * ClearPINCode | 0x07 | -| * ClearAllPINCodes | 0x08 | -| * SetUserStatus | 0x09 | -| * GetUserStatus | 0x0A | | * SetWeekDaySchedule | 0x0B | | * GetWeekDaySchedule | 0x0C | | * ClearWeekDaySchedule | 0x0D | @@ -7380,12 +7373,6 @@ class WriteShadeConfigurationMode : public WriteAttribute | * SetHolidaySchedule | 0x11 | | * GetHolidaySchedule | 0x12 | | * ClearHolidaySchedule | 0x13 | -| * SetUserType | 0x14 | -| * GetUserType | 0x15 | -| * SetRFIDCode | 0x16 | -| * GetRFIDCode | 0x17 | -| * ClearRFIDCode | 0x18 | -| * ClearAllRFIDCodes | 0x19 | | * SetUser | 0x1A | | * GetUser | 0x1B | | * ClearUser | 0x1D | @@ -7401,7 +7388,6 @@ class WriteShadeConfigurationMode : public WriteAttribute | * DoorOpenEvents | 0x0004 | | * DoorClosedEvents | 0x0005 | | * OpenPeriod | 0x0006 | -| * NumberOfLogRecordsSupported | 0x0010 | | * NumberOfTotalUsersSupported | 0x0011 | | * NumberOfPINUsersSupported | 0x0012 | | * NumberOfRFIDUsersSupported | 0x0013 | @@ -7414,7 +7400,6 @@ class WriteShadeConfigurationMode : public WriteAttribute | * MinRFIDCodeLength | 0x001A | | * CredentialRulesSupport | 0x001B | | * NumberOfCredentialsSupportedPerUser | 0x001C | -| * EnableLogging | 0x0020 | | * Language | 0x0021 | | * LEDSettings | 0x0022 | | * AutoRelockTime | 0x0023 | @@ -7432,14 +7417,6 @@ class WriteShadeConfigurationMode : public WriteAttribute | * SendPINOverTheAir | 0x0032 | | * RequirePINforRemoteOperation | 0x0033 | | * ExpiringUserTimeout | 0x0035 | -| * AlarmMask | 0x0040 | -| * KeypadOperationEventMask | 0x0041 | -| * RemoteOperationEventMask | 0x0042 | -| * ManualOperationEventMask | 0x0043 | -| * RFIDOperationEventMask | 0x0044 | -| * KeypadProgrammingEventMask | 0x0045 | -| * RemoteProgrammingEventMask | 0x0046 | -| * RFIDProgrammingEventMask | 0x0047 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | @@ -7546,219 +7523,6 @@ class DoorLockUnlockWithTimeout : public ClusterCommand chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type mRequest; }; -/* - * Command GetLogRecord - */ -class DoorLockGetLogRecord : public ClusterCommand -{ -public: - DoorLockGetLogRecord(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-log-record", credsIssuerConfig) - { - AddArgument("LogIndex", 0, UINT16_MAX, &mRequest.logIndex); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000004) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000004, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000004) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000004, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::GetLogRecord::Type mRequest; -}; - -/* - * Command SetPINCode - */ -class DoorLockSetPINCode : public ClusterCommand -{ -public: - DoorLockSetPINCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-pincode", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - AddArgument("Pin", &mRequest.pin); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000005) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000005, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000005) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000005, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::SetPINCode::Type mRequest; -}; - -/* - * Command GetPINCode - */ -class DoorLockGetPINCode : public ClusterCommand -{ -public: - DoorLockGetPINCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-pincode", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000006) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000006, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000006) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000006, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::GetPINCode::Type mRequest; -}; - -/* - * Command ClearPINCode - */ -class DoorLockClearPINCode : public ClusterCommand -{ -public: - DoorLockClearPINCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-pincode", credsIssuerConfig) - { - AddArgument("PinSlotIndex", 0, UINT16_MAX, &mRequest.pinSlotIndex); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000007) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000007, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000007) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000007, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::ClearPINCode::Type mRequest; -}; - -/* - * Command ClearAllPINCodes - */ -class DoorLockClearAllPINCodes : public ClusterCommand -{ -public: - DoorLockClearAllPINCodes(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-all-pincodes", credsIssuerConfig) - { - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000008) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000008, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000008) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000008, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::ClearAllPINCodes::Type mRequest; -}; - -/* - * Command SetUserStatus - */ -class DoorLockSetUserStatus : public ClusterCommand -{ -public: - DoorLockSetUserStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-user-status", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000009) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000009, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000009) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000009, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::SetUserStatus::Type mRequest; -}; - -/* - * Command GetUserStatus - */ -class DoorLockGetUserStatus : public ClusterCommand -{ -public: - DoorLockGetUserStatus(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user-status", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000A) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x0000000A, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000A) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x0000000A, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::GetUserStatus::Type mRequest; -}; - /* * Command SetWeekDaySchedule */ @@ -8054,190 +7818,6 @@ class DoorLockClearHolidaySchedule : public ClusterCommand chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type mRequest; }; -/* - * Command SetUserType - */ -class DoorLockSetUserType : public ClusterCommand -{ -public: - DoorLockSetUserType(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-user-type", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000014) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000014, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000014) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000014, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::SetUserType::Type mRequest; -}; - -/* - * Command GetUserType - */ -class DoorLockGetUserType : public ClusterCommand -{ -public: - DoorLockGetUserType(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-user-type", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000015) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000015, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000015) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000015, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::GetUserType::Type mRequest; -}; - -/* - * Command SetRFIDCode - */ -class DoorLockSetRFIDCode : public ClusterCommand -{ -public: - DoorLockSetRFIDCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("set-rfidcode", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - AddArgument("RfidCode", &mRequest.rfidCode); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000016) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000016, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000016) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000016, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::SetRFIDCode::Type mRequest; -}; - -/* - * Command GetRFIDCode - */ -class DoorLockGetRFIDCode : public ClusterCommand -{ -public: - DoorLockGetRFIDCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("get-rfidcode", credsIssuerConfig) - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000017) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000017, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000017) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000017, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::GetRFIDCode::Type mRequest; -}; - -/* - * Command ClearRFIDCode - */ -class DoorLockClearRFIDCode : public ClusterCommand -{ -public: - DoorLockClearRFIDCode(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("clear-rfidcode", credsIssuerConfig) - { - AddArgument("RfidSlotIndex", 0, UINT16_MAX, &mRequest.rfidSlotIndex); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000018) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000018, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000018) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000018, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::ClearRFIDCode::Type mRequest; -}; - -/* - * Command ClearAllRFIDCodes - */ -class DoorLockClearAllRFIDCodes : public ClusterCommand -{ -public: - DoorLockClearAllRFIDCodes(CredentialIssuerCommands * credsIssuerConfig) : - ClusterCommand("clear-all-rfidcodes", credsIssuerConfig) - { - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000019) on endpoint %u", endpointIds.at(0)); - - return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000019, mRequest); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000019) on Group %u", groupId); - - return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000019, mRequest); - } - -private: - chip::app::Clusters::DoorLock::Commands::ClearAllRFIDCodes::Type mRequest; -}; - /* * Command SetUser */ @@ -8515,32 +8095,6 @@ class WriteDoorLockOpenPeriod : public WriteAttribute uint16_t mValue; }; -class WriteDoorLockEnableLogging : public WriteAttribute -{ -public: - WriteDoorLockEnableLogging(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("EnableLogging", credsIssuerConfig) - { - AddArgument("attr-name", "enable-logging"); - AddArgument("attr-value", 0, 1, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockEnableLogging() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000020, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000020, mValue); - } - -private: - bool mValue; -}; - class WriteDoorLockLanguage : public WriteAttribute { public: @@ -8941,221 +8495,6 @@ class WriteDoorLockExpiringUserTimeout : public WriteAttribute uint16_t mValue; }; -class WriteDoorLockAlarmMask : public WriteAttribute -{ -public: - WriteDoorLockAlarmMask(CredentialIssuerCommands * credsIssuerConfig) : WriteAttribute("AlarmMask", credsIssuerConfig) - { - AddArgument("attr-name", "alarm-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockAlarmMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000040, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000040, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockKeypadOperationEventMask : public WriteAttribute -{ -public: - WriteDoorLockKeypadOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("KeypadOperationEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "keypad-operation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockKeypadOperationEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000041, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000041, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockRemoteOperationEventMask : public WriteAttribute -{ -public: - WriteDoorLockRemoteOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RemoteOperationEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "remote-operation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRemoteOperationEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000042, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000042, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockManualOperationEventMask : public WriteAttribute -{ -public: - WriteDoorLockManualOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("ManualOperationEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "manual-operation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockManualOperationEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000043, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000043, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockRFIDOperationEventMask : public WriteAttribute -{ -public: - WriteDoorLockRFIDOperationEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RFIDOperationEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "rfidoperation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRFIDOperationEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000044, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000044, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockKeypadProgrammingEventMask : public WriteAttribute -{ -public: - WriteDoorLockKeypadProgrammingEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("KeypadProgrammingEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "keypad-programming-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockKeypadProgrammingEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000045, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000045, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockRemoteProgrammingEventMask : public WriteAttribute -{ -public: - WriteDoorLockRemoteProgrammingEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RemoteProgrammingEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "remote-programming-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRemoteProgrammingEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000046, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000046, mValue); - } - -private: - chip::BitFlags mValue; -}; - -class WriteDoorLockRFIDProgrammingEventMask : public WriteAttribute -{ -public: - WriteDoorLockRFIDProgrammingEventMask(CredentialIssuerCommands * credsIssuerConfig) : - WriteAttribute("RFIDProgrammingEventMask", credsIssuerConfig) - { - AddArgument("attr-name", "rfidprogramming-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRFIDProgrammingEventMask() {} - - CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override - { - return WriteAttribute::SendCommand(device, endpointIds.at(0), 0x00000101, 0x00000047, mValue); - } - - CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override - { - return WriteAttribute::SendGroupCommand(groupId, fabricIndex, 0x00000101, 0x00000047, mValue); - } - -private: - chip::BitFlags mValue; -}; - /*----------------------------------------------------------------------------*\ | Cluster WindowCovering | 0x0102 | |------------------------------------------------------------------------------| @@ -22108,13 +21447,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // @@ -22124,12 +21456,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // @@ -22147,8 +21473,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "door-open-events", Attributes::DoorOpenEvents::Id, credsIssuerConfig), // make_unique(Id, "door-closed-events", Attributes::DoorClosedEvents::Id, credsIssuerConfig), // make_unique(Id, "open-period", Attributes::OpenPeriod::Id, credsIssuerConfig), // - make_unique(Id, "number-of-log-records-supported", Attributes::NumberOfLogRecordsSupported::Id, - credsIssuerConfig), // make_unique(Id, "number-of-total-users-supported", Attributes::NumberOfTotalUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-pinusers-supported", Attributes::NumberOfPINUsersSupported::Id, @@ -22168,7 +21492,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "credential-rules-support", Attributes::CredentialRulesSupport::Id, credsIssuerConfig), // make_unique(Id, "number-of-credentials-supported-per-user", Attributes::NumberOfCredentialsSupportedPerUser::Id, credsIssuerConfig), // - make_unique(Id, "enable-logging", Attributes::EnableLogging::Id, credsIssuerConfig), // make_unique(Id, "language", Attributes::Language::Id, credsIssuerConfig), // make_unique(Id, "ledsettings", Attributes::LEDSettings::Id, credsIssuerConfig), // make_unique(Id, "auto-relock-time", Attributes::AutoRelockTime::Id, credsIssuerConfig), // @@ -22188,22 +21511,8 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre credsIssuerConfig), // make_unique(Id, "send-pinover-the-air", Attributes::SendPINOverTheAir::Id, credsIssuerConfig), // make_unique(Id, "require-pinfor-remote-operation", Attributes::RequirePINforRemoteOperation::Id, - credsIssuerConfig), // - make_unique(Id, "expiring-user-timeout", Attributes::ExpiringUserTimeout::Id, credsIssuerConfig), // - make_unique(Id, "alarm-mask", Attributes::AlarmMask::Id, credsIssuerConfig), // - make_unique(Id, "keypad-operation-event-mask", Attributes::KeypadOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "remote-operation-event-mask", Attributes::RemoteOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "manual-operation-event-mask", Attributes::ManualOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "rfidoperation-event-mask", Attributes::RFIDOperationEventMask::Id, credsIssuerConfig), // - make_unique(Id, "keypad-programming-event-mask", Attributes::KeypadProgrammingEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "remote-programming-event-mask", Attributes::RemoteProgrammingEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "rfidprogramming-event-mask", Attributes::RFIDProgrammingEventMask::Id, credsIssuerConfig), // + make_unique(Id, "expiring-user-timeout", Attributes::ExpiringUserTimeout::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // @@ -22213,7 +21522,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // @@ -22229,14 +21537,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // make_unique(Id, credsIssuerConfig), // make_unique(Id, "lock-state", Attributes::LockState::Id, credsIssuerConfig), // make_unique(Id, "lock-type", Attributes::LockType::Id, credsIssuerConfig), // @@ -22245,8 +21545,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre make_unique(Id, "door-open-events", Attributes::DoorOpenEvents::Id, credsIssuerConfig), // make_unique(Id, "door-closed-events", Attributes::DoorClosedEvents::Id, credsIssuerConfig), // make_unique(Id, "open-period", Attributes::OpenPeriod::Id, credsIssuerConfig), // - make_unique(Id, "number-of-log-records-supported", Attributes::NumberOfLogRecordsSupported::Id, - credsIssuerConfig), // make_unique(Id, "number-of-total-users-supported", Attributes::NumberOfTotalUsersSupported::Id, credsIssuerConfig), // make_unique(Id, "number-of-pinusers-supported", Attributes::NumberOfPINUsersSupported::Id, @@ -22267,7 +21565,6 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre credsIssuerConfig), // make_unique(Id, "number-of-credentials-supported-per-user", Attributes::NumberOfCredentialsSupportedPerUser::Id, credsIssuerConfig), // - make_unique(Id, "enable-logging", Attributes::EnableLogging::Id, credsIssuerConfig), // make_unique(Id, "language", Attributes::Language::Id, credsIssuerConfig), // make_unique(Id, "ledsettings", Attributes::LEDSettings::Id, credsIssuerConfig), // make_unique(Id, "auto-relock-time", Attributes::AutoRelockTime::Id, credsIssuerConfig), // @@ -22292,23 +21589,8 @@ void registerClusterDoorLock(Commands & commands, CredentialIssuerCommands * cre credsIssuerConfig), // make_unique(Id, "send-pinover-the-air", Attributes::SendPINOverTheAir::Id, credsIssuerConfig), // make_unique(Id, "require-pinfor-remote-operation", Attributes::RequirePINforRemoteOperation::Id, - credsIssuerConfig), // - make_unique(Id, "expiring-user-timeout", Attributes::ExpiringUserTimeout::Id, credsIssuerConfig), // - make_unique(Id, "alarm-mask", Attributes::AlarmMask::Id, credsIssuerConfig), // - make_unique(Id, "keypad-operation-event-mask", Attributes::KeypadOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "remote-operation-event-mask", Attributes::RemoteOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "manual-operation-event-mask", Attributes::ManualOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "rfidoperation-event-mask", Attributes::RFIDOperationEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "keypad-programming-event-mask", Attributes::KeypadProgrammingEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "remote-programming-event-mask", Attributes::RemoteProgrammingEventMask::Id, - credsIssuerConfig), // - make_unique(Id, "rfidprogramming-event-mask", Attributes::RFIDProgrammingEventMask::Id, credsIssuerConfig), // + make_unique(Id, "expiring-user-timeout", Attributes::ExpiringUserTimeout::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "attribute-list", Attributes::AttributeList::Id, credsIssuerConfig), // diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp index 01a00669b1d938..6ada81f09cb420 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -3665,40 +3665,6 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetLogRecordResponse::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("logEntryId", indent + 1, value.logEntryId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("timestamp", indent + 1, value.timestamp)); - ReturnErrorOnFailure(DataModelLogger::LogValue("eventType", indent + 1, value.eventType)); - ReturnErrorOnFailure(DataModelLogger::LogValue("source", indent + 1, value.source)); - ReturnErrorOnFailure(DataModelLogger::LogValue("eventIdOrAlarmCode", indent + 1, value.eventIdOrAlarmCode)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetPINCodeResponse::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); - ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetUserStatusResponse::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType & value) { @@ -3738,26 +3704,6 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetUserTypeResponse::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::GetRFIDCodeResponse::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); - ReturnErrorOnFailure(DataModelLogger::LogValue("rfidCode", indent + 1, value.rfidCode)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const DoorLock::Commands::GetUserResponse::DecodableType & value) { @@ -3775,34 +3721,6 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::OperatingEventNotification::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("operationEventSource", indent + 1, value.operationEventSource)); - ReturnErrorOnFailure(DataModelLogger::LogValue("operationEventCode", indent + 1, value.operationEventCode)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); - ReturnErrorOnFailure(DataModelLogger::LogValue("localTime", indent + 1, value.localTime)); - ReturnErrorOnFailure(DataModelLogger::LogValue("data", indent + 1, value.data)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} -CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const DoorLock::Commands::ProgrammingEventNotification::DecodableType & value) -{ - DataModelLogger::LogString(label, indent, "{"); - ReturnErrorOnFailure(DataModelLogger::LogValue("programEventSource", indent + 1, value.programEventSource)); - ReturnErrorOnFailure(DataModelLogger::LogValue("programEventCode", indent + 1, value.programEventCode)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userId", indent + 1, value.userId)); - ReturnErrorOnFailure(DataModelLogger::LogValue("pin", indent + 1, value.pin)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userType", indent + 1, value.userType)); - ReturnErrorOnFailure(DataModelLogger::LogValue("userStatus", indent + 1, value.userStatus)); - ReturnErrorOnFailure(DataModelLogger::LogValue("localTime", indent + 1, value.localTime)); - ReturnErrorOnFailure(DataModelLogger::LogValue("data", indent + 1, value.data)); - DataModelLogger::LogString(indent, "}"); - return CHIP_NO_ERROR; -} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const DoorLock::Commands::SetCredentialResponse::DecodableType & value) { @@ -5600,11 +5518,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("OpenPeriod", 1, value); } - case DoorLock::Attributes::NumberOfLogRecordsSupported::Id: { - uint16_t value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("NumberOfLogRecordsSupported", 1, value); - } case DoorLock::Attributes::NumberOfTotalUsersSupported::Id: { uint16_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5665,11 +5578,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("NumberOfCredentialsSupportedPerUser", 1, value); } - case DoorLock::Attributes::EnableLogging::Id: { - bool value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("EnableLogging", 1, value); - } case DoorLock::Attributes::Language::Id: { chip::CharSpan value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -5755,46 +5663,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ExpiringUserTimeout", 1, value); } - case DoorLock::Attributes::AlarmMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("AlarmMask", 1, value); - } - case DoorLock::Attributes::KeypadOperationEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("KeypadOperationEventMask", 1, value); - } - case DoorLock::Attributes::RemoteOperationEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("RemoteOperationEventMask", 1, value); - } - case DoorLock::Attributes::ManualOperationEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ManualOperationEventMask", 1, value); - } - case DoorLock::Attributes::RFIDOperationEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("RFIDOperationEventMask", 1, value); - } - case DoorLock::Attributes::KeypadProgrammingEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("KeypadProgrammingEventMask", 1, value); - } - case DoorLock::Attributes::RemoteProgrammingEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("RemoteProgrammingEventMask", 1, value); - } - case DoorLock::Attributes::RFIDProgrammingEventMask::Id: { - chip::BitFlags value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("RFIDProgrammingEventMask", 1, value); - } case DoorLock::Attributes::GeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -10165,21 +10033,6 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa case DoorLock::Id: { switch (path.mCommandId) { - case DoorLock::Commands::GetLogRecordResponse::Id: { - DoorLock::Commands::GetLogRecordResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetLogRecordResponse", 1, value); - } - case DoorLock::Commands::GetPINCodeResponse::Id: { - DoorLock::Commands::GetPINCodeResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetPINCodeResponse", 1, value); - } - case DoorLock::Commands::GetUserStatusResponse::Id: { - DoorLock::Commands::GetUserStatusResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetUserStatusResponse", 1, value); - } case DoorLock::Commands::GetWeekDayScheduleResponse::Id: { DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -10195,31 +10048,11 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("GetHolidayScheduleResponse", 1, value); } - case DoorLock::Commands::GetUserTypeResponse::Id: { - DoorLock::Commands::GetUserTypeResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetUserTypeResponse", 1, value); - } - case DoorLock::Commands::GetRFIDCodeResponse::Id: { - DoorLock::Commands::GetRFIDCodeResponse::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("GetRFIDCodeResponse", 1, value); - } case DoorLock::Commands::GetUserResponse::Id: { DoorLock::Commands::GetUserResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("GetUserResponse", 1, value); } - case DoorLock::Commands::OperatingEventNotification::Id: { - DoorLock::Commands::OperatingEventNotification::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("OperatingEventNotification", 1, value); - } - case DoorLock::Commands::ProgrammingEventNotification::Id: { - DoorLock::Commands::ProgrammingEventNotification::DecodableType value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ProgrammingEventNotification", 1, value); - } case DoorLock::Commands::SetCredentialResponse::Id: { DoorLock::Commands::SetCredentialResponse::DecodableType value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h index 0362337266acaa..a1ffeac42531b2 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h @@ -276,28 +276,14 @@ static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::ContentLauncher::Commands::LaunchResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetPINCodeResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetWeekDayScheduleResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetYearDayScheduleResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::GetRFIDCodeResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetUserResponse::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::OperatingEventNotification::DecodableType & value); -static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::DoorLock::Commands::ProgrammingEventNotification::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::SetCredentialResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h index 6ba80ae8a0b606..6b499b60008112 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h @@ -407,8 +407,6 @@ NS_ASSUME_NONNULL_BEGIN - (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfLogRecordsSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm b/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm index c5d3f7608ce72f..c9f60e3c6baf70 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm @@ -5392,25 +5392,6 @@ new CHIPDefaultSuccessCallbackBridge( }); } -- (void)writeAttributeNumberOfLogRecordsSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfLogRecordsSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - - (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler { diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h index 179cb36d0ba46a..01b1422e364ff4 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -20623,13 +20623,6 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut | * LockDoor | 0x00 | | * UnlockDoor | 0x01 | | * UnlockWithTimeout | 0x03 | -| * GetLogRecord | 0x04 | -| * SetPINCode | 0x05 | -| * GetPINCode | 0x06 | -| * ClearPINCode | 0x07 | -| * ClearAllPINCodes | 0x08 | -| * SetUserStatus | 0x09 | -| * GetUserStatus | 0x0A | | * SetWeekDaySchedule | 0x0B | | * GetWeekDaySchedule | 0x0C | | * ClearWeekDaySchedule | 0x0D | @@ -20639,12 +20632,6 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut | * SetHolidaySchedule | 0x11 | | * GetHolidaySchedule | 0x12 | | * ClearHolidaySchedule | 0x13 | -| * SetUserType | 0x14 | -| * GetUserType | 0x15 | -| * SetRFIDCode | 0x16 | -| * GetRFIDCode | 0x17 | -| * ClearRFIDCode | 0x18 | -| * ClearAllRFIDCodes | 0x19 | | * SetUser | 0x1A | | * GetUser | 0x1B | | * ClearUser | 0x1D | @@ -20660,7 +20647,6 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut | * DoorOpenEvents | 0x0004 | | * DoorClosedEvents | 0x0005 | | * OpenPeriod | 0x0006 | -| * NumberOfLogRecordsSupported | 0x0010 | | * NumberOfTotalUsersSupported | 0x0011 | | * NumberOfPINUsersSupported | 0x0012 | | * NumberOfRFIDUsersSupported | 0x0013 | @@ -20673,7 +20659,6 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut | * MinRFIDCodeLength | 0x001A | | * CredentialRulesSupport | 0x001B | | * NumberOfCredentialsSupportedPerUser | 0x001C | -| * EnableLogging | 0x0020 | | * Language | 0x0021 | | * LEDSettings | 0x0022 | | * AutoRelockTime | 0x0023 | @@ -20691,14 +20676,6 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut | * SendPINOverTheAir | 0x0032 | | * RequirePINforRemoteOperation | 0x0033 | | * ExpiringUserTimeout | 0x0035 | -| * AlarmMask | 0x0040 | -| * KeypadOperationEventMask | 0x0041 | -| * RemoteOperationEventMask | 0x0042 | -| * ManualOperationEventMask | 0x0043 | -| * RFIDOperationEventMask | 0x0044 | -| * KeypadProgrammingEventMask | 0x0045 | -| * RemoteProgrammingEventMask | 0x0046 | -| * RFIDProgrammingEventMask | 0x0047 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * AttributeList | 0xFFFB | @@ -20859,332 +20836,6 @@ class DoorLockUnlockWithTimeout : public ClusterCommand { chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type mRequest; }; -/* - * Command GetLogRecord - */ -class DoorLockGetLogRecord : public ClusterCommand { -public: - DoorLockGetLogRecord() - : ClusterCommand("get-log-record") - { - AddArgument("LogIndex", 0, UINT16_MAX, &mRequest.logIndex); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000004) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetLogRecordParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.logIndex = [NSNumber numberWithUnsignedShort:mRequest.logIndex]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster getLogRecordWithParams:params - completionHandler:^( - CHIPDoorLockClusterGetLogRecordResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::GetLogRecord::Type mRequest; -}; - -/* - * Command SetPINCode - */ -class DoorLockSetPINCode : public ClusterCommand { -public: - DoorLockSetPINCode() - : ClusterCommand("set-pincode") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - AddArgument("Pin", &mRequest.pin); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000005) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetPINCodeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - if (mRequest.userStatus.IsNull()) { - params.userStatus = nil; - } else { - params.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userStatus.Value())]; - } - if (mRequest.userType.IsNull()) { - params.userType = nil; - } else { - params.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userType.Value())]; - } - params.pin = [NSData dataWithBytes:mRequest.pin.data() length:mRequest.pin.size()]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster setPINCodeWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::SetPINCode::Type mRequest; -}; - -/* - * Command GetPINCode - */ -class DoorLockGetPINCode : public ClusterCommand { -public: - DoorLockGetPINCode() - : ClusterCommand("get-pincode") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000006) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetPINCodeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster - getPINCodeWithParams:params - completionHandler:^(CHIPDoorLockClusterGetPINCodeResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::GetPINCode::Type mRequest; -}; - -/* - * Command ClearPINCode - */ -class DoorLockClearPINCode : public ClusterCommand { -public: - DoorLockClearPINCode() - : ClusterCommand("clear-pincode") - { - AddArgument("PinSlotIndex", 0, UINT16_MAX, &mRequest.pinSlotIndex); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000007) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearPINCodeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.pinSlotIndex = [NSNumber numberWithUnsignedShort:mRequest.pinSlotIndex]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster clearPINCodeWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::ClearPINCode::Type mRequest; -}; - -/* - * Command ClearAllPINCodes - */ -class DoorLockClearAllPINCodes : public ClusterCommand { -public: - DoorLockClearAllPINCodes() - : ClusterCommand("clear-all-pincodes") - { - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000008) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearAllPINCodesParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster clearAllPINCodesWithCompletionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: -}; - -/* - * Command SetUserStatus - */ -class DoorLockSetUserStatus : public ClusterCommand { -public: - DoorLockSetUserStatus() - : ClusterCommand("set-user-status") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000009) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetUserStatusParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - params.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userStatus)]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster setUserStatusWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::SetUserStatus::Type mRequest; -}; - -/* - * Command GetUserStatus - */ -class DoorLockGetUserStatus : public ClusterCommand { -public: - DoorLockGetUserStatus() - : ClusterCommand("get-user-status") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000A) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetUserStatusParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster getUserStatusWithParams:params - completionHandler:^( - CHIPDoorLockClusterGetUserStatusResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::GetUserStatus::Type mRequest; -}; - /* * Command SetWeekDaySchedule */ @@ -21619,286 +21270,6 @@ class DoorLockClearHolidaySchedule : public ClusterCommand { chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type mRequest; }; -/* - * Command SetUserType - */ -class DoorLockSetUserType : public ClusterCommand { -public: - DoorLockSetUserType() - : ClusterCommand("set-user-type") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000014) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetUserTypeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - params.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userType)]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster setUserTypeWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::SetUserType::Type mRequest; -}; - -/* - * Command GetUserType - */ -class DoorLockGetUserType : public ClusterCommand { -public: - DoorLockGetUserType() - : ClusterCommand("get-user-type") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000015) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetUserTypeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster getUserTypeWithParams:params - completionHandler:^( - CHIPDoorLockClusterGetUserTypeResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::GetUserType::Type mRequest; -}; - -/* - * Command SetRFIDCode - */ -class DoorLockSetRFIDCode : public ClusterCommand { -public: - DoorLockSetRFIDCode() - : ClusterCommand("set-rfidcode") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - AddArgument("RfidCode", &mRequest.rfidCode); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000016) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterSetRFIDCodeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - if (mRequest.userStatus.IsNull()) { - params.userStatus = nil; - } else { - params.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userStatus.Value())]; - } - if (mRequest.userType.IsNull()) { - params.userType = nil; - } else { - params.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userType.Value())]; - } - params.rfidCode = [NSData dataWithBytes:mRequest.rfidCode.data() length:mRequest.rfidCode.size()]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster setRFIDCodeWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::SetRFIDCode::Type mRequest; -}; - -/* - * Command GetRFIDCode - */ -class DoorLockGetRFIDCode : public ClusterCommand { -public: - DoorLockGetRFIDCode() - : ClusterCommand("get-rfidcode") - { - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000017) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterGetRFIDCodeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster getRFIDCodeWithParams:params - completionHandler:^( - CHIPDoorLockClusterGetRFIDCodeResponseParams * _Nullable values, NSError * _Nullable error) { - NSLog(@"Values: %@", values); - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::GetRFIDCode::Type mRequest; -}; - -/* - * Command ClearRFIDCode - */ -class DoorLockClearRFIDCode : public ClusterCommand { -public: - DoorLockClearRFIDCode() - : ClusterCommand("clear-rfidcode") - { - AddArgument("RfidSlotIndex", 0, UINT16_MAX, &mRequest.rfidSlotIndex); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000018) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearRFIDCodeParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.rfidSlotIndex = [NSNumber numberWithUnsignedShort:mRequest.rfidSlotIndex]; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster clearRFIDCodeWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::ClearRFIDCode::Type mRequest; -}; - -/* - * Command ClearAllRFIDCodes - */ -class DoorLockClearAllRFIDCodes : public ClusterCommand { -public: - DoorLockClearAllRFIDCodes() - : ClusterCommand("clear-all-rfidcodes") - { - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000019) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterClearAllRFIDCodesParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster clearAllRFIDCodesWithCompletionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: -}; - /* * Command SetUser */ @@ -22245,162 +21616,38 @@ class DoorLockClearCredential : public ClusterCommand { }; /* - * Command OperatingEventNotification + * Attribute LockState */ -class DoorLockOperatingEventNotification : public ClusterCommand { +class ReadDoorLockLockState : public ReadAttribute { public: - DoorLockOperatingEventNotification() - : ClusterCommand("operating-event-notification") + ReadDoorLockLockState() + : ReadAttribute("lock-state") { - AddArgument("OperationEventSource", 0, UINT8_MAX, &mRequest.operationEventSource); - AddArgument("OperationEventCode", 0, UINT8_MAX, &mRequest.operationEventCode); - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("Pin", &mRequest.pin); - AddArgument("LocalTime", 0, UINT32_MAX, &mRequest.localTime); - AddArgument("Data", &mRequest.data); - ClusterCommand::AddArguments(); } + ~ReadDoorLockLockState() {} + CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000020) on endpoint %u", endpointId); + ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterOperatingEventNotificationParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.operationEventSource = [NSNumber numberWithUnsignedChar:mRequest.operationEventSource]; - params.operationEventCode = [NSNumber numberWithUnsignedChar:mRequest.operationEventCode]; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - params.pin = [NSData dataWithBytes:mRequest.pin.data() length:mRequest.pin.size()]; - params.localTime = [NSNumber numberWithUnsignedInt:mRequest.localTime]; - if (mRequest.data.HasValue()) { - params.data = [[NSString alloc] initWithBytes:mRequest.data.Value().data() - length:mRequest.data.Value().size() - encoding:NSUTF8StringEncoding]; - } else { - params.data = nil; - } - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster operatingEventNotificationWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } + [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"DoorLock.LockState response %@", [value description]); + if (error != nil) { + LogNSError("DoorLock LockState read Error", error); + } + SetCommandExitStatus(error); + }]; return CHIP_NO_ERROR; } - -private: - chip::app::Clusters::DoorLock::Commands::OperatingEventNotification::Type mRequest; }; -/* - * Command ProgrammingEventNotification - */ -class DoorLockProgrammingEventNotification : public ClusterCommand { +class SubscribeAttributeDoorLockLockState : public SubscribeAttribute { public: - DoorLockProgrammingEventNotification() - : ClusterCommand("programming-event-notification") - { - AddArgument("ProgramEventSource", 0, UINT8_MAX, &mRequest.programEventSource); - AddArgument("ProgramEventCode", 0, UINT8_MAX, &mRequest.programEventCode); - AddArgument("UserId", 0, UINT16_MAX, &mRequest.userId); - AddArgument("Pin", &mRequest.pin); - AddArgument("UserType", 0, UINT8_MAX, &mRequest.userType); - AddArgument("UserStatus", 0, UINT8_MAX, &mRequest.userStatus); - AddArgument("LocalTime", 0, UINT32_MAX, &mRequest.localTime); - AddArgument("Data", &mRequest.data); - ClusterCommand::AddArguments(); - } - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000021) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - __auto_type * params = [[CHIPDoorLockClusterProgrammingEventNotificationParams alloc] init]; - params.timedInvokeTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.programEventSource = [NSNumber numberWithUnsignedChar:mRequest.programEventSource]; - params.programEventCode = [NSNumber numberWithUnsignedChar:mRequest.programEventCode]; - params.userId = [NSNumber numberWithUnsignedShort:mRequest.userId]; - params.pin = [NSData dataWithBytes:mRequest.pin.data() length:mRequest.pin.size()]; - params.userType = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userType)]; - params.userStatus = [NSNumber numberWithUnsignedChar:chip::to_underlying(mRequest.userStatus)]; - params.localTime = [NSNumber numberWithUnsignedInt:mRequest.localTime]; - if (mRequest.data.HasValue()) { - params.data = [[NSString alloc] initWithBytes:mRequest.data.Value().data() - length:mRequest.data.Value().size() - encoding:NSUTF8StringEncoding]; - } else { - params.data = nil; - } - uint16_t repeatCount = mRepeatCount.ValueOr(1); - uint16_t __block responsesNeeded = repeatCount; - while (repeatCount--) { - [cluster programmingEventNotificationWithParams:params - completionHandler:^(NSError * _Nullable error) { - responsesNeeded--; - if (error != nil) { - mError = error; - LogNSError("Error", error); - } - if (responsesNeeded == 0) { - SetCommandExitStatus(mError); - } - }]; - } - return CHIP_NO_ERROR; - } - -private: - chip::app::Clusters::DoorLock::Commands::ProgrammingEventNotification::Type mRequest; -}; - -/* - * Attribute LockState - */ -class ReadDoorLockLockState : public ReadAttribute { -public: - ReadDoorLockLockState() - : ReadAttribute("lock-state") - { - } - - ~ReadDoorLockLockState() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000000) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.LockState response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock LockState read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class SubscribeAttributeDoorLockLockState : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockLockState() - : SubscribeAttribute("lock-state") + SubscribeAttributeDoorLockLockState() + : SubscribeAttribute("lock-state") { } @@ -22951,76 +22198,6 @@ class SubscribeAttributeDoorLockOpenPeriod : public SubscribeAttribute { } }; -/* - * Attribute NumberOfLogRecordsSupported - */ -class ReadDoorLockNumberOfLogRecordsSupported : public ReadAttribute { -public: - ReadDoorLockNumberOfLogRecordsSupported() - : ReadAttribute("number-of-log-records-supported") - { - } - - ~ReadDoorLockNumberOfLogRecordsSupported() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000010) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeNumberOfLogRecordsSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.NumberOfLogRecordsSupported response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock NumberOfLogRecordsSupported read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class SubscribeAttributeDoorLockNumberOfLogRecordsSupported : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockNumberOfLogRecordsSupported() - : SubscribeAttribute("number-of-log-records-supported") - { - } - - ~SubscribeAttributeDoorLockNumberOfLogRecordsSupported() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000010) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeNumberOfLogRecordsSupportedWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.NumberOfLogRecordsSupported response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - /* * Attribute NumberOfTotalUsersSupported */ @@ -23856,111 +23033,6 @@ class SubscribeAttributeDoorLockNumberOfCredentialsSupportedPerUser : public Sub } }; -/* - * Attribute EnableLogging - */ -class ReadDoorLockEnableLogging : public ReadAttribute { -public: - ReadDoorLockEnableLogging() - : ReadAttribute("enable-logging") - { - } - - ~ReadDoorLockEnableLogging() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000020) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster readAttributeEnableLoggingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.EnableLogging response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock EnableLogging read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockEnableLogging : public WriteAttribute { -public: - WriteDoorLockEnableLogging() - : WriteAttribute("enable-logging") - { - AddArgument("attr-name", "enable-logging"); - AddArgument("attr-value", 0, 1, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockEnableLogging() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000020) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; - - [cluster writeAttributeEnableLoggingWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock EnableLogging write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - bool mValue; -}; - -class SubscribeAttributeDoorLockEnableLogging : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockEnableLogging() - : SubscribeAttribute("enable-logging") - { - } - - ~SubscribeAttributeDoorLockEnableLogging() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000020) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster subscribeAttributeEnableLoggingWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.EnableLogging response %@", [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - /* * Attribute Language */ @@ -25691,865 +24763,6 @@ class SubscribeAttributeDoorLockExpiringUserTimeout : public SubscribeAttribute } }; -/* - * Attribute AlarmMask - */ -class ReadDoorLockAlarmMask : public ReadAttribute { -public: - ReadDoorLockAlarmMask() - : ReadAttribute("alarm-mask") - { - } - - ~ReadDoorLockAlarmMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000040) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster readAttributeAlarmMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.AlarmMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock AlarmMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockAlarmMask : public WriteAttribute { -public: - WriteDoorLockAlarmMask() - : WriteAttribute("alarm-mask") - { - AddArgument("attr-name", "alarm-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockAlarmMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000040) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeAlarmMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock AlarmMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockAlarmMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockAlarmMask() - : SubscribeAttribute("alarm-mask") - { - } - - ~SubscribeAttributeDoorLockAlarmMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000040) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster subscribeAttributeAlarmMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.AlarmMask response %@", [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute KeypadOperationEventMask - */ -class ReadDoorLockKeypadOperationEventMask : public ReadAttribute { -public: - ReadDoorLockKeypadOperationEventMask() - : ReadAttribute("keypad-operation-event-mask") - { - } - - ~ReadDoorLockKeypadOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000041) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeKeypadOperationEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.KeypadOperationEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock KeypadOperationEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockKeypadOperationEventMask : public WriteAttribute { -public: - WriteDoorLockKeypadOperationEventMask() - : WriteAttribute("keypad-operation-event-mask") - { - AddArgument("attr-name", "keypad-operation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockKeypadOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000041) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeKeypadOperationEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock KeypadOperationEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockKeypadOperationEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockKeypadOperationEventMask() - : SubscribeAttribute("keypad-operation-event-mask") - { - } - - ~SubscribeAttributeDoorLockKeypadOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000041) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeKeypadOperationEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.KeypadOperationEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute RemoteOperationEventMask - */ -class ReadDoorLockRemoteOperationEventMask : public ReadAttribute { -public: - ReadDoorLockRemoteOperationEventMask() - : ReadAttribute("remote-operation-event-mask") - { - } - - ~ReadDoorLockRemoteOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000042) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeRemoteOperationEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RemoteOperationEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock RemoteOperationEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockRemoteOperationEventMask : public WriteAttribute { -public: - WriteDoorLockRemoteOperationEventMask() - : WriteAttribute("remote-operation-event-mask") - { - AddArgument("attr-name", "remote-operation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRemoteOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000042) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeRemoteOperationEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock RemoteOperationEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockRemoteOperationEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockRemoteOperationEventMask() - : SubscribeAttribute("remote-operation-event-mask") - { - } - - ~SubscribeAttributeDoorLockRemoteOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000042) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeRemoteOperationEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RemoteOperationEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute ManualOperationEventMask - */ -class ReadDoorLockManualOperationEventMask : public ReadAttribute { -public: - ReadDoorLockManualOperationEventMask() - : ReadAttribute("manual-operation-event-mask") - { - } - - ~ReadDoorLockManualOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000043) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeManualOperationEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.ManualOperationEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock ManualOperationEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockManualOperationEventMask : public WriteAttribute { -public: - WriteDoorLockManualOperationEventMask() - : WriteAttribute("manual-operation-event-mask") - { - AddArgument("attr-name", "manual-operation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockManualOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000043) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeManualOperationEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock ManualOperationEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockManualOperationEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockManualOperationEventMask() - : SubscribeAttribute("manual-operation-event-mask") - { - } - - ~SubscribeAttributeDoorLockManualOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000043) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeManualOperationEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.ManualOperationEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute RFIDOperationEventMask - */ -class ReadDoorLockRFIDOperationEventMask : public ReadAttribute { -public: - ReadDoorLockRFIDOperationEventMask() - : ReadAttribute("rfidoperation-event-mask") - { - } - - ~ReadDoorLockRFIDOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000044) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster readAttributeRFIDOperationEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RFIDOperationEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock RFIDOperationEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockRFIDOperationEventMask : public WriteAttribute { -public: - WriteDoorLockRFIDOperationEventMask() - : WriteAttribute("rfidoperation-event-mask") - { - AddArgument("attr-name", "rfidoperation-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRFIDOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000044) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeRFIDOperationEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock RFIDOperationEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockRFIDOperationEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockRFIDOperationEventMask() - : SubscribeAttribute("rfidoperation-event-mask") - { - } - - ~SubscribeAttributeDoorLockRFIDOperationEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000044) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster subscribeAttributeRFIDOperationEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RFIDOperationEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute KeypadProgrammingEventMask - */ -class ReadDoorLockKeypadProgrammingEventMask : public ReadAttribute { -public: - ReadDoorLockKeypadProgrammingEventMask() - : ReadAttribute("keypad-programming-event-mask") - { - } - - ~ReadDoorLockKeypadProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000045) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeKeypadProgrammingEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.KeypadProgrammingEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock KeypadProgrammingEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockKeypadProgrammingEventMask : public WriteAttribute { -public: - WriteDoorLockKeypadProgrammingEventMask() - : WriteAttribute("keypad-programming-event-mask") - { - AddArgument("attr-name", "keypad-programming-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockKeypadProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000045) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeKeypadProgrammingEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock KeypadProgrammingEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockKeypadProgrammingEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockKeypadProgrammingEventMask() - : SubscribeAttribute("keypad-programming-event-mask") - { - } - - ~SubscribeAttributeDoorLockKeypadProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000045) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeKeypadProgrammingEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.KeypadProgrammingEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute RemoteProgrammingEventMask - */ -class ReadDoorLockRemoteProgrammingEventMask : public ReadAttribute { -public: - ReadDoorLockRemoteProgrammingEventMask() - : ReadAttribute("remote-programming-event-mask") - { - } - - ~ReadDoorLockRemoteProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000046) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeRemoteProgrammingEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RemoteProgrammingEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock RemoteProgrammingEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockRemoteProgrammingEventMask : public WriteAttribute { -public: - WriteDoorLockRemoteProgrammingEventMask() - : WriteAttribute("remote-programming-event-mask") - { - AddArgument("attr-name", "remote-programming-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRemoteProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000046) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeRemoteProgrammingEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock RemoteProgrammingEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockRemoteProgrammingEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockRemoteProgrammingEventMask() - : SubscribeAttribute("remote-programming-event-mask") - { - } - - ~SubscribeAttributeDoorLockRemoteProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000046) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeRemoteProgrammingEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RemoteProgrammingEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - -/* - * Attribute RFIDProgrammingEventMask - */ -class ReadDoorLockRFIDProgrammingEventMask : public ReadAttribute { -public: - ReadDoorLockRFIDProgrammingEventMask() - : ReadAttribute("rfidprogramming-event-mask") - { - } - - ~ReadDoorLockRFIDProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000047) on endpoint %u", endpointId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - [cluster - readAttributeRFIDProgrammingEventMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RFIDProgrammingEventMask response %@", [value description]); - if (error != nil) { - LogNSError("DoorLock RFIDProgrammingEventMask read Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteDoorLockRFIDProgrammingEventMask : public WriteAttribute { -public: - WriteDoorLockRFIDProgrammingEventMask() - : WriteAttribute("rfidprogramming-event-mask") - { - AddArgument("attr-name", "rfidprogramming-event-mask"); - AddArgument("attr-value", 0, UINT16_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteDoorLockRFIDProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000047) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPWriteParams * params = [[CHIPWriteParams alloc] init]; - params.timedWriteTimeoutMs - = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; - - [cluster writeAttributeRFIDProgrammingEventMaskWithValue:value - params:params - completionHandler:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("DoorLock RFIDProgrammingEventMask write Error", error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint16_t mValue; -}; - -class SubscribeAttributeDoorLockRFIDProgrammingEventMask : public SubscribeAttribute { -public: - SubscribeAttributeDoorLockRFIDProgrammingEventMask() - : SubscribeAttribute("rfidprogramming-event-mask") - { - } - - ~SubscribeAttributeDoorLockRFIDProgrammingEventMask() {} - - CHIP_ERROR SendCommand(CHIPDevice * device, chip::EndpointId endpointId) override - { - ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000047) on endpoint %u", endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; - CHIPSubscribeParams * params = [[CHIPSubscribeParams alloc] init]; - params.keepPreviousSubscriptions - = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; - params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster - subscribeAttributeRFIDProgrammingEventMaskWithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] - params:params - subscriptionEstablished:nullptr - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"DoorLock.RFIDProgrammingEventMask response %@", - [value description]); - if (error || !mWait) { - SetCommandExitStatus(error); - } - }]; - - return CHIP_NO_ERROR; - } - - chip::System::Clock::Timeout GetWaitDuration() const override - { - return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10); - } -}; - /* * Attribute GeneratedCommandList */ @@ -97745,13 +95958,6 @@ void registerClusterDoorLock(Commands & commands) 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(), // @@ -97761,20 +95967,12 @@ void registerClusterDoorLock(Commands & commands) 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(Id), // make_unique(), // make_unique(Id), // @@ -97795,8 +95993,6 @@ void registerClusterDoorLock(Commands & commands) make_unique(), // make_unique(), // make_unique(), // - make_unique(), // - make_unique(), // make_unique(), // make_unique(), // make_unique(), // @@ -97821,9 +96017,6 @@ void registerClusterDoorLock(Commands & commands) make_unique(), // make_unique(), // make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // make_unique(), // make_unique(), // make_unique(), // @@ -97873,30 +96066,6 @@ void registerClusterDoorLock(Commands & commands) 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(), //