VSChina / ESP32_AzureIoT_Arduino

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

Receiving properties with message from Azure IOT hub #6

Open JB-Mars opened 6 years ago

JB-Mars commented 6 years ago

Hi, I can receive the message when sending a message from the Azure IOT hub to the ESP32 but cannot figure out how to retrieve the properties (key/value) that's part of the message, only thing returned is (const char* payLoad, int size) and payLoad only contains the message. Please see image below, thank you:

image

lirenhe commented 6 years ago

Please follow this example on how to get properties for c2d message: https://github.com/Azure/azure-iot-sdk-c/blob/master/iothub_client/samples/iothub_ll_c2d_sample/iothub_ll_c2d_sample.c