Closed justmobilize closed 6 months ago
@anecdata re-done with all the merges (including the SSL one). Would you be willing to test this again for me?
I apologize for the hard review. With moving a few things at the top, it isn't a simple white space change with it going into the class. I promise I didn't change anything.
This looks good, working for me with...
Hardware config: https://gist.github.com/anecdata/c708dd9e5a0e0b582f01f27d24fc3aab?permalink_comment_id=5004766#gistcomment-5004766
Code: https://gist.github.com/anecdata/f2e10134bb23be029d42f36662043451
Verified at the router that the sessions are cycling through the three ethernet IP addresses in sync with the code.
addendum: HTTPS is also working across all three ethernets. Not sure if it matters, but SSL works using either separate ssl.create_default_context()
for each ethernet, or using a single shared ssl.create_default_context()
.
Same q I asked re ESP32SPI. If this is an incompatible change, then we'll need to change any Guide examples we have. If not, no problem.
For use with: https://github.com/adafruit/Adafruit_CircuitPython_ConnectionManager/pull/11
Converting from the old
adafruit_wiznet5k/adafruit_wiznet5k_socket.py
toadafruit_wiznet5k/adafruit_wiznet5k_socketpool.py
to removeset_interface
and work more like a built-in SocketPool.This also allows one to use multiple WIZNET5K boards at the same time.
General example:
or with the new
ConnectionManager