Previous page Control degrees of freedom  Get information about errors Next page

On page:

Get list of presets

GET http://IP-Address:port/prefix/control/telemetry/preset/info/TELEMETRYCONTROLID- gets the list of existing presets.

Sample request:

GET http://IP-Address:port/prefix/control/telemetry/preset/info/HOSTNAME/DeviceIpint.23/TelemetryControl.0

Sample response:

{
"0": "Corridor",
"1": "Entrance",
"4": "Hole in fence"
}

Create and edit preset

GET http://IP-Address:port/prefix/control/telemetry/preset/set/TELEMETRYCONTROLID?parameters&session_id=N - create/edit preset.

Parameters:

pos - position;

label – preset name;

hereinafter session_id=N - session id (see Acquire telemetry control session).

If a preset with specified position already exists, its label will be deleted.

Sample request:

GET http://IP-Address:port/prefix/control/telemetry/preset/set/HOSTNAME/DeviceIpint.23/TelemetryControl.0?pos=0&label=Exit&session_id=0

Go to preset and delete preset

GET http://IP-Address:port/prefix/control/telemetry/preset/{action}/TELEMETRYCONTROLID?parameters&session_id=N - go to preset or delete it.

Parameters:

 {action} – can be go or remove and is used to go to preset or delete it;  

pos – preset position.

Sample request:

Going to preset with pos 1:

GET http://IP-Address:port/prefix/control/telemetry/preset/go/HOSTNAME/DeviceIpint.23/TelemetryControl.0?pos=1&session_id=0 

Deleting of preset with position 2:

GET http://IP-Address:port/prefix/control/telemetry/preset/remove/HOSTNAME/DeviceIpint.23/TelemetryControl.0?pos=2&session_id=0

  • No labels