Send command to vehicle

This API sends a command to a vehicle using a pre-created command template in the Commands module.

How to get data

Method

GET

Request address

To get the data, use the address: https://<server_address>/api/api.php?

Request parameters

  • cmd=send_command — API command to send a command to a vehicle
  • agent_id — vehicle (agent) identifier
  • template_name — name of the pre-created command template
  • node — node number where the command should be executed (optional)
 

Example request

https://<server_address>/api/api.php?cmd=send_command&agent_id=139849&template_name=test123&node=1
Response
{
  "code": 0,
  "msg": null,
  "command_id": 3989
}
In response to the API request, the following is returned:
  • code — result code (0 = success)
  • msg — server message about the result of the operation
  • command_id — identifier of the sent command