traccar / traccar

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
5.16k stars 2.56k forks source link

Traccar as MQTT consumer #5317

Closed fred-gb closed 4 months ago

fred-gb commented 4 months ago

Hi,

Is your feature request related to a problem? Please describe. Not related to a problem

Describe the solution you'd like A device publish on MQTT broker gps positions. And Traccar read on mqtt topic.

Describe alternatives you've considered Not considering alternative yet.

Additional context I think MQTT protocol is lighter than HTTP. And MQTT retained message can permit more accurate tracing.

Thanks

tananaev commented 4 months ago
  1. What device are you talking about?
  2. MQTT might be lighter than HTTP (even that is questionable), but it's definitely not lighter than raw TCP and UDP that most devices use currently.
  3. How is using MQTT make tracking more accurate?
fred-gb commented 4 months ago

Sorry I expressed myself badly. I was too fast and not enough details.

  1. What device are you talking about? raspberry pi

  2. MQTT might be lighter than HTTP (even that is questionable), but it's definitely not lighter than raw TCP and UDP that most devices use currently. OK

  3. How is using MQTT make tracking more accurate? I think it's for data tracing. If a component like for example Traccar is offline. Devices can continue to send their position. And when Traccar comes back online, it recovers the position history, so there are no losses.

And I think that MQTT is the protocol suitable for IOT. So I thought this option could have additional value.

THANKS

tananaev commented 4 months ago

We have more than 250 different device communication protocols already, including some MQTT-based. Adding another one without actually a mass-produced device would only make sense if there are good reasons. So far you haven't been able to articulate any reasons.

fred-gb commented 4 months ago

ok Thanks