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
已提問 2 年前檢視次數 262 次
1 個回答
0
已接受的答案

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
專家
Greg_B
已回答 2 年前
    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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南