@@ -36,7 +36,7 @@ import matter.tlv.TlvReader
36
36
37
37
class MeterIdentificationCluster (
38
38
private val controller : MatterController ,
39
- private val endpointId : UShort
39
+ private val endpointId : UShort ,
40
40
) {
41
41
class MeterTypeAttribute (val value : UByte? )
42
42
@@ -167,7 +167,7 @@ class MeterIdentificationCluster(
167
167
168
168
suspend fun subscribeMeterTypeAttribute (
169
169
minInterval : Int ,
170
- maxInterval : Int
170
+ maxInterval : Int ,
171
171
): Flow <MeterTypeAttributeSubscriptionState > {
172
172
val ATTRIBUTE_ID : UInt = 0u
173
173
val attributePaths =
@@ -180,7 +180,7 @@ class MeterIdentificationCluster(
180
180
eventPaths = emptyList(),
181
181
attributePaths = attributePaths,
182
182
minInterval = Duration .ofSeconds(minInterval.toLong()),
183
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
183
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
184
184
)
185
185
186
186
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -260,7 +260,7 @@ class MeterIdentificationCluster(
260
260
261
261
suspend fun subscribeUtilityNameAttribute (
262
262
minInterval : Int ,
263
- maxInterval : Int
263
+ maxInterval : Int ,
264
264
): Flow <UtilityNameAttributeSubscriptionState > {
265
265
val ATTRIBUTE_ID : UInt = 1u
266
266
val attributePaths =
@@ -273,7 +273,7 @@ class MeterIdentificationCluster(
273
273
eventPaths = emptyList(),
274
274
attributePaths = attributePaths,
275
275
minInterval = Duration .ofSeconds(minInterval.toLong()),
276
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
276
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
277
277
)
278
278
279
279
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -353,7 +353,7 @@ class MeterIdentificationCluster(
353
353
354
354
suspend fun subscribePointOfDeliveryAttribute (
355
355
minInterval : Int ,
356
- maxInterval : Int
356
+ maxInterval : Int ,
357
357
): Flow <PointOfDeliveryAttributeSubscriptionState > {
358
358
val ATTRIBUTE_ID : UInt = 2u
359
359
val attributePaths =
@@ -366,7 +366,7 @@ class MeterIdentificationCluster(
366
366
eventPaths = emptyList(),
367
367
attributePaths = attributePaths,
368
368
minInterval = Duration .ofSeconds(minInterval.toLong()),
369
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
369
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
370
370
)
371
371
372
372
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -452,7 +452,7 @@ class MeterIdentificationCluster(
452
452
453
453
suspend fun subscribePowerThresholdAttribute (
454
454
minInterval : Int ,
455
- maxInterval : Int
455
+ maxInterval : Int ,
456
456
): Flow <PowerThresholdAttributeSubscriptionState > {
457
457
val ATTRIBUTE_ID : UInt = 3u
458
458
val attributePaths =
@@ -465,7 +465,7 @@ class MeterIdentificationCluster(
465
465
eventPaths = emptyList(),
466
466
attributePaths = attributePaths,
467
467
minInterval = Duration .ofSeconds(minInterval.toLong()),
468
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
468
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
469
469
)
470
470
471
471
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -555,7 +555,7 @@ class MeterIdentificationCluster(
555
555
556
556
suspend fun subscribePowerThresholdSourceAttribute (
557
557
minInterval : Int ,
558
- maxInterval : Int
558
+ maxInterval : Int ,
559
559
): Flow <PowerThresholdSourceAttributeSubscriptionState > {
560
560
val ATTRIBUTE_ID : UInt = 4u
561
561
val attributePaths =
@@ -568,7 +568,7 @@ class MeterIdentificationCluster(
568
568
eventPaths = emptyList(),
569
569
attributePaths = attributePaths,
570
570
minInterval = Duration .ofSeconds(minInterval.toLong()),
571
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
571
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
572
572
)
573
573
574
574
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -655,7 +655,7 @@ class MeterIdentificationCluster(
655
655
656
656
suspend fun subscribeGeneratedCommandListAttribute (
657
657
minInterval : Int ,
658
- maxInterval : Int
658
+ maxInterval : Int ,
659
659
): Flow <GeneratedCommandListAttributeSubscriptionState > {
660
660
val ATTRIBUTE_ID : UInt = 65528u
661
661
val attributePaths =
@@ -668,7 +668,7 @@ class MeterIdentificationCluster(
668
668
eventPaths = emptyList(),
669
669
attributePaths = attributePaths,
670
670
minInterval = Duration .ofSeconds(minInterval.toLong()),
671
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
671
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
672
672
)
673
673
674
674
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -752,7 +752,7 @@ class MeterIdentificationCluster(
752
752
753
753
suspend fun subscribeAcceptedCommandListAttribute (
754
754
minInterval : Int ,
755
- maxInterval : Int
755
+ maxInterval : Int ,
756
756
): Flow <AcceptedCommandListAttributeSubscriptionState > {
757
757
val ATTRIBUTE_ID : UInt = 65529u
758
758
val attributePaths =
@@ -765,7 +765,7 @@ class MeterIdentificationCluster(
765
765
eventPaths = emptyList(),
766
766
attributePaths = attributePaths,
767
767
minInterval = Duration .ofSeconds(minInterval.toLong()),
768
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
768
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
769
769
)
770
770
771
771
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -849,7 +849,7 @@ class MeterIdentificationCluster(
849
849
850
850
suspend fun subscribeEventListAttribute (
851
851
minInterval : Int ,
852
- maxInterval : Int
852
+ maxInterval : Int ,
853
853
): Flow <EventListAttributeSubscriptionState > {
854
854
val ATTRIBUTE_ID : UInt = 65530u
855
855
val attributePaths =
@@ -862,7 +862,7 @@ class MeterIdentificationCluster(
862
862
eventPaths = emptyList(),
863
863
attributePaths = attributePaths,
864
864
minInterval = Duration .ofSeconds(minInterval.toLong()),
865
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
865
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
866
866
)
867
867
868
868
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -944,7 +944,7 @@ class MeterIdentificationCluster(
944
944
945
945
suspend fun subscribeAttributeListAttribute (
946
946
minInterval : Int ,
947
- maxInterval : Int
947
+ maxInterval : Int ,
948
948
): Flow <AttributeListAttributeSubscriptionState > {
949
949
val ATTRIBUTE_ID : UInt = 65531u
950
950
val attributePaths =
@@ -957,7 +957,7 @@ class MeterIdentificationCluster(
957
957
eventPaths = emptyList(),
958
958
attributePaths = attributePaths,
959
959
minInterval = Duration .ofSeconds(minInterval.toLong()),
960
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
960
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
961
961
)
962
962
963
963
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1032,7 +1032,7 @@ class MeterIdentificationCluster(
1032
1032
1033
1033
suspend fun subscribeFeatureMapAttribute (
1034
1034
minInterval : Int ,
1035
- maxInterval : Int
1035
+ maxInterval : Int ,
1036
1036
): Flow <UIntSubscriptionState > {
1037
1037
val ATTRIBUTE_ID : UInt = 65532u
1038
1038
val attributePaths =
@@ -1045,7 +1045,7 @@ class MeterIdentificationCluster(
1045
1045
eventPaths = emptyList(),
1046
1046
attributePaths = attributePaths,
1047
1047
minInterval = Duration .ofSeconds(minInterval.toLong()),
1048
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1048
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1049
1049
)
1050
1050
1051
1051
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1113,7 +1113,7 @@ class MeterIdentificationCluster(
1113
1113
1114
1114
suspend fun subscribeClusterRevisionAttribute (
1115
1115
minInterval : Int ,
1116
- maxInterval : Int
1116
+ maxInterval : Int ,
1117
1117
): Flow <UShortSubscriptionState > {
1118
1118
val ATTRIBUTE_ID : UInt = 65533u
1119
1119
val attributePaths =
@@ -1126,7 +1126,7 @@ class MeterIdentificationCluster(
1126
1126
eventPaths = emptyList(),
1127
1127
attributePaths = attributePaths,
1128
1128
minInterval = Duration .ofSeconds(minInterval.toLong()),
1129
- maxInterval = Duration .ofSeconds(maxInterval.toLong())
1129
+ maxInterval = Duration .ofSeconds(maxInterval.toLong()),
1130
1130
)
1131
1131
1132
1132
return controller.subscribe(subscribeRequest).transform { subscriptionState ->
0 commit comments