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.

CC3220: How can I successfully connect to AWS Iot?

Part Number: CC3220

I use the CC3220S LAUNCHXL and I want to follow the example "subscribe_publish_sample" from SimpleLink CC32XX SDK AWS IoT Plugin

I read the document "AWS_Quick_Start_Guide" carefully , I signed up, registered a device and got a certificate for the device.

Then I opened the file aws_iot_config.h, and make the revisions:

#define AWS_IOT_MQTT_HOST              "a2w8gdbg327bxd.iot.ap-southeast-1.amazonaws.com" ///< Customer specific MQTT HOST. The same will be used for Thing Shadow
#define AWS_IOT_MQTT_PORT              8883 ///< default port for MQTT/S
#define AWS_IOT_MQTT_CLIENT_ID         "Test_1" ///< MQTT client ID should be unique for every device
#define AWS_IOT_MY_THING_NAME         "Test_1" ///< Thing Name of the Shadow this device is associated with

I copy the information of my certificate into certs.h one array like this:

const char client_cert_pem[] =

"MIIDWTCCAkGgAwIBAgIUdRSmxn3Zr4pXeEZW6T1WIJFPZlkwDQYJKoZIhvcNAQEL\
BQAwTTFLMEkGA1UECwxCQW1hem9uIFdlYiBTZXJ2aWNlcyBPPUFtYXpvbi5jb20g\
SW5jLiBMPVNlYXR0bGUgU1Q9V2FzaGluZ3RvbiBDPVVTMB4XDTE4MDUyMzE1MDkx\
M1oXDTQ5MTIzMTIzNTk1OVowHjEcMBoGA1UEAwwTQVdTIElvVCBDZXJ0aWZpY2F0\
ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALZaDPCiT+h4Tl/Jag68\
lEEepi5JVk+FtOhk1m9TreIfJo/yXuhSvCxTl8Vc+NnsTEZoYs9qZf5NGPVFrIjW\
7i3yBcVL0FKeA4jH3vvG4gn/6k8dVG+zsIY1c4VTyUWAkRJ0hWl6GbUkz0DElYgr\
/MZA6b4GP6o163GSa4AeI988oBNxl44MZh6b3/drC6g5TmRLNTR0/QxPM1xCiJPG\
1DOao/118JH1x0dBMB7TKhel+f3OqQTyfDPl240Xw8lymZ7WZEythc/TvfPQLVRF\
zGHP41itiK1gzz45lUguQsRWhAPNb+eX2S37dpwp4Rnbshmm9AFLHC+Qg9YTrRIs\
4psCAwEAAaNgMF4wHwYDVR0jBBgwFoAUXiT6JAWe212Mf3XZTcCJsFkuu+YwHQYD\
VR0OBBYEFM2D+zI3PxMcQBfi0o5TiC+4g6ziMAwGA1UdEwEB/wQCMAAwDgYDVR0P\
AQH/BAQDAgeAMA0GCSqGSIb3DQEBCwUAA4IBAQAihPVR8cPMXToz/L5bygfq/D66\
KRY//+0Q3kQM6AVXzsHbZ/t+Vvs7FmPZe0N0eeGmAqM51/wrOSzJicm/yM2RW7By\
TFSUpRPM0flO9gU/GH6U0mu77ecW8CbQXs9unmZLYe94pb6XGHl1kCZ3F/xGIyhM\
koKAi2npb3ZHdwlQTfBUwyWhWY0r1Yu7XxowptbCGLD9jGqLeSKFMr2RhSSyF3Fz\
vsPu2ryNFjJXPQQylgEXlrYHZJOVecYUFR+gRP2uOVC/pnI7a+hsMD5b7KVwlyz0\
4TShU0r5z1g8kWgRiHpdETvIQtjQ0Fi4MkGb5hQMadPl/zd+eddSWQg1m6K6";

After doing this (also updated the Wi-Fi SSID and SECURITY_KEY macros)

The information from UART is

Error (-24) connect to a2w8gdbg327bxd.iot.ap-southeast-1.amazonaws.com:8883

Could anyone tell me that if I did something wrong or miss something?

Thanks a lot

Wong Ju