List connection groups.
in:
{
"function": "Connection/ListGroups",
"id": "some-text-or-number",
"data": {
"StartOffset": 0,
"MaxResults": 3
}
}
out:
{
"function": "Connection/ListGroups",
"id": "some-text-or-number",
"status": 0,
"data": {
"MaxResults": 17,
"GroupName": ["a", "b", "c"]
}
}
List connections.
in:
{
"function": "Connection/List",
"id": "some-text-or-number",
"data": {
"ConnectionGroup: "",
"StartOffset": 0,
"MaxResults": 3
}
}
out:
{
"function": "Connection/List",
"id": "some-text-or-number",
"status": 0,
"data": {
"MaxResults": 17,
"Dp": [
{ "ConnectionActive": true,
"ConnectionName": "a",
"ConnectionGroup": "",
"ConnectionType": "S7",
"DestAddress": "192.168.2.200",
"ReadLevel": 7,
"TransportProtocol": "IP",
"WriteAllowed": true,
"WriteLevel": 7
}, ...
]
}
}
Write a connection.
in:
{
"function": "Connection/Write",
"id": "some-text-or-number",
"data": {
"Base": {
"ConnectionGroup: "",
"ConnectionName: "MyS7",
...
},
"Transport": {
...
}, ...
}
}
out:
{
"function": "Connection/Write",
"id": "some-text-or-number",
"status": 0,
"data": {}
}
Read a connection.
in:
{
"function": "Connection/Read",
"id": "some-text-or-number",
"data": {
"ConnectionGroup: "",
"ConnectionName: "MyS7",
}
}
out:
{
"function": "Connection/Read",
"id": "some-text-or-number",
"status": 0,
"data": {
"Base": {
"ConnectionGroup: "",
"ConnectionName: "MyS7",
...
},
"Transport": {
...
}, ...
}
}
Delete a connection.
in:
{
"function": "Connection/Delete",
"id": "some-text-or-number",
"data": {
"ConnectionGroup: "",
"ConnectionName: "MyS7",
}
}
out:
{
"function": "Connection/Delete",
"id": "some-text-or-number",
"status": 0,
"data": {}
}