Search found 4 matches
- Tue May 05, 2020 10:07 am
- Forum: Other Boards
- Topic: W600 Air602 WiFi - Socket recv() is blocking?
- Replies: 6
- Views: 2871
Re: W600 Air602 WiFi - Socket recv() is blocking?
I found the origin (usocket) of this misunderstanding: socket .setblocking(flag) Set blocking or non-blocking mode of the socket: if flag is false, the socket is set to non-blocking, else to blocking mode. This method is a shorthand for certain settimeout() calls: sock.setblocking(True) is equivalen...
- Tue May 05, 2020 8:11 am
- Forum: Other Boards
- Topic: W600 Air602 WiFi - Socket recv() is blocking?
- Replies: 6
- Views: 2871
Re: W600 Air602 WiFi - Socket recv() is blocking?
Hello roberthh,
thank you very much for pointing out to the fault.
setblocking relates to the connection and not to the socket object!
I also apreciated showing me the handling of no_data.
Full 10 points!
Thank you very, very much!
regards,
Juergen
thank you very much for pointing out to the fault.
setblocking relates to the connection and not to the socket object!
I also apreciated showing me the handling of no_data.
Full 10 points!
Thank you very, very much!
regards,
Juergen
- Mon May 04, 2020 7:41 pm
- Forum: Other Boards
- Topic: W600 Air602 WiFi - Socket recv() is blocking?
- Replies: 6
- Views: 2871
Re: W600 Air602 WiFi - Socket recv() is blocking?
Code: Select all
MicroPython v1.10-284-g2eee4e2-dirty on 2019-11-08; WinnerMicro module with W600
regards Juergen
- Mon May 04, 2020 6:10 pm
- Forum: Other Boards
- Topic: W600 Air602 WiFi - Socket recv() is blocking?
- Replies: 6
- Views: 2871
W600 Air602 WiFi - Socket recv() is blocking?
Hello, with the W600 Air602 WiFi i want to build a TCP to Serial communication device. My problem is that the implementation of data = connection.recv(16) is blocking , when a client is connected. "select","poll" and connection_setblocking(0) samples where not working. In order to not losse serial d...