Hello,
Is it possible to send in the mqtt topic the device id, or name, or group?
Like: <entry key='event.forward.topic'>traccar/device_id/events</entry>
And the device_id is the id of the device.
So i have for every device his own topic.
My goal is to bridge topic`s to a other mqtt broker, i have serveral costumers on my traccar and i want to send gpr tracker 1,2,3,4,5 to mqtt broker A and tracker 6,7,8,9,10 to broker B.
And if every device is havint his own topic i can bridge the topics to a other broker.
group_id is also a option with the group id there is less routing(and maybey the group is better then the device_id).
greatings Jos
I wrote a basic http server in python that hooks up to the traccar API and transforms them to MQTT packages. It's running for a couple of years now and works quite well. If you are interested I will upload it to a github repository.
Hello,
Is it possible to send in the mqtt topic the device id, or name, or group?
Like:
<entry key='event.forward.topic'>traccar/device_id/events</entry>
And the device_id is the id of the device.
So i have for every device his own topic.
My goal is to bridge topic`s to a other mqtt broker, i have serveral costumers on my traccar and i want to send gpr tracker 1,2,3,4,5 to mqtt broker A and tracker 6,7,8,9,10 to broker B.
And if every device is havint his own topic i can bridge the topics to a other broker.
group_id is also a option with the group id there is less routing(and maybey the group is better then the device_id).
greatings Jos