Skip to content

Commit 8971bd1

Browse files
committed
doorlock changes removed
1 parent 2bfe217 commit 8971bd1

File tree

12 files changed

+30
-20
lines changed

12 files changed

+30
-20
lines changed

examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,7 @@ cluster DoorLock = 257 {
29732973
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
29742974
attribute access(write: manage) optional char_string<3> language = 33;
29752975
attribute access(write: manage) optional int8u LEDSettings = 34;
2976-
attribute access(write: manage) int32u autoRelockTime = 35;
2976+
attribute access(write: manage) optional int32u autoRelockTime = 35;
29772977
attribute access(write: manage) optional int8u soundVolume = 36;
29782978
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
29792979
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ cluster DoorLock = 257 {
18781878
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
18791879
attribute access(write: manage) optional char_string<3> language = 33;
18801880
attribute access(write: manage) optional int8u LEDSettings = 34;
1881-
attribute access(write: manage) int32u autoRelockTime = 35;
1881+
attribute access(write: manage) optional int32u autoRelockTime = 35;
18821882
attribute access(write: manage) optional int8u soundVolume = 36;
18831883
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
18841884
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/lock-app/lock-common/lock-app.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,7 @@ cluster DoorLock = 257 {
22522252
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
22532253
attribute access(write: manage) optional char_string<3> language = 33;
22542254
attribute access(write: manage) optional int8u LEDSettings = 34;
2255-
attribute access(write: manage) int32u autoRelockTime = 35;
2255+
attribute access(write: manage) optional int32u autoRelockTime = 35;
22562256
attribute access(write: manage) optional int8u soundVolume = 36;
22572257
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
22582258
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/lock-app/nxp/zap/lock-app.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ cluster DoorLock = 257 {
15041504
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
15051505
attribute access(write: manage) optional char_string<3> language = 33;
15061506
attribute access(write: manage) optional int8u LEDSettings = 34;
1507-
attribute access(write: manage) int32u autoRelockTime = 35;
1507+
attribute access(write: manage) optional int32u autoRelockTime = 35;
15081508
attribute access(write: manage) optional int8u soundVolume = 36;
15091509
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
15101510
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/lock-app/qpg/zap/lock.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ cluster DoorLock = 257 {
19081908
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
19091909
attribute access(write: manage) optional char_string<3> language = 33;
19101910
attribute access(write: manage) optional int8u LEDSettings = 34;
1911-
attribute access(write: manage) int32u autoRelockTime = 35;
1911+
attribute access(write: manage) optional int32u autoRelockTime = 35;
19121912
attribute access(write: manage) optional int8u soundVolume = 36;
19131913
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
19141914
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/placeholder/linux/apps/app1/config.matter

+2-2
Original file line numberDiff line numberDiff line change
@@ -3568,7 +3568,7 @@ cluster DoorLock = 257 {
35683568
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
35693569
attribute access(write: manage) optional char_string<3> language = 33;
35703570
attribute access(write: manage) optional int8u LEDSettings = 34;
3571-
attribute access(write: manage) int32u autoRelockTime = 35;
3571+
attribute access(write: manage) optional int32u autoRelockTime = 35;
35723572
attribute access(write: manage) optional int8u soundVolume = 36;
35733573
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
35743574
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;
@@ -4219,7 +4219,7 @@ cluster DoorLock = 257 {
42194219
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
42204220
attribute access(write: manage) optional char_string<3> language = 33;
42214221
attribute access(write: manage) optional int8u LEDSettings = 34;
4222-
attribute access(write: manage) int32u autoRelockTime = 35;
4222+
attribute access(write: manage) optional int32u autoRelockTime = 35;
42234223
attribute access(write: manage) optional int8u soundVolume = 36;
42244224
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
42254225
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/placeholder/linux/apps/app2/config.matter

+2-2
Original file line numberDiff line numberDiff line change
@@ -3525,7 +3525,7 @@ cluster DoorLock = 257 {
35253525
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
35263526
attribute access(write: manage) optional char_string<3> language = 33;
35273527
attribute access(write: manage) optional int8u LEDSettings = 34;
3528-
attribute access(write: manage) int32u autoRelockTime = 35;
3528+
attribute access(write: manage) optional int32u autoRelockTime = 35;
35293529
attribute access(write: manage) optional int8u soundVolume = 36;
35303530
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
35313531
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;
@@ -4176,7 +4176,7 @@ cluster DoorLock = 257 {
41764176
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
41774177
attribute access(write: manage) optional char_string<3> language = 33;
41784178
attribute access(write: manage) optional int8u LEDSettings = 34;
4179-
attribute access(write: manage) int32u autoRelockTime = 35;
4179+
attribute access(write: manage) optional int32u autoRelockTime = 35;
41804180
attribute access(write: manage) optional int8u soundVolume = 36;
41814181
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
41824182
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

examples/virtual-device-app/virtual-device-common/virtual-device-app.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -2448,7 +2448,7 @@ cluster DoorLock = 257 {
24482448
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
24492449
attribute access(write: manage) optional char_string<3> language = 33;
24502450
attribute access(write: manage) optional int8u LEDSettings = 34;
2451-
attribute access(write: manage) int32u autoRelockTime = 35;
2451+
attribute access(write: manage) optional int32u autoRelockTime = 35;
24522452
attribute access(write: manage) optional int8u soundVolume = 36;
24532453
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
24542454
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ limitations under the License.
190190
<access op="read" role="view" />
191191
<access op="write" role="manage" />
192192
</attribute>
193-
<attribute side="server" code="35" define="AUTO_RELOCK_TIME" type="int32u" reportable="true" writable="true">
193+
<attribute side="server" code="35" define="AUTO_RELOCK_TIME" type="int32u" reportable="true" writable="true" optional="true">
194194
<description>AutoRelockTime</description>
195195
<access op="read" role="view" />
196196
<access op="write" role="manage" />

src/controller/data_model/controller-clusters.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -5559,7 +5559,7 @@ cluster DoorLock = 257 {
55595559
readonly attribute optional int8u numberOfCredentialsSupportedPerUser = 28;
55605560
attribute access(write: manage) optional char_string<3> language = 33;
55615561
attribute access(write: manage) optional int8u LEDSettings = 34;
5562-
attribute access(write: manage) int32u autoRelockTime = 35;
5562+
attribute access(write: manage) optional int32u autoRelockTime = 35;
55635563
attribute access(write: manage) optional int8u soundVolume = 36;
55645564
attribute access(write: manage) OperatingModeEnum operatingMode = 37;
55655565
readonly attribute DlSupportedOperatingModes supportedOperatingModes = 38;

src/controller/java/generated/java/matter/controller/cluster/clusters/DoorLockCluster.kt

+14-4
Original file line numberDiff line numberDiff line change
@@ -3647,7 +3647,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp
36473647
}
36483648
}
36493649

3650-
suspend fun readAutoRelockTimeAttribute(): UInt {
3650+
suspend fun readAutoRelockTimeAttribute(): UInt? {
36513651
val ATTRIBUTE_ID: UInt = 35u
36523652

36533653
val attributePath =
@@ -3673,7 +3673,12 @@ class DoorLockCluster(private val controller: MatterController, private val endp
36733673

36743674
// Decode the TLV data into the appropriate type
36753675
val tlvReader = TlvReader(attributeData.data)
3676-
val decodedValue: UInt = tlvReader.getUInt(AnonymousTag)
3676+
val decodedValue: UInt? =
3677+
if (tlvReader.isNextTag(AnonymousTag)) {
3678+
tlvReader.getUInt(AnonymousTag)
3679+
} else {
3680+
null
3681+
}
36773682

36783683
return decodedValue
36793684
}
@@ -3759,9 +3764,14 @@ class DoorLockCluster(private val controller: MatterController, private val endp
37593764

37603765
// Decode the TLV data into the appropriate type
37613766
val tlvReader = TlvReader(attributeData.data)
3762-
val decodedValue: UInt = tlvReader.getUInt(AnonymousTag)
3767+
val decodedValue: UInt? =
3768+
if (tlvReader.isNextTag(AnonymousTag)) {
3769+
tlvReader.getUInt(AnonymousTag)
3770+
} else {
3771+
null
3772+
}
37633773

3764-
emit(UIntSubscriptionState.Success(decodedValue))
3774+
decodedValue?.let { emit(UIntSubscriptionState.Success(it)) }
37653775
}
37663776
SubscriptionState.SubscriptionEstablished -> {
37673777
emit(UIntSubscriptionState.SubscriptionEstablished)

src/controller/python/chip/clusters/Objects.py

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)