MQTT for tracking (device talk to mqtt broker, traccar connect to mqtt broker)

David Colea year ago

Is anyone aware of any devices that use an mqtt broker and publish messages over the mqtt protocol rather than a tcp stream?
I can't tell if this is a real device or not: https://www.omnismartiot.com/Vehicle-GPS-Tracker/o504dwq-4g-gps-tracker-for-vehicle.html

And then a paper like this: https://www.navixy.com/blog/mqtt-gps-devices/ But I can't see any real devices.

The 2nd part of the equation, is could traccar (now, or be modified to) to subscribe to an mqtt broker for messages from a device.

Has the advantages that traccar makes an outgoing connection to a broker, that might be internet facing rather than accepting incoming connection.
And if a device can talk to a broker, I'm hoping that it can understand dns rather than using an ip address.

David Colea year ago

So looking at these which seem to be mqtt based, but traccar is still listing a port (5218)
XG3700 iotm 5218
XG3780 iotm 5218
FMS500 iotm 5218

Does that mean traccar is still expecting something to push the data to that port? Where mqtt based would have been traccar connect to an mqtt broker, and subscribe to a topic - and wait for messages to turn up. No reason to have a listener.

VP4 months ago

You can test 'Sensors Mqtt' app from Google play store. It convert every android mobile in a tracker.

wmfairuz3 months ago

Hi David, did you manage to make XG3780 work with traccar? Do we need mqtt ?