Send comman to custom device

Tibor3 years ago

Hi,
I have a GPS tracking system built for runners, with a raspberry pi base station that communicates with Traccar. I have set it up and I input data to it through OsmAnd protocol, which works fine. I'd like to send commands back to the devices in some way, however I haven't found out what happens if I send a command. I'm using Traccar on Linux and Raspbian, so a good way would be to listen on a socket or something similar to extract the data from the command sent.

Can you give me a hint on how can I "catch" a command with attributes?

Thanks,
Tibor

Anton Tananaev3 years ago

You should receive commands in the HTTP response.

Tibor3 years ago

So If I send in new data from a device, the queued commands will be sent in the HTTP response?
Basically I need to poll the server for commands?

Anton Tananaev3 years ago

Correct.

Tibor3 years ago

Cool, it's working! Thank you Anton!