Skip to content

Commit

Permalink
Mark all attributes reportable again. (project-chip#13650)
Browse files Browse the repository at this point in the history
Continuing to work around
project-chip/zap#318 and
project-chip/zap#368

This commit was generated by running:

    find src/ examples -name "*.zap" -print0 | xargs -0 perl -pi -e 's/"reportable": 0/"reportable": 1/'
  • Loading branch information
bzbarsky-apple authored and step0035 committed Feb 8, 2022
1 parent 3bb5981 commit d172b1a
Show file tree
Hide file tree
Showing 42 changed files with 9,248 additions and 1,569 deletions.
100 changes: 50 additions & 50 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ server cluster AccessControl = 31 {

attribute(writable, reportable) AccessControlEntry acl[] = 0;
attribute(writable, reportable) ExtensionEntry extension[] = 1;
attribute(readonly) int16u clusterRevision = 65533;
attribute(readonly, reportable) int16u clusterRevision = 65533;
}

server cluster AccountLogin = 1294 {
Expand All @@ -62,9 +62,9 @@ server cluster AdministratorCommissioning = 60 {
kWindowNotOpen = 3;
}

attribute(readonly) int8u windowStatus = 0;
attribute(readonly) fabric_idx adminFabricIndex = 1;
attribute(readonly) int16u adminVendorId = 2;
attribute(readonly, reportable) int8u windowStatus = 0;
attribute(readonly, reportable) fabric_idx adminFabricIndex = 1;
attribute(readonly, reportable) int16u adminVendorId = 2;
attribute(readonly, reportable) int16u clusterRevision = 65533;

request struct OpenBasicCommissioningWindowRequest {
Expand Down Expand Up @@ -99,7 +99,7 @@ server cluster ApplicationBasic = 1293 {
attribute(readonly, reportable) int16u productId = 3;
attribute(readonly, reportable) ApplicationStatusEnum applicationStatus = 5;
attribute(readonly, reportable) char_string applicationVersion = 6;
attribute(readonly) vendor_id allowedVendorList[] = 7;
attribute(readonly, reportable) vendor_id allowedVendorList[] = 7;
attribute(readonly, reportable) int16u clusterRevision = 65533;
}

Expand Down Expand Up @@ -188,7 +188,7 @@ server cluster Basic = 40 {
attribute(readonly, reportable) char_string serialNumber = 15;
attribute(writable, reportable) boolean localConfigDisabled = 16;
attribute(readonly, reportable) boolean reachable = 17;
attribute(readonly) char_string uniqueID = 18;
attribute(readonly, reportable) char_string uniqueID = 18;
attribute(readonly, reportable) int16u clusterRevision = 65533;

command MfgSpecificPing(): DefaultSuccess = 0;
Expand Down Expand Up @@ -943,29 +943,29 @@ server cluster DoorLock = 257 {
attribute(readonly, reportable) DlLockType lockType = 1;
attribute(readonly, reportable) boolean actuatorEnabled = 2;
attribute(readonly, reportable) DlDoorState doorState = 3;
attribute(writable) int32u doorOpenEvents = 4;
attribute(writable) int32u doorClosedEvents = 5;
attribute(writable) int16u openPeriod = 6;
attribute(readonly) int16u numberOfTotalUsersSupported = 17;
attribute(readonly) int16u numberOfPINUsersSupported = 18;
attribute(readonly) int16u numberOfWeekDaySchedulesSupportedPerUser = 20;
attribute(readonly) int16u numberOfYearDaySchedulesSupportedPerUser = 21;
attribute(readonly) int16u numberOfHolidaySchedulesSupported = 22;
attribute(readonly) int8u maxPINCodeLength = 23;
attribute(readonly) int8u minPINCodeLength = 24;
attribute(readonly) bitmap8 credentialRulesSupport = 27;
attribute(writable, reportable) int32u doorOpenEvents = 4;
attribute(writable, reportable) int32u doorClosedEvents = 5;
attribute(writable, reportable) int16u openPeriod = 6;
attribute(readonly, reportable) int16u numberOfTotalUsersSupported = 17;
attribute(readonly, reportable) int16u numberOfPINUsersSupported = 18;
attribute(readonly, reportable) int16u numberOfWeekDaySchedulesSupportedPerUser = 20;
attribute(readonly, reportable) int16u numberOfYearDaySchedulesSupportedPerUser = 21;
attribute(readonly, reportable) int16u numberOfHolidaySchedulesSupported = 22;
attribute(readonly, reportable) int8u maxPINCodeLength = 23;
attribute(readonly, reportable) int8u minPINCodeLength = 24;
attribute(readonly, reportable) bitmap8 credentialRulesSupport = 27;
attribute(writable, reportable) char_string language = 33;
attribute(writable, reportable) int32u autoRelockTime = 35;
attribute(writable, reportable) int8u soundVolume = 36;
attribute(writable, reportable) DlOperatingMode operatingMode = 37;
attribute(readonly) bitmap16 supportedOperatingModes = 38;
attribute(readonly) bitmap16 defaultConfigurationRegister = 39;
attribute(readonly, reportable) bitmap16 supportedOperatingModes = 38;
attribute(readonly, reportable) bitmap16 defaultConfigurationRegister = 39;
attribute(writable, reportable) boolean enableOneTouchLocking = 41;
attribute(writable) boolean enableInsideStatusLED = 42;
attribute(writable, reportable) boolean enableInsideStatusLED = 42;
attribute(writable, reportable) boolean enablePrivacyModeButton = 43;
attribute(writable, reportable) int8u wrongCodeEntryLimit = 48;
attribute(writable, reportable) int8u userCodeTemporaryDisableTime = 49;
attribute(writable) boolean requirePINforRemoteOperation = 51;
attribute(writable, reportable) boolean requirePINforRemoteOperation = 51;
attribute(readonly, reportable) int16u clusterRevision = 65533;

request struct ClearCredentialRequest {
Expand Down Expand Up @@ -1083,15 +1083,15 @@ server cluster EthernetNetworkDiagnostics = 55 {
attribute(readonly, reportable) int64u overrunCount = 6;
attribute(readonly, reportable) boolean carrierDetect = 7;
attribute(readonly, reportable) int64u timeSinceReset = 8;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

command ResetCounts(): DefaultSuccess = 0;
}

server cluster FixedLabel = 64 {
attribute(readonly) LabelStruct labelList[] = 0;
attribute(readonly) int16u clusterRevision = 65533;
attribute(readonly, reportable) LabelStruct labelList[] = 0;
attribute(readonly, reportable) int16u clusterRevision = 65533;
}

server cluster FlowMeasurement = 1028 {
Expand Down Expand Up @@ -1122,9 +1122,9 @@ server cluster GeneralCommissioning = 48 {

attribute(writable, reportable) int64u breadcrumb = 0;
attribute(readonly, reportable) BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
attribute(readonly) enum8 regulatoryConfig = 2;
attribute(readonly) enum8 locationCapability = 3;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) enum8 regulatoryConfig = 2;
attribute(readonly, reportable) enum8 locationCapability = 3;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

request struct ArmFailSafeRequest {
Expand Down Expand Up @@ -1281,8 +1281,8 @@ server cluster GroupKeyManagement = 63 {

attribute(readonly, reportable) GroupKey groupKeyMap[] = 0;
attribute(readonly, reportable) GroupInfo groupTable[] = 1;
attribute(readonly) int16u maxGroupsPerFabric = 2;
attribute(readonly) int16u maxGroupKeysPerFabric = 3;
attribute(readonly, reportable) int16u maxGroupsPerFabric = 2;
attribute(readonly, reportable) int16u maxGroupKeysPerFabric = 3;
attribute(readonly, reportable) int16u clusterRevision = 65533;

request struct KeySetReadRequest {
Expand Down Expand Up @@ -1608,7 +1608,7 @@ server cluster LevelControl = 8 {
attribute(writable, reportable) int16u offTransitionTime = 19;
attribute(writable, reportable) int8u defaultMoveRate = 20;
attribute(writable, reportable) int8u startUpCurrentLevel = 16384;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

request struct MoveRequest {
Expand Down Expand Up @@ -1665,8 +1665,8 @@ server cluster LevelControl = 8 {
}

server cluster LocalizationConfiguration = 43 {
attribute(writable) char_string activeLocale = 1;
attribute(readonly) CHAR_STRING supportedLocales[] = 2;
attribute(writable, reportable) char_string activeLocale = 1;
attribute(readonly, reportable) CHAR_STRING supportedLocales[] = 2;
}

server cluster LowPower = 1288 {
Expand Down Expand Up @@ -1800,15 +1800,15 @@ server cluster NetworkCommissioning = 49 {
INT8U lqi = 8;
}

attribute(readonly) int8u maxNetworks = 0;
attribute(readonly) NetworkInfo networks[] = 1;
attribute(readonly) int8u scanMaxTimeSeconds = 2;
attribute(readonly) int8u connectMaxTimeSeconds = 3;
attribute(writable) boolean interfaceEnabled = 4;
attribute(readonly) NetworkCommissioningStatus lastNetworkingStatus = 5;
attribute(readonly) octet_string lastNetworkID = 6;
attribute(readonly) int32u lastConnectErrorValue = 7;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int8u maxNetworks = 0;
attribute(readonly, reportable) NetworkInfo networks[] = 1;
attribute(readonly, reportable) int8u scanMaxTimeSeconds = 2;
attribute(readonly, reportable) int8u connectMaxTimeSeconds = 3;
attribute(writable, reportable) boolean interfaceEnabled = 4;
attribute(readonly, reportable) NetworkCommissioningStatus lastNetworkingStatus = 5;
attribute(readonly, reportable) octet_string lastNetworkID = 6;
attribute(readonly, reportable) int32u lastConnectErrorValue = 7;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

request struct AddOrUpdateThreadNetworkRequest {
Expand Down Expand Up @@ -2165,8 +2165,8 @@ server cluster PowerSource = 47 {
}

server cluster PowerSourceConfiguration = 46 {
attribute(readonly) INT8U sources[] = 0;
attribute(readonly) int16u clusterRevision = 65533;
attribute(readonly, reportable) INT8U sources[] = 0;
attribute(readonly, reportable) int16u clusterRevision = 65533;
}

server cluster PressureMeasurement = 1027 {
Expand Down Expand Up @@ -2397,7 +2397,7 @@ server cluster SoftwareDiagnostics = 52 {
attribute(readonly, reportable) int64u currentHeapFree = 1;
attribute(readonly, reportable) int64u currentHeapUsed = 2;
attribute(readonly, reportable) int64u currentHeapHighWatermark = 3;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

command ResetWatermarks(): DefaultSuccess = 0;
Expand Down Expand Up @@ -2454,7 +2454,7 @@ server cluster TargetNavigator = 1285 {
}

attribute(readonly, reportable) TargetInfo targetNavigatorList[] = 0;
attribute(readonly) int8u currentNavigatorTarget = 1;
attribute(readonly, reportable) int8u currentNavigatorTarget = 1;
attribute(readonly, reportable) int16u clusterRevision = 65533;
}

Expand Down Expand Up @@ -2572,7 +2572,7 @@ server cluster TestCluster = 1295 {
attribute(writable, reportable) int8s rangeRestrictedInt8s = 39;
attribute(writable, reportable) int16u rangeRestrictedInt16u = 40;
attribute(writable, reportable) int16s rangeRestrictedInt16s = 41;
attribute(readonly) LONG_OCTET_STRING listLongOctetString[] = 42;
attribute(readonly, reportable) LONG_OCTET_STRING listLongOctetString[] = 42;
attribute(writable, reportable) boolean timedWriteBoolean = 48;
attribute(writable, reportable) boolean nullableBoolean = 32768;
attribute(writable, reportable) bitmap8 nullableBitmap8 = 32769;
Expand Down Expand Up @@ -2891,15 +2891,15 @@ server cluster ThreadNetworkDiagnostics = 53 {
attribute(readonly, reportable) octet_string channelMask = 60;
attribute(readonly, reportable) OperationalDatasetComponents operationalDatasetComponents[] = 61;
attribute(readonly, reportable) NetworkFault activeNetworkFaultsList[] = 62;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

command ResetCounts(): DefaultSuccess = 0;
}

server cluster UserLabel = 65 {
attribute(writable) LabelStruct labelList[] = 0;
attribute(readonly) int16u clusterRevision = 65533;
attribute(writable, reportable) LabelStruct labelList[] = 0;
attribute(readonly, reportable) int16u clusterRevision = 65533;
}

server cluster WakeOnLan = 1283 {
Expand Down Expand Up @@ -2964,7 +2964,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
attribute(readonly, reportable) int32u packetUnicastTxCount = 10;
attribute(readonly, reportable) int64u currentMaxRate = 11;
attribute(readonly, reportable) int64u overrunCount = 12;
attribute(readonly) bitmap32 featureMap = 65532;
attribute(readonly, reportable) bitmap32 featureMap = 65532;
attribute(readonly, reportable) int16u clusterRevision = 65533;

command ResetCounts(): DefaultSuccess = 0;
Expand Down
Loading

0 comments on commit d172b1a

Please sign in to comment.