VSChina / ESP32_AzureIoT_Arduino

The library for ESP32 Azure IoT for Arduino
MIT License
37 stars 43 forks source link

Defining system properties on iotMessage #26

Open olaplassen opened 3 years ago

olaplassen commented 3 years ago

Hi, Is it possible to define contentEncoding(ex: "utf-8") and contentType(ex: "application/json") on the message sent to IoTHub?

I am currently working on an digital twin setup where i am using an ESP32 with a BME280 sensor, where IoThub fires an event which runs an Azure function which in turn updates my digital twin values. I am able to publish the messages to IoThub but my function cant read them because the encoding an contentType isn't defined.

Thanks in advance.