Table of Contents

Command History

The request is intended to obtain the history of sending commands.

Request Example

&svc=get_cmd_history&params={
    "id_unit": integer,
    "from": timestamp,
    "to": timestamp
}

Parameters

Parameter Description
id_unit Unique Unit ID
from Start time of command history
to End time of command history

Additional Information

Parameter to is optional. If it is not specified server will take the current date as end time.

Server Response

Result:
[
     {
        "id": 1401034, // Record ID of sent command
        "id_unit": 66780, // Unique Unit ID
        "time_cmd": 1517071718, // Command Creation Time
        "time_send": null, // Command Sending Time
        "type_cmd": "tcp_answer", // Command Type
        "text_cmd": "test", // Command Text
        "info": null // Additional Information
    }, 
    ...
]