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
posta 2 anni fa262 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
Greg_B
con risposta 2 anni fa
    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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande