We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've just set up an ESP8266 with 4MB of flash using esp8266-20210202-v1.14.bin and I'm trying to run some example code to open a socket for https:
esp8266-20210202-v1.14.bin
import usocket import ssl hostname = 'xwcl.science' s = usocket.socket() ai = usocket.getaddrinfo(hostname, 443) addr = ai[0][-1] print(addr) s.connect(addr) s = ssl.wrap_socket(s)
In the REPL, it all goes well until ssl.wrap_socket:
ssl.wrap_socket
>>> hostname = 'xwcl.science' >>> s = usocket.socket() >>> ai = usocket.getaddrinfo(hostname, 443) >>> addr = ai[0][-1] >>> print(addr) ('104.238.141.27', 443) >>> s.connect(addr) >>> s = ssl.wrap_socket(s) Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: -40
The text was updated successfully, but these errors were encountered:
Hi. There has been many improvements to ESP8266 and ssl over the last years. Is this still a problem on latest MicroPython version?
Sorry, something went wrong.
There is more information, including tests on recent MicroPython in #400 Proposing to close this issue in favor of that one.
No branches or pull requests
I've just set up an ESP8266 with 4MB of flash using
esp8266-20210202-v1.14.bin
and I'm trying to run some example code to open a socket for https:In the REPL, it all goes well until
ssl.wrap_socket
:The text was updated successfully, but these errors were encountered: