-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Receiving Category information with Flat topic mode #45
Comments
@benaish I agree that each message should contain Category. I'm looking at how to handle the MQTT Json to contain Category but the regular Json (sent over Http) to not contain Category since it is part of a full Response Document as opposed to MQTT that only sends the Entity. My approach will most likely be to use an Options list (KeyValuePair) to pass a flag to the JsonEntityFormatter.Format(IEnumerable observations). I have a similar Options list for other methods in the EntityFormatter class. I should have this added in a new release over the weekend. Let me know if you have any further thoughts on how to handle this or if you have any other questions. Thanks, |
…ryOutput' option for JSON used for MQTT to address issue #45
I just published the new 5.4.0 Release that contains this fix as well as some other additions to the MQTT implementation. More information can be found Here. Let me know if this is what you were looking for. Thanks, |
That's great, I will look into it! Thanks, |
I'm using the Flat topic mode due to level limitation in AWS IoT Core.
By doing that I'm losing important information that i would like to get as part of each message - Category (Event/Sample/..). It would be great to keep getting this information also on the flat topic mode. Another option could be to get this as part of the payload - but currently the Json formatter skips the Category when creating the payload out of the observation:
return CreateMessage(topic, Formatters.EntityFormatter.Format(documentFormatterId, observation));
Related to a discussion in issue #42
The text was updated successfully, but these errors were encountered: