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.

MSP432E401Y: Unable to connect to AWS IoT Core using MQTT

Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSP-EXP432E401Y, SYSCONFIG

Hello,

I have a MSP-EXP432E401Y Development Kit and am attempting to use the mqtt_client example to communicate with the AWS Iot.

So far I have set up the AWS side with certificates and policies and have verified that they work using an MQTT ide on my computer. The mqtt_client example successfully communicated with a mqtt broker running on the local network using non-secure sockets. The sysconfig was modified to enable secure sockets and the CA, certificate, and private key were all added to the project along with modifying the server address to my AWS link.

Anytime I try to run the code I get a "Connection to broker failed, Error code: -2006" message repeating.

I am not sure what I am doing wrong or what the error codes represent. Any help would be appreciated.

I am using:

Code Composer Studio v12.60

SimpleLink MSP432E4 SDK v4.20.0.12