Not able to connect ESP8266 to AWS CORE

0

Hi I am trying to connect to AWS IOT core with my ESP8266 , but not able to do so. It just prints ............ but not connected , I am not able to figure out what the issue is?

Sidd
asked 2 years ago240 views
1 Answer
0
Accepted Answer

Hi Sidd. You said you use the same code as that question. Some points:

  1. have you created a Thing named ESP8266 in AWS IoT Core?
  2. have you created a certificate and private key and installed them on your device?
  3. is that certificate registered in AWS IoT Core, activated, and attached to your ESP8266 Thing?
  4. are you using the same IoT policy as shown in that other question? is it attached to your certificate? (please be aware that the policy shown in that other question is setup for the ap-south-1 region and it has a fake account number.)
  5. is the MQTT_HOST value in your firmware correct for your account and region?

Have you enabled CloudWatch logging? https://docs.aws.amazon.com/iot/latest/developerguide/monitoring_overview.html Do you have any errors in CloudWatch?

profile pictureAWS
EXPERT
Greg_B
answered 2 years ago
    1. Yes, I have created, the thing and attached the policy accordingly. 2.Yes installed the certificate while creating the thing.
    2. I'm not sure about the third point. How to do that, it is attached to thing I think?
    3. Yes using the same value. 5.Yes copied it directly from the settings.

    Issue may be in 3, 4 point I think.

  • In place of resource ARN I have given '*' , so that It allows everything.

  • The policy needs to have your region and your account number (if you use the specific policy from the other question).

    To check certificate and policy attachment: AWS IoT Core console->All devices->Things->ESP8266->Certificates you should see the ID of the right certificate and Status should be Active. Then click on the Certificate ID and you should see the attached policies.

  • Hi Greg it worked , thanks for helping.

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