diff --git a/IoTCIntegration/lib/engine.js b/IoTCIntegration/lib/engine.js index f1d23aa..39fb815 100644 --- a/IoTCIntegration/lib/engine.js +++ b/IoTCIntegration/lib/engine.js @@ -46,6 +46,8 @@ module.exports = async function (context, device, measurements, timestamp) { try { const message = new Device.Message(JSON.stringify(measurements)); + message.contentEncoding = 'utf-8'; + message.contentType = 'application/json'; if (timestamp) { message.properties.add('iothub-creation-time-utc', timestamp); diff --git a/README.md b/README.md index d3e5684..9b73aa1 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,7 @@ Function. You can check the integrity of the code being deployed by verifying th of the `iotc-bridge-az-function.zip` file in the root of this repository matches the following: ``` -D400C44AF5C860D7A9504F3C7495FCAC69407ACFD146692936BAF13AD3AE3BEF +510D3252A7DC37F0D07A34A93D09B976BFAF91F13E0E723CCD2A85C1ACC4524E ``` # Contributing diff --git a/iotc-bridge-az-function.zip b/iotc-bridge-az-function.zip index 2710c98..56ffd89 100644 Binary files a/iotc-bridge-az-function.zip and b/iotc-bridge-az-function.zip differ