my esp32s3 is not connecting to the coreMQTT

0

I am using https://github.com/FreeRTOS/iot-reference-esp32c3 library for esp32 OTA updates. I have followed all the instructions in the getting start guide, but the device does not connect to the core_MQTT Here is the snip from the serial Enter image description here

mzk
asked 8 months ago228 views
1 Answer
0

Hi mzk. It seems that it's the xTlsConnect() call that's failing. Have you provisioned everything?

https://github.com/FreeRTOS/iot-reference-esp32c3/blob/main/GettingStartedGuide.md#2-demo-setup

If so, please try these troubleshooting steps: https://docs.aws.amazon.com/iot/latest/developerguide/diagnosing-connectivity-issues.html

profile pictureAWS
EXPERT
Greg_B
answered 8 months ago
  • I have connected to the endpoint using the following CLI command openssl s_client -connect custom_endpoint.iot.aws-region.amazonaws.com:8443 -CAfile CA.pem -cert cert.pem -key privateKey.pem to connect to the endpoint and the connection was successful. I also tested the AWS server using node-red with the downloaded certificates and keys and the connection was successful. There is some problem on the ESP side, which I am unable to figure out.

  • Hi, I have followed the documentation exactly point to point multiple times, but I am still unable to connect.

  • Hi. It seems you have proven that the cert, keys and IoT policy are all good. It's hard to see how the problem now could be anything other than the configuration/setup of the ESP32S3 device. Cert or key not injected correctly, maybe wrong client ID, something like that.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions