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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则