Skip to content

1.9.0 - Socket API Improvements

Compare
Choose a tag to compare
@brentru brentru released this 29 Jan 15:05
735bb43

This release:

  • #31 Improves the Socket API, thanks @xorbit!
    • Adds send_to, recv_from, recv_into, recvfrom_into to Socket API for compatibility with CPython socket API
    • Simplifies recv and readline socket methods due to available doing the right thing for both TCP and UDP.
    • connect can now accept domain names
    • Fixed socket __exit__ to only disconnect if a TCP (stream) socket.
    • Fixed socket_available to just report and not flush available UDP data when calling multiple times.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-wiznet5k.

Read the docs for info on how to use it.