Part Number: SIMPLELINK-CC3220-SDK
Tool/software: TI-RTOS
Hi Sir,
I'm trying to connect my CC3220 to the azure cloud using the “iothub_client_sample_mqtt” example in the azure_cc32xx_2_20_00_05 SDK.
SDK versions are
1) Code Composer Studio 9.0.0
2) simplelink_cc32xx_sdk_3_10_00_04
3) azure_cc32xx_2_20_00_05
The callback function of “ReceiveMessageCallback” is not invoked when the example is executed. The messages are not transmitted to the azure cloud. The console shows the following message.
[Cortex_M4_0] Starting the iohub_client_sample_mqtt example
Starting the iohub_client_sample_mqtt example
Current time: Sun May 19 05:57:20 2019
CC32XX has connected to AP and acquired an IP address.
IP Address: 172.20.10.2
IoTHubClient_LL_SetMessageCallback...successful.
IoTHubClient_LL_SendEventAsync accepted message [0] for transmission to IoT Hub.
IoTHubClient_LL_SendEventAsync accepted message [1] for transmission to IoT Hub.
IoTHubClient_LL_SendEventAsync accepted message [2] for transmission to IoT Hub.
IoTHubClient_LL_SendEventAsync accepted message [3] for transmission to IoT Hub.
IoTHubClient_LL_SendEventAsync accepted message [4] for transmission to IoT Hub.
However, I only modify the program at line 135 as follow.
//if ((iotHubClientHandle = IoTHubClient_LL_CreateFromConnectionString(connectionString, MQTT_Protocol)) == NULL)
if ((iotHubClientHandle = IoTHubClient_LL_CreateFromConnectionString(connectionString, HTTP_Protocol)) == NULL)
The messages can be transmitted to the azure cloud using HTTP protocol.
The console messages show
[Cortex_M4_0] Starting the iohub_client_sample_mqtt example
Current time: Sun May 19 05:55:03 2019
CC32XX has connected to AP and acquired an IP address.
IP Address: 172.20.10.2
IoTHubClient_LL_SetMessageCallback...successful.
IoTHubClient_LL_SendEventAsync accepted message [0] for transmission to IoT Hub.
Confirmation[0] received for message tracking id = 0 with result = IOTHUB_CLIENT_CONFIRMATION_OK
IoTHubClient_LL_SendEventAsync accepted message [1] for transmission to IoT Hub.
Confirmation[1] received for message tracking id = 1 with result = IOTHUB_CLIENT_CONFIRMATION_OK
IoTHubClient_LL_SendEventAsync accepted message [2] for transmission to IoT Hub.
Confirmation[2] received for message tracking id = 2 with result = IOTHUB_CLIENT_CONFIRMATION_OK
IoTHubClient_LL_SendEventAsync accepted message [3] for transmission to IoT Hub.
Confirmation[3] received for message tracking id = 3 with result = IOTHUB_CLIENT_CONFIRMATION_OK
IoTHubClient_LL_SendEventAsync accepted message [4] for transmission to IoT Hub.
Confirmation[4] received for message tracking id = 4 with result = IOTHUB_CLIENT_CONFIRMATION_OK
Has the adapter layer for the CC3220 only been certified for HTTP communication via the Azure IoT Hub client SDK in C?