Command Template

The request is intended to obtain list of command templates.

Request Example

&svc=get_cmd_templates&params={
    "id_unit": integer,
    "type": string
}

Parameters

Parameter Description
id_unit Unique Unit ID
type Command Type

Additional Information

Optional Parameter type [gsm, tcp] - filter by type of command.

Server Response

Result:
[
    {
        "id": 11111, // ID of Command Template
        "id_unit": 66780, // Unique Unit ID
        "type_cmd": "tcp", // Type of Command
        "text_cmd": "testCmd", // Command text
        "name_cmd": "test" // Name of Command Template
    },
    ...
]