About commands

dev.col a year ago

Does Traccar have a built-in command queue or timeout mechanism for handling cases where a device does not immediately respond to a sent command? If so, is it configurable per protocol or globally?

Anton Tananaev a year ago

We have a queue. You can either enable or disable it. We don't have a timeout.

dev.col a year ago

I have searched the configuration file documentation, but it does not show how to activate or deactivate.

Track-trace a year ago

There a plenty topics about it, but Try

<entry key='commands.queueing'>false</entry>

in the configuration file and restart the server.

dev.col a year ago

Thanks you
Important to update this part Mr. Anton.
https://www.traccar.org/configuration-file/

Anton Tananaev a year ago

Sorry, I actually provided you outdated information earlier. We don't support disabling queue. We did in the past, but not anymore. The configuration file doc is always correct for the latest official release.

Track-trace a year ago

Anton, What actually made you decide to not support disabling command queue anymore?

In the past i often had devices that where switched of directly when they where turned on (and then received the queued poweroff command once it came online).

Anton Tananaev a year ago

To support commands for some devices we have to queue them. For example, OsmAnd protocol. So it's not as simple to have it completely disabled.

Track-trace a year ago

I see, on the other hand when a user only uses their own server for instance with devices which use the watch protocol then the other protocols are not relevant and it would still be a great option to have disable queued commands. Would it be and option to implement it, while other users which for instant use osmand just do not disable it since it was configurable.

Anton Tananaev a year ago

I think a better option would be a timeout. And that's I think what we wanted to implement.

Track-trace a year ago

In that case a timeout means ?

Anton Tananaev a year ago

Means that command will be queued for the timeout period of time. Zero means no queue.

Track-trace a year ago

Ok, that sounds as a great option to