Comments (5)
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.
from azure-event-hubs-c.
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.
EventHub_Issue_38_system_properties_missing.log
from azure-event-hubs-c.
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 azure-iot-c-sdk
repo, the AMQP transport protocol uses properties_set_message_id
function to set on the AMQP message the user-defined message ID of the IOTHUB_MESSAGE_HANDLE
. However in this repo the corresponding properties_get_message_id
is never used when the AMQP message is transformed to a EVENTDATA_HANDLE
.
How can we solve this without having to use a custom property for the message ID ?
Thanks!
from azure-event-hubs-c.
@AntoineGagne
This is from Node, but this is the actual location of the device id.
if (eventData.annotations['iothub-connection-device-id'] === provisionedDevice.deviceId)
@dcristoloveanu & @Benjamin118
from azure-event-hubs-c.
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.
from azure-event-hubs-c.
Related Issues (20)
- All events are sent to the same partition HOT 3
- The instruction link in README.md file is invalid HOT 2
- Building with MinGW on windows HOT 5
- send example when using SAS tokens HOT 3
- Question on the compatibility with ubuntu 12.04 and RT Linux HOT 1
- receiver not working HOT 1
- client crashes during internal server errors on event hub
- EVENTHUBCLIENT_DATA_SIZE_EXCEEDED is not used in the SDK
- The connection was inactive for more than the allowed 300000 milliseconds and is closed by container 'LinkTracker' HOT 4
- AzureEventHubs proxy support with amqp websockets HOT 5
- Send request failing when trying to sending Avro serialized string
- Update azure-c-shared-utility of tag v0.11 HOT 1
- SAS Token 401 unauthorized error HOT 1
- network availability check HOT 3
- Missing build dependency file /configs/azure_iot_build_rules.cmake
- Azure uamqp library: Eventhub crashes on sending data over 1MB HOT 5
- Crash: V0.12.0:Eventhub_sample:send crashes on using sastoken connection. HOT 1
- How to Pass the message received to the user
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-event-hubs-c.