Other Parts Discussed in Thread: CC3220SF, UNIFLASH
Azure sdk = azure_cc3220_2_10_00_04
simplelink sdk = simplelink_cc32xx_sdk_2_40_01_01
servicepack = sp_3.10.0.5_2.0.0.0_2.2.0.6.bin
Azure example = iothub_client_sample_mqtt
I imported (iothub_client_sample_mqtt) example.
Modified :
- wifi config(ssid,password,security)
- connectionString = "HostName=xxxxxx.azure-devices.net;DeviceId=mydevicex;SharedAccessKey=42PsE57NonbULyT/UwFrAVUGNSakv8gkKXr+ujklsdg=";
- sprintf_s(msgText, sizeof(msgText), "{\"deviceId\":\"mydevicex\",\"windSpeed\":%.2f,\"temperature\":%.2f,\"humidity\":%.2f}", avgWindSpeed + (rand() % 4 + 2), temperature, humidity);
Output is :
[Cortex_M4_0] Starting the iohub_client_sample_mqtt example Current time: Fri Feb 22 10:34:14 2019 CC32XX has connected to AP and acquired an IP address. IP Address: 192.168.3.150 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.
I checked with azure side connecting using connection string and sending data receiving data.
Questions:
- I am not getting conformation SendConfirmationCallback not calling i checked azure side also showing disconnected only why i am not able to connect ?
- I missed any thing ?
Thank You
Vasu