GithubHelp home page GithubHelp logo

Comments (11)

virgilvox avatar virgilvox commented on June 19, 2024

I enabled logs and it stops right after it tries to connect to mqtt. Tried secure and insecure. (is_ssl true/false)

12112.4: DEBUG - Attempting to establish insecure MQTT connection...
Traceback (most recent call last):
File "code.py", line 150, in
File "adafruit_aws_iot.py", line 155, in connect
File "adafruit_aws_iot.py", line 155, in connect
AWS_IOT_ERROR: ('Error connecting to AWS IoT: ', MMQTTException('Invalid broker address defined.', RuntimeError('ESP32 not responding',)))

from adafruit_circuitpython_aws_iot.

virgilvox avatar virgilvox commented on June 19, 2024

@brentru Have you had a chance to give this a try recently?

from adafruit_circuitpython_aws_iot.

brentru avatar brentru commented on June 19, 2024

Hi Moheeb, I haven't had a moment to look into this yet. Does it still occur if you use the previous release of Adafruit_CircuitPython_MiniMQTT ?

from adafruit_circuitpython_aws_iot.

virgilvox avatar virgilvox commented on June 19, 2024

So its still an issue. I just checked the nina firmware and dont find the the AWS root cert in there for AWS IoT https://github.com/adafruit/nina-fw/blob/master/data/roots.pem

from adafruit_circuitpython_aws_iot.

virgilvox avatar virgilvox commented on June 19, 2024

Made a pull request there to add. adafruit/nina-fw#21

from adafruit_circuitpython_aws_iot.

virgilvox avatar virgilvox commented on June 19, 2024

Just tested with the changes I made in that pull request, it works now. Closing this issue. Lmk when you get a chance to look at the PR / make a release <3

from adafruit_circuitpython_aws_iot.

darianbjohnson avatar darianbjohnson commented on June 19, 2024

@virgilvox - I'm getting this error (using v 1.6.1 of nini_fw); is there a chance that a new root cert for AWS needs to be added?

from adafruit_circuitpython_aws_iot.

brentru avatar brentru commented on June 19, 2024

@darianbjohnson Hi Darian. IIRC @virgilvox is not currently affiliated with AWS IoT.

Could you ask Amazon AWS IoT for a new root certificate? I will be happy to add it to nina-fw.

from adafruit_circuitpython_aws_iot.

darianbjohnson avatar darianbjohnson commented on June 19, 2024

@brentru I'm not 100% sure it's a root cert issue. The code connects using Arduino.... so in theory that means the issue is not related to the cert. I'll do more research and come back with something more definitive....

from adafruit_circuitpython_aws_iot.

brentru avatar brentru commented on June 19, 2024

@darianbjohnson Could you copy and paste the Arduino code you're using?

from adafruit_circuitpython_aws_iot.

speccy88 avatar speccy88 commented on June 19, 2024

Most of the time, I found out that if the broker is working and the address is fine and I have this error, it is because I needed to set "is_ssl" to False
see the doc : https://circuitpython.readthedocs.io/projects/minimqtt/en/latest/api.html#adafruit_minimqtt.adafruit_minimqtt.MQTT

from adafruit_circuitpython_aws_iot.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.