Search found 7 matches

by jphalip
Mon May 10, 2021 12:05 am
Forum: ESP8266 boards
Topic: Issue connecting sockets to some websites
Replies: 8
Views: 8175

Re: Issue connecting sockets to some websites

An update from my research: According to this Github thread , this issue might be due to the fact that the AXTLS library doesn't support ECDHE ciphers. This makes sense as the site that's failing for me indeed uses the following: nmap --script ssl-enum-ciphers -p 443 www.wikimedia.org Starting Nmap ...
by jphalip
Sun May 09, 2021 10:25 pm
Forum: ESP8266 boards
Topic: Issue connecting sockets to some websites
Replies: 8
Views: 8175

Re: Issue connecting sockets to some websites

Thanks for your reply. Regarding the two issues: 1) OSError: (-257, 'RECORD_OVERFLOW') I saw in this thread on Github that this was due to a SSL buffer overflow. So as suggested in that thread I rebuilt Micropython with "-DRT_EXTRA=8192" (Note: I'm using a ESP-01 with a 1MB flash size): docker run -...
by jphalip
Sat May 08, 2021 11:53 pm
Forum: ESP8266 boards
Topic: Issue connecting sockets to some websites
Replies: 8
Views: 8175

Re: Issue connecting sockets to some websites

Just a friendly bump :)

If someone has some clues on how to address this, please let me know. Thanks!
by jphalip
Mon May 03, 2021 2:40 am
Forum: ESP8266 boards
Topic: Issue connecting sockets to some websites
Replies: 8
Views: 8175

Issue connecting sockets to some websites

Hi, I'm using a fresh install of esp8266-1m-20210418-v1.15.bin on a ESP-01 with 1MB flash and I'm having some issues opening sockets to some websites. Here's the basic code: def socket_connect(hostname): addr = socket.getaddrinfo(hostname, 443)[0][-1] s = socket.socket() s.connect(addr) s = ussl.wra...
by jphalip
Sat May 01, 2021 2:41 pm
Forum: ESP8266 boards
Topic: Unable to upload files to ESP01
Replies: 2
Views: 2742

Re: Unable to upload files to ESP01

Thanks for your reply. My flash size is 1MB. I realized I had installed the wrong Micropython binary. I then installed the one for 1MB boards and it's now working as expected.
by jphalip
Sat May 01, 2021 2:59 am
Forum: ESP8266 boards
Topic: Unable to upload files to ESP01
Replies: 2
Views: 2742

Unable to upload files to ESP01

Hi, I've flashed an ESP01 with the latest version of MicroPython using esptool.py. I can now connect to it using rshell and Thonny, and can also use the REPL. However, I can't seem to be able to copy files to it. With rshell I get this error: cp client.py /pyboard Copying 'client.py' to '/pyboard/cl...
by jphalip
Thu Apr 29, 2021 2:38 am
Forum: General Discussion and Questions
Topic: Number of arguments for `micropython.schedule`
Replies: 1
Views: 1283

Number of arguments for `micropython.schedule`

Hi, The signature of `micropython.schedule()` is `(func, arg)`, i.e. it takes the callback function and a single argument. Is there a technical reason why only a single argument is supported? I have a case where I'd like to pass multiple arguments. I resorted to grouping all the arguments into a tup...