Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code in matter IDL for responses #17561

Merged
merged 3 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ server cluster DoorLock = 257 {
nullable DlCredential credential = 0;
}

response struct GetUserResponse {
response struct GetUserResponse = 28 {
INT16U userIndex = 0;
nullable CHAR_STRING userName = 1;
nullable INT32U userUniqueId = 2;
Expand All @@ -1250,13 +1250,13 @@ server cluster DoorLock = 257 {
nullable INT16U nextUserIndex = 9;
}

response struct SetCredentialResponse {
response struct SetCredentialResponse = 35 {
DlStatus status = 0;
nullable INT16U userIndex = 1;
nullable INT16U nextCredentialIndex = 2;
}

response struct GetCredentialStatusResponse {
response struct GetCredentialStatusResponse = 37 {
boolean credentialExists = 0;
nullable INT16U userIndex = 1;
nullable INT16U nextCredentialIndex = 2;
Expand Down Expand Up @@ -1425,17 +1425,17 @@ server cluster GeneralCommissioning = 48 {
INT64U breadcrumb = 2;
}

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

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

response struct CommissioningCompleteResponse {
response struct CommissioningCompleteResponse = 5 {
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}
Expand Down Expand Up @@ -1588,11 +1588,11 @@ server cluster GroupKeyManagement = 63 {
INT16U groupKeySetIDs[] = 0;
}

response struct KeySetReadResponse {
response struct KeySetReadResponse = 2 {
GroupKeySetStruct groupKeySet = 0;
}

response struct KeySetReadAllIndicesResponse {
response struct KeySetReadAllIndicesResponse = 5 {
INT16U groupKeySetIDs[] = 0;
}

Expand Down Expand Up @@ -1628,23 +1628,23 @@ server cluster Groups = 4 {
CHAR_STRING groupName = 1;
}

response struct AddGroupResponse {
response struct AddGroupResponse = 0 {
ENUM8 status = 0;
group_id groupId = 1;
}

response struct ViewGroupResponse {
response struct ViewGroupResponse = 1 {
ENUM8 status = 0;
group_id groupId = 1;
CHAR_STRING groupName = 2;
}

response struct GetGroupMembershipResponse {
response struct GetGroupMembershipResponse = 2 {
nullable INT8U capacity = 0;
group_id groupList[] = 1;
}

response struct RemoveGroupResponse {
response struct RemoveGroupResponse = 3 {
ENUM8 status = 0;
group_id groupId = 1;
}
Expand Down Expand Up @@ -1709,14 +1709,14 @@ server cluster IasZone = 1280 {
INT8U zoneId = 1;
}

response struct ZoneStatusChangeNotification {
response struct ZoneStatusChangeNotification = 0 {
IasZoneStatus zoneStatus = 0;
BITMAP8 extendedStatus = 1;
INT8U zoneId = 2;
INT16U delay = 3;
}

response struct ZoneEnrollRequest {
response struct ZoneEnrollRequest = 1 {
IasZoneType zoneType = 0;
INT16U manufacturerCode = 1;
}
Expand Down Expand Up @@ -1760,7 +1760,7 @@ server cluster Identify = 3 {
IdentifyEffectVariant effectVariant = 1;
}

response struct IdentifyQueryResponse {
response struct IdentifyQueryResponse = 0 {
INT16U timeout = 0;
}

Expand Down Expand Up @@ -2182,20 +2182,20 @@ server cluster NetworkCommissioning = 49 {
optional INT64U breadcrumb = 2;
}

response struct ScanNetworksResponse {
response struct ScanNetworksResponse = 1 {
NetworkCommissioningStatus networkingStatus = 0;
optional CHAR_STRING debugText = 1;
optional WiFiInterfaceScanResult wiFiScanResults[] = 2;
optional ThreadInterfaceScanResult threadScanResults[] = 3;
}

response struct NetworkConfigResponse {
response struct NetworkConfigResponse = 5 {
NetworkCommissioningStatus networkingStatus = 0;
optional CHAR_STRING debugText = 1;
optional INT8U networkIndex = 2;
}

response struct ConnectNetworkResponse {
response struct ConnectNetworkResponse = 7 {
NetworkCommissioningStatus networkingStatus = 0;
optional CHAR_STRING debugText = 1;
nullable INT32S errorValue = 2;
Expand Down Expand Up @@ -2253,7 +2253,7 @@ client cluster OtaSoftwareUpdateProvider = 41 {
INT32U softwareVersion = 1;
}

response struct ApplyUpdateResponse {
response struct ApplyUpdateResponse = 3 {
OTAApplyUpdateAction action = 0;
INT32U delayedActionTime = 1;
}
Expand Down Expand Up @@ -2480,21 +2480,21 @@ server cluster OperationalCredentials = 62 {
OCTET_STRING trustedRootIdentifier = 0;
}

response struct AttestationResponse {
response struct AttestationResponse = 1 {
OCTET_STRING attestationElements = 0;
OCTET_STRING signature = 1;
}

response struct CertificateChainResponse {
response struct CertificateChainResponse = 3 {
OCTET_STRING certificate = 0;
}

response struct CSRResponse {
response struct CSRResponse = 5 {
OCTET_STRING NOCSRElements = 0;
OCTET_STRING attestationSignature = 1;
}

response struct NOCResponse {
response struct NOCResponse = 8 {
OperationalCertStatus statusCode = 0;
optional fabric_idx fabricIndex = 1;
optional CHAR_STRING debugText = 2;
Expand Down Expand Up @@ -2777,13 +2777,13 @@ server cluster Scenes = 5 {
INT16U groupId = 0;
}

response struct AddSceneResponse {
response struct AddSceneResponse = 0 {
ENUM8 status = 0;
INT16U groupId = 1;
INT8U sceneId = 2;
}

response struct ViewSceneResponse {
response struct ViewSceneResponse = 1 {
ENUM8 status = 0;
INT16U groupId = 1;
INT8U sceneId = 2;
Expand All @@ -2792,24 +2792,24 @@ server cluster Scenes = 5 {
SceneExtensionFieldSet extensionFieldSets[] = 5;
}

response struct RemoveSceneResponse {
response struct RemoveSceneResponse = 2 {
ENUM8 status = 0;
INT16U groupId = 1;
INT8U sceneId = 2;
}

response struct RemoveAllScenesResponse {
response struct RemoveAllScenesResponse = 3 {
ENUM8 status = 0;
INT16U groupId = 1;
}

response struct StoreSceneResponse {
response struct StoreSceneResponse = 4 {
ENUM8 status = 0;
INT16U groupId = 1;
INT8U sceneId = 2;
}

response struct GetSceneMembershipResponse {
response struct GetSceneMembershipResponse = 6 {
ENUM8 status = 0;
INT8U capacity = 1;
INT16U groupId = 2;
Expand Down Expand Up @@ -3167,39 +3167,39 @@ server cluster TestCluster = 1295 {
INT8U arg1 = 0;
}

response struct TestSpecificResponse {
response struct TestSpecificResponse = 0 {
INT8U returnValue = 0;
}

response struct TestAddArgumentsResponse {
response struct TestAddArgumentsResponse = 1 {
INT8U returnValue = 0;
}

response struct TestListInt8UReverseResponse {
response struct TestListInt8UReverseResponse = 4 {
INT8U arg1[] = 0;
}

response struct TestEnumsResponse {
response struct TestEnumsResponse = 5 {
vendor_id arg1 = 0;
SimpleEnum arg2 = 1;
}

response struct TestNullableOptionalResponse {
response struct TestNullableOptionalResponse = 6 {
BOOLEAN wasPresent = 0;
optional BOOLEAN wasNull = 1;
optional INT8U value = 2;
optional nullable INT8U originalValue = 3;
}

response struct SimpleStructResponse {
response struct SimpleStructResponse = 9 {
SimpleStruct arg1 = 0;
}

response struct TestEmitTestEventResponse {
response struct TestEmitTestEventResponse = 10 {
INT64U value = 0;
}

response struct TestEmitTestFabricScopedEventResponse {
response struct TestEmitTestFabricScopedEventResponse = 11 {
INT64U value = 0;
}

Expand Down
20 changes: 10 additions & 10 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -327,17 +327,17 @@ server cluster GeneralCommissioning = 48 {
INT64U breadcrumb = 2;
}

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

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

response struct CommissioningCompleteResponse {
response struct CommissioningCompleteResponse = 5 {
CommissioningError errorCode = 0;
CHAR_STRING debugText = 1;
}
Expand Down Expand Up @@ -638,20 +638,20 @@ server cluster NetworkCommissioning = 49 {
optional INT64U breadcrumb = 2;
}

response struct ScanNetworksResponse {
response struct ScanNetworksResponse = 1 {
NetworkCommissioningStatus networkingStatus = 0;
optional CHAR_STRING debugText = 1;
optional WiFiInterfaceScanResult wiFiScanResults[] = 2;
optional ThreadInterfaceScanResult threadScanResults[] = 3;
}

response struct NetworkConfigResponse {
response struct NetworkConfigResponse = 5 {
NetworkCommissioningStatus networkingStatus = 0;
optional CHAR_STRING debugText = 1;
optional INT8U networkIndex = 2;
}

response struct ConnectNetworkResponse {
response struct ConnectNetworkResponse = 7 {
NetworkCommissioningStatus networkingStatus = 0;
optional CHAR_STRING debugText = 1;
nullable INT32S errorValue = 2;
Expand Down Expand Up @@ -781,21 +781,21 @@ server cluster OperationalCredentials = 62 {
OCTET_STRING trustedRootIdentifier = 0;
}

response struct AttestationResponse {
response struct AttestationResponse = 1 {
OCTET_STRING attestationElements = 0;
OCTET_STRING signature = 1;
}

response struct CertificateChainResponse {
response struct CertificateChainResponse = 3 {
OCTET_STRING certificate = 0;
}

response struct CSRResponse {
response struct CSRResponse = 5 {
OCTET_STRING NOCSRElements = 0;
OCTET_STRING attestationSignature = 1;
}

response struct NOCResponse {
response struct NOCResponse = 8 {
OperationalCertStatus statusCode = 0;
optional fabric_idx fabricIndex = 1;
optional CHAR_STRING debugText = 2;
Expand Down
Loading