Substitute Identifier in Command String

skyking5 years ago

I have a Tracker that uses the 'watch' protocol. I would like to create some commands to configure it or get info.

Command to set Position Upload time is: [SG*1234567890*0009*UPLOAD,10] according to Tracker Command Protocol documentation

Do I create a custom command with data: [SG*{Identifier}*0009*UPLOAD,10] to substitute the Identifier value for the Tracker ID?

Thanks! Loving Traccar - Big Big Kudos to devs...

Anton Tananaev5 years ago

Unfortunately there is no way to have a placeholder for identifier.

skyking5 years ago

So how do we create a command that allows for different devices?

Or do we have to create specific commands with device id as part of command data? (Doesn't work for saved commands if you have either lots of devices or lots of users with a device)

Would be great if it could be done - then I can create several Tracker specific commands and users could send command and it would pick up their Device identifier and insert it into the command string.

skyking5 years ago

Never mind, I see the tracker ID is sent as part of the command string, all user needs to input is command itself (like CR for position report)