Socket
Socket copied to clipboard
TCP and UDP socket examples and helpers for use with CircuitPython.
I managed to get a UDP server working on a Wiznet w5500-evb-pico board. Loaded up CircuitPython 9.0.4 from https://downloads.circuitpython.org/bin/wiznet_w5500_evb_pico/en_GB/adafruit-circuitpython-wiznet_w5500_evb_pico-en_GB-9.0.4.uf2 and the matching Adafruit adafruit_wiznet5k and adafruit_ticks libraries. ```python import board...
```py TIMEOUT = None BACKLOG = 1 MAXBUF = 1 buf = bytearray(MAXBUF) s = pool.socket(pool.AF_INET, pool.SOCK_STREAM) #s.settimeout(TIMEOUT) #s.setblocking(False) s.bind((HOST, PORT)) s.listen(BACKLOG) while True: try: print("Waiting for connection...") conn, addr...
In your explanation you identify ESP32SPI (Nina FW?), ESP32S2, PicoW, Wiznet. But what about ESP32S3 and the old (newly supported again) ESP32? Are they in the same categorie has ESP32S2?