-
Notifications
You must be signed in to change notification settings - Fork 1.3k
SSL not working when importing Adafruit-azureiot on a rpPico W #9174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm facing the same issue. After searching for long, it does look like this comes from a memory problem. You can try this to check if this is your problem (put this code right before the HTTPS request):
In your particular case, it looks like you are loading a bitmap into memory. There are ways to just read them from disk, so it is an easy fix, hopefully. You can try commenting it out to see if you have enough memory then. |
Remove the code that is not necessary, i.e. scanning networks and pinging google. I would also recommend to remove setting the time from ntp. Also, skip the call to minip.no. If you absolutely need that, query the http version instead of the https version of that service. |
Hi, I kind of gave up since this was for a workshop and I could do the workshop without it. This ticket was more meant as a heads up to developers or whoever cares enough to fix it :) I am pretty sure I checked the gc.mem_free and I think there was enough. I'm still interested in getting evrything to work, but I will have to revisit this later. I thought maybe it was a collision with the libraries and not a memory problem. But I will test this later at some point. :) Thank you for the replies. |
For whatever reasons, less free memory is showing at startup in CP 9 compared to CP 8:
|
This decrease in free memory was explored in #9085. We turned off some new modules in 9.1.0-beta.1. Could you try that version and see if things improve? |
Thanks for the reminder about #9085 9.1.0-beta.1 is the same as 9.0.4 on Pico W:
|
CircuitPython version
Code/REPL
Behavior
Description
SSL not working when importing Adafruit-azureiot on a rpPico W, I get this error when I try to reach a HTTPS-site. When I comment out "from adafruit_azureiot import IoTCentralDevice" and the code running it, it is working. It is also working if I get HTTP-site.
Not a big problem for me since I can use HTTP, but might be a problem someone wants to look at, when I googled it I found very little.
Additional information
No response
The text was updated successfully, but these errors were encountered: