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年前260ビュー
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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ