Closed bablokb closed 2 years ago
This looks good to me. One question: did you also re-test TCP after these changes?
I retested after the first commit, but not after the other two. I will do that on Monday.
I retested with TCP (e.g. localtime example) and can confirm it works.
BTW: you can find my UDP test-program here: https://github.com/bablokb/circuitpython-examples/ (subdirectory esp01-udplogger). Switching to TCP is simply done by changing TYPE_UDP
to TYPE_TCP
in the connect-method.
This PR is a fix for #58. Tested with an ESP01S and a Pico against
netcat -u -l <portnr>
:socket_connect()
saves the connection type as an object attribute and fixes at_response handlingsocket_send()
does not try to read a response (there is no response with UDP), this saves some mssocket_disconnect()
resets saved connection-type