Search found 3 matches

by derp
Fri May 29, 2020 11:34 am
Forum: ESP8266 boards
Topic: ssl_handshake_status: -256
Replies: 3
Views: 4411

Re: ssl_handshake_status: -256

In the ESP8266 port, MicroPython uses the axtls library to do SSL. In axtls, SSL_ERROR_CONN_LOST is defined as -256. Also, EIO tells us that the error is related to input and/or output. So, making an educated guess, I think this is happening because ssl.wrap_socket expects s to be connected already,...
by derp
Fri May 22, 2020 11:02 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio --- implementation of interrupts
Replies: 7
Views: 5615

Re: uasyncio --- implementation of interrupts

Thanks, guys. I'm pretty disappointed that poling from within an EventLoop is the "best way" available right now, but it's good to know. Hopefully, this gets addressed soon. Ideally, what I'd like to see is for MP to add the call_soon_threadsafe method to EventLoop (call_soon_threadsafe is available...
by derp
Tue May 19, 2020 3:35 am
Forum: Programs, Libraries and Tools
Topic: uasyncio --- implementation of interrupts
Replies: 7
Views: 5615

Re: uasyncio --- implementation of interrupts

Thanks, pythoncoder. So, are you saying to just poll every 10-100 ms ? That seems kind of wasteful (I think that this would be an issue if you are trying to run on battery). Surely, there is a good way to mix interrupts and asyncio without frequent polling?