You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a String Echo Request and Echo Response Command to the Unit testing cluster
The Command Request takes a string as argument that is echoed back in
the Command response.
The string can be large to enable Command testing for large payloads
over a TCP-based session.
Example ChipTool invocation:
./chip-tool unittesting string-echo-request "aaaaaaaaaaaaa" <node-id>
<endpoint-id>
./chip-tool unittesting string-echo-request "aaaaaaa...aaaaaa" <node-id>
<endpoint-id> --allow-large-payload true
Copy file name to clipboardexpand all lines: src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java
+40
Original file line number
Diff line number
Diff line change
@@ -20027,6 +20027,28 @@ public void onError(Exception error) {
20027
20027
}
20028
20028
}
20029
20029
20030
+
public static class DelegatedUnitTestingClusterStringEchoResponseCallback implements ChipClusters.UnitTestingCluster.StringEchoResponseCallback, DelegatedClusterCallback {
20031
+
private ClusterCommandCallback callback;
20032
+
@Override
20033
+
public void setCallbackDelegate(ClusterCommandCallback callback) {
20034
+
this.callback = callback;
20035
+
}
20036
+
20037
+
@Override
20038
+
public void onSuccess(byte[] payload) {
20039
+
Map<CommandResponseInfo, Object> responseValues = new LinkedHashMap<>();
20040
+
20041
+
CommandResponseInfo payloadResponseValue = new CommandResponseInfo("payload", "byte[]");
public static class DelegatedUnitTestingClusterTestDifferentVendorMeiResponseCallback implements ChipClusters.UnitTestingCluster.TestDifferentVendorMeiResponseCallback, DelegatedClusterCallback {
20031
20053
private ClusterCommandCallback callback;
20032
20054
@Override
@@ -28434,6 +28456,24 @@ public Map<String, Map<String, InteractionInfo>> getCommandMap() {
0 commit comments