Hi There,
I am trying to connect CC3220S Launchpad board to AWS IoT.
I have followed instruction from the following threads.


But, I do not have success connecting the board to AWS.
Following is the detailed log with ENABLE_IOT_TRACE macro.
startSNTP: Current time: Wed Oct 10 00:12:02 2018
CC32XX has connected to AP and acquired an IP address.
IP Address: 10.160.3.35
Flashing certificate file ...
Successfully wrote file /cert/ca.pem to flash
Flashing certificate file ...
Successfully wrote file /cert/cert.pem to flash
Flashing certificate file ...
Successfully wrote file /cert/key.pem to flash
AWS IoT SDK Version 3.0.1-
FUNC_ENTRY: aws_iot_mqtt_init L#210
FUNC_ENTRY: aws_iot_mqtt_set_connect_params L#139
FUNC_EXIT: aws_iot_mqtt_set_connect_params L#169 Return Code : 0
FUNC_EXIT: aws_iot_mqtt_init L#281 Return Code : 0
Connecting...
FUNC_ENTRY: aws_iot_mqtt_connect L#461
FUNC_ENTRY: aws_iot_mqtt_get_client_state L#63
FUNC_EXIT: aws_iot_mqtt_get_client_state L#68 Return Code : 1
FUNC_ENTRY: aws_iot_mqtt_set_client_state L#110
FUNC_ENTRY: aws_iot_mqtt_get_client_state L#63
FUNC_EXIT: aws_iot_mqtt_get_client_state L#68 Return Code : 1
FUNC_EXIT: aws_iot_mqtt_set_client_state L#135 Return Code : 0
FUNC_ENTRY: _aws_iot_mqtt_internal_connect L#391
FUNC_ENTRY: aws_iot_mqtt_set_connect_params L#139
FUNC_EXIT: aws_iot_mqtt_set_connect_params L#169 Return Code : 0
FUNC_ENTRY: _aws_iot_mqtt_serialize_connect L#161
FUNC_ENTRY: _aws_iot_get_connect_packet_length L#124
FUNC_EXIT: _aws_iot_get_connect_packet_length L#141 Return Code : 52
FUNC_ENTRY: aws_iot_mqtt_internal_init_header L#188
FUNC_EXIT: aws_iot_mqtt_internal_init_header L#264 Return Code : 0
FUNC_ENTRY: aws_iot_mqtt_internal_write_len_to_buffer L#59
FUNC_EXIT: aws_iot_mqtt_internal_write_len_to_buffer L#70 Return Code : 1
FUNC_EXIT: _aws_iot_mqtt_serialize_connect L#245 Return Code : 0
FUNC_ENTRY: aws_iot_mqtt_internal_send_packet L#272
FUNC_EXIT: aws_iot_mqtt_internal_send_packet L#315 Return Code : 0
FUNC_ENTRY: aws_iot_mqtt_internal_wait_for_read L#657
FUNC_EXIT: aws_iot_mqtt_internal_wait_for_read L#674 Return Code : -12
FUNC_EXIT: _aws_iot_mqtt_internal_connect L#426 Return Code : -12
FUNC_ENTRY: aws_iot_mqtt_set_client_state L#110
FUNC_ENTRY: aws_iot_mqtt_get_client_state L#63
FUNC_EXIT: aws_iot_mqtt_get_client_state L#68 Return Code : 2
FUNC_EXIT: aws_iot_mqtt_set_client_state L#135 Return Code : 0
FUNC_EXIT: aws_iot_mqtt_connect L#490 Return Code : -12
ERROR: runAWSClient L#108
Error(-12) connecting to xxxxxxxxxxx.iot.us-west-2.amazonaws.com:8883
FUNC_ENTRY: aws_iot_mqtt_autoreconnect_set_status L#337
FUNC_EXIT: aws_iot_mqtt_autoreconnect_set_status L#342 Return Code : 0
Subscribing...
FUNC_ENTRY: aws_iot_mqtt_subscribe L#301
FUNC_ENTRY: aws_iot_mqtt_is_client_connected L#292
FUNC_EXIT: aws_iot_mqtt_is_client_connected L#323 Return Code : 0
FUNC_EXIT: aws_iot_mqtt_subscribe L#308 Return Code : -13
ERROR: runAWSClient L#126
Error subscribing (-13)
ERROR: runAWSClient L#178
An error occurred in the loop. Error code = -13
I have also updated service pack of the launchpad.
Based on the error, it looks like there is an error while writing/reading to the socket.
Please provide support to solve the issue.