Skip to content

Commit

Permalink
Update General Commissioning cluster to align with the latest spec (#…
Browse files Browse the repository at this point in the history
…14671)

* Update General Commissioning cluster to align with the latest spec

* Run codegen
  • Loading branch information
yufengwangca authored Feb 2, 2022
1 parent 2a6dc3e commit 974a6eb
Show file tree
Hide file tree
Showing 92 changed files with 3,330 additions and 4,297 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ server cluster FlowMeasurement = 1028 {
}

server cluster GeneralCommissioning = 48 {
enum GeneralCommissioningError : ENUM8 {
enum CommissioningError : ENUM8 {
kOk = 0;
kValueOutsideRange = 1;
kInvalidAuthentication = 2;
Expand All @@ -1360,12 +1360,12 @@ server cluster GeneralCommissioning = 48 {
kIndoorOutdoor = 2;
}

struct BasicCommissioningInfoType {
INT32U failSafeExpiryLengthMs = 0;
struct BasicCommissioningInfo {
INT16U failSafeExpiryLengthSeconds = 0;
}

attribute int64u breadcrumb = 0;
readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
readonly attribute enum8 regulatoryConfig = 2;
readonly attribute enum8 locationCapability = 3;
readonly global attribute bitmap32 featureMap = 65532;
Expand All @@ -1385,17 +1385,17 @@ server cluster GeneralCommissioning = 48 {
}

response struct ArmFailSafeResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct CommissioningCompleteResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct SetRegulatoryConfigResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1982,12 +1982,12 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down Expand Up @@ -9619,12 +9619,12 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down
14 changes: 7 additions & 7 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ server cluster FixedLabel = 64 {
}

server cluster GeneralCommissioning = 48 {
enum GeneralCommissioningError : ENUM8 {
enum CommissioningError : ENUM8 {
kOk = 0;
kValueOutsideRange = 1;
kInvalidAuthentication = 2;
Expand All @@ -168,12 +168,12 @@ server cluster GeneralCommissioning = 48 {
kIndoorOutdoor = 2;
}

struct BasicCommissioningInfoType {
INT32U failSafeExpiryLengthMs = 0;
struct BasicCommissioningInfo {
INT16U failSafeExpiryLengthSeconds = 0;
}

attribute int64u breadcrumb = 0;
readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
readonly attribute enum8 regulatoryConfig = 2;
readonly attribute enum8 locationCapability = 3;
readonly global attribute bitmap32 featureMap = 65532;
Expand All @@ -193,17 +193,17 @@ server cluster GeneralCommissioning = 48 {
}

response struct ArmFailSafeResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct CommissioningCompleteResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct SetRegulatoryConfigResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -799,12 +799,12 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down
14 changes: 7 additions & 7 deletions examples/door-lock-app/door-lock-common/door-lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ server cluster FixedLabel = 64 {
}

server cluster GeneralCommissioning = 48 {
enum GeneralCommissioningError : ENUM8 {
enum CommissioningError : ENUM8 {
kOk = 0;
kValueOutsideRange = 1;
kInvalidAuthentication = 2;
Expand All @@ -707,12 +707,12 @@ server cluster GeneralCommissioning = 48 {
kIndoorOutdoor = 2;
}

struct BasicCommissioningInfoType {
INT32U failSafeExpiryLengthMs = 0;
struct BasicCommissioningInfo {
INT16U failSafeExpiryLengthSeconds = 0;
}

attribute int64u breadcrumb = 0;
readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
readonly attribute enum8 regulatoryConfig = 2;
readonly attribute enum8 locationCapability = 3;
readonly global attribute bitmap32 featureMap = 65532;
Expand All @@ -732,17 +732,17 @@ server cluster GeneralCommissioning = 48 {
}

response struct ArmFailSafeResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct CommissioningCompleteResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct SetRegulatoryConfigResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/door-lock-app/door-lock-common/door-lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1755,12 +1755,12 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ server cluster FixedLabel = 64 {
}

server cluster GeneralCommissioning = 48 {
enum GeneralCommissioningError : ENUM8 {
enum CommissioningError : ENUM8 {
kOk = 0;
kValueOutsideRange = 1;
kInvalidAuthentication = 2;
Expand All @@ -458,12 +458,12 @@ server cluster GeneralCommissioning = 48 {
kIndoorOutdoor = 2;
}

struct BasicCommissioningInfoType {
INT32U failSafeExpiryLengthMs = 0;
struct BasicCommissioningInfo {
INT16U failSafeExpiryLengthSeconds = 0;
}

attribute int64u breadcrumb = 0;
readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
readonly attribute enum8 regulatoryConfig = 2;
readonly attribute enum8 locationCapability = 3;
readonly global attribute bitmap32 featureMap = 65532;
Expand All @@ -483,17 +483,17 @@ server cluster GeneralCommissioning = 48 {
}

response struct ArmFailSafeResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct CommissioningCompleteResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct SetRegulatoryConfigResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
Expand Down
14 changes: 7 additions & 7 deletions examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ server cluster FixedLabel = 64 {
}

server cluster GeneralCommissioning = 48 {
enum GeneralCommissioningError : ENUM8 {
enum CommissioningError : ENUM8 {
kOk = 0;
kValueOutsideRange = 1;
kInvalidAuthentication = 2;
Expand All @@ -424,12 +424,12 @@ server cluster GeneralCommissioning = 48 {
kIndoorOutdoor = 2;
}

struct BasicCommissioningInfoType {
INT32U failSafeExpiryLengthMs = 0;
struct BasicCommissioningInfo {
INT16U failSafeExpiryLengthSeconds = 0;
}

attribute int64u breadcrumb = 0;
readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
readonly attribute enum8 regulatoryConfig = 2;
readonly attribute enum8 locationCapability = 3;
readonly global attribute bitmap32 featureMap = 65532;
Expand All @@ -449,17 +449,17 @@ server cluster GeneralCommissioning = 48 {
}

response struct ArmFailSafeResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct CommissioningCompleteResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct SetRegulatoryConfigResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/lighting-common/lighting-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1855,12 +1855,12 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down
14 changes: 7 additions & 7 deletions examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ server cluster FixedLabel = 64 {
}

server cluster GeneralCommissioning = 48 {
enum GeneralCommissioningError : ENUM8 {
enum CommissioningError : ENUM8 {
kOk = 0;
kValueOutsideRange = 1;
kInvalidAuthentication = 2;
Expand All @@ -168,12 +168,12 @@ server cluster GeneralCommissioning = 48 {
kIndoorOutdoor = 2;
}

struct BasicCommissioningInfoType {
INT32U failSafeExpiryLengthMs = 0;
struct BasicCommissioningInfo {
INT16U failSafeExpiryLengthSeconds = 0;
}

attribute int64u breadcrumb = 0;
readonly attribute BasicCommissioningInfoType basicCommissioningInfoList[] = 1;
readonly attribute BasicCommissioningInfo basicCommissioningInfo = 1;
readonly attribute enum8 regulatoryConfig = 2;
readonly attribute enum8 locationCapability = 3;
readonly global attribute bitmap32 featureMap = 65532;
Expand All @@ -193,17 +193,17 @@ server cluster GeneralCommissioning = 48 {
}

response struct ArmFailSafeResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct CommissioningCompleteResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

response struct SetRegulatoryConfigResponse {
GeneralCommissioningError errorCode = 0;
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions examples/lock-app/lock-common/lock-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1755,12 +1755,12 @@
"reportableChange": 0
},
{
"name": "BasicCommissioningInfoList",
"name": "BasicCommissioningInfo",
"code": 1,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
Expand Down
Loading

0 comments on commit 974a6eb

Please sign in to comment.