Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topic in HTTP mode #760

Closed
davcx opened this issue Nov 7, 2019 · 4 comments
Closed

topic in HTTP mode #760

davcx opened this issue Nov 7, 2019 · 4 comments

Comments

@davcx
Copy link

davcx commented Nov 7, 2019

Hi,
I'm a new owntracks user, and it is working very well.
Reading the documentation (traccar section booklet) it seems that in Private HTTP mode the topic should be present in order to permit the identification the device instead the TID.
ie:
{"lon":2.29513,"lat":48.85833,"_type":"location","tst":1497476456, "tid":"JJ"}
or
{"lon":2.29513,"lat":48.85833,"_type":"location","topic":"owntracks/jane/phone", "tid": "JJ"}

The documentation recommends using Private HTTP mode for Android 6 and above, but the topic is mentioned and descripted only for MQTT mode.
Is there any flag to add the topic in POST payload for this mode?
Thanks

@jpmens
Copy link
Member

jpmens commented Nov 9, 2019

The topic is not required for Traccar, IIRC; we used it in our iOS app to uniquely identify a payload.

@jpmens
Copy link
Member

jpmens commented Nov 9, 2019

To clarify: you should be able to use HTTP mode with Android and the TID only with Traccar.

@davcx
Copy link
Author

davcx commented Nov 10, 2019

I agree that it is possible to use the owntrack's TID, though this is long only 2 chars instead on traccar the ID is 16 long.
My question because in the "owntrack's documentation of traccar I/F" there is a specific description with explicit screenshot and example of the topic OR tid use.
thanks for the clarification.

jpmens added a commit to owntracks/booklet that referenced this issue Nov 10, 2019
@jpmens
Copy link
Member

jpmens commented Nov 10, 2019

I've just checked again: the topic is added in iOS only, and not in Android, sorry. (As #512 indicates, there are no plans to do so.)

@jpmens jpmens closed this as completed Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants