lcarli / NodeRedIoTHub

Fork from origin plus changes
Apache License 2.0
14 stars 24 forks source link

Routing Device Messages with IoTHub to different Endpoints #22

Open DanielT2408 opened 6 years ago

DanielT2408 commented 6 years ago

Dear Ladies and Gentlemen I have one Problem. I want route a device Message to different Endpoints . I have a Routing rule with a specific query string. But i need for my Query string the specific condition, wich is send with my data with Node-red. This condition has to send in "appProperties" in a JSON format. I have to add "systemProperties" with contentType and contentEncoding.

Where i have to add in the msg.payload Message this information? Is it already possible to use this node to route messages to various endpoints?

Can someone help me with this problem?

Thank you Best regards, Daniel

maurert commented 5 years ago

Having the same problem. I think the source must be modified to set message.contentEncoding = 'utf-8'; and message.contentType = 'application/json'.

jonathanhoss commented 2 years ago

Where do I change the message.contentEncoding?