Comments (11)
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.
@brentru Have you had a chance to give this a try recently?
from adafruit_circuitpython_aws_iot.
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.
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.
Made a pull request there to add. adafruit/nina-fw#21
from adafruit_circuitpython_aws_iot.
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.
@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.
@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.
@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.
@darianbjohnson Could you copy and paste the Arduino code you're using?
from adafruit_circuitpython_aws_iot.
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)
- Imprort of MMQTTException is wrong HOT 1
- Missing Type Annotations
- RTD Documentation: Build status not successful HOT 1
- AWS IoT SDK Python V2 Support HOT 1
- Support for ESP32 Direct Boards HOT 2
- AWS_IOT_ERROR ('Error Connection to AWS IoT: ', MQTTException('Repeated connect failures',))
- RootCA missing? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_circuitpython_aws_iot.