microsoft / vscode-azure-iot-toolkit

Azure IoT Hub extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
Other
73 stars 58 forks source link

Added contentType and contentEncoding to simulator D2C messages. #486

Closed michielvanschaik closed 4 years ago

michielvanschaik commented 4 years ago

Set message contentType to "application/json" and contentEncoding to "utf-8" for JSON formatted simulator D2C messages. This is needed to correctly process messages received by IoTHub and to use IoTHub message routing based on message body.

michielvanschaik commented 4 years ago

It should resolve issue 440.

montgomp commented 4 years ago

This works as expected. Merging in for 2.16.3-rc