This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3220SF: Azure IoT Connection using MQTT_Webscoket or HTTP_Protocol with Message Properties

Part Number: CC3220SF


Tool/software: Code Composer Studio

Can you provide an example of connecting to the Azure IoT Hub using:

1) MQTT_Websocket_Protocol (port 443)

I tried substitute the transport protocol in the "iothub_clinet_sample_mqtt" from "MQTT_Protocol" to "MQTT_WebSocket_Protocol".
I added the "iothubtransportmqtt_websockets.c" and "http_proxy_io.c" files to the sample.
No communication is established with the IoTHub in either direction.

OR

2) provide workaround for the HTTP_Protocol to receive IoTHub messages with their message properties

Problem lies in "simplelink_cc32xx_sdk_3_20_00_06\source\ti\net\http\httpclient.c"
The http_client allows only the hashed response headers to be stored. The Iot-Hub sends the message properties as part of the response headers in the form { iothub-app-Status: Active }. These get discarded at the http_client level.