Search found 6 matches
Search found 6 matches • Page 1 of 1
- Wed Feb 06, 2019 2:15 pm
- Forum: ESP8266 boards
- Topic: A way to catch any exception?
- Replies: 8
- Views: 3048
I've got some code: except OSError as exc: if exc.args == uerrno.EWOULDBLOCK: print ('EWOULDBLOCK') time.sleep(1) # short delay, no tight loops which came from a sample on a forum, but I get errors at the uerrno line. What is the correct implementation for this port of MicroPython, please?
- Tue Feb 05, 2019 8:58 am
- Forum: General Discussion and Questions
- Topic: ESP8266 and _thread
- Replies: 5
- Views: 521
Thank you. I open a socket, and wait for incoming data using socket.receive(). The issue I have is that this method blocks, preventing me from sending data to the same socket until the receive completes. I was hoping to create 2 threads, one for receive and one for sending. How can uasyncio help in ...