Send Command to Teltonika device

Amiros2 years ago

I would like to send a custom command through the Traccar interface to start or stop the engine. Could you please provide me with the hexadecimal value of these commands?

Anton Tananaev2 years ago

Why hexadecimal? I'm pretty sure it expects text format.

Amiros2 years ago

I've looked through the teltonika documentation and found a few commands such as 'getgps', 'getinfo'... are you sure you're talking about these commands?

Anton Tananaev2 years ago

Don't know, but I'm sure it accepts text.

Amiros2 years ago
Anton Tananaev2 years ago

Looks correct.

Amiros2 years ago

body of send command API:

{
    "id": 0,
    "attributes": {
        "data": "getinfo"
    },
    "deviceId": xxxx,
    "type": "custom",
    "textChannel": false,
    "description": null
}

response 200:

{
    "id": 0,
    "attributes": {
        "data": "getinfo"
    },
    "deviceId": xxxx,
    "type": "custom",
    "textChannel": false,
    "description": null
}
Joysticka year ago
Amirosa year ago

Joystick Thanks a lot