-
Notifications
You must be signed in to change notification settings - Fork 17
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
Accessing system properties #38
Comments
When receiving the receiver gets the application properties from the AMQP message, so it should be possible to get all the IoTHub properties that are stuck in the application properties from the event data by using EventData_Properties. IIRC correctly the IoT Hub properties are packaged in the application properties of the AMQP message. I did not get to try the specific property on the latest master. Once I do I’ll reply here. |
Hi everyone, I agree with @AntoineGagne : Iothub client knows the notion of system properties (as MessageId or MessageCorrelationId), not to be confused with user (or custom) properties associated to the message. With using EventData_Properties, we only have access on user properties, and eventDataHandle doesn't contain system properties (see attached log) We need these system properties to check full integrity of received message on eventHub. |
Hi, I did some additional instigation and there is indeed a missing piece here. The properties on a received event does not contains the message ID. I checked in the How can we solve this without having to use a custom property for the message ID ? Thanks! |
@AntoineGagne |
Really using the C SDK to get this isn't the best path. Use something like the azure node event hub sdk which can provide what you need. Probably the C# one does also. |
Hi everyone,
Is there any way to access the system properties (i.e. accessing a property such as
iothub-connection-device-id
). In the other SDKs, I have seen some methods to be able to access them, but I have not seen a way to do the same with this SDK.Thank you!
The text was updated successfully, but these errors were encountered: