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

MQTT error handling #19

Open
elecaude opened this issue Nov 18, 2019 · 4 comments
Open

MQTT error handling #19

elecaude opened this issue Nov 18, 2019 · 4 comments

Comments

@elecaude
Copy link

In the case of observations inserted via MQTT it would be interesting to have a specific MQTT topic for error handling.
Currently, we can just know the new observations inserted by subscribing to the insertion topic but in case of error, we have no information.

@hylkevds
Copy link
Collaborator

MQTT has no way to send messages to a single user. So when an insertion over MQTT fails, there is no way for the server to tell the user. This is something that is possible for the new MQTT version 5 that was recently released. There is an issue for STA v2.0 that addresses this.

Adding an error topic is not that useful. It would be hard to figure out which error was caused by which insert attempt. It would also potentially expose sensitive information to all users.

At the moment, if data is important, it is best to use HTTP for inserts.

@sgrellet
Copy link
Contributor

Link OGC GitHub: opengeospatial/sensorthings#5

@sgrellet
Copy link
Contributor

Could be worked out in a MQTT 5 extension then submitted to the SWG

@sgrellet
Copy link
Contributor

15-078r6 has a direct dependency to MQTT 3.1.1 (even if not mentionned in the 'References' section of the standard) : see
http://www.opengis.net/spec/iot_sensing/1.0/req/create-observations-via-mqtt

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

3 participants