circuitpython/ports/rp2/boards/W5500_EVB_PICO
Jim Mussared a377302623 extmod/modnetwork: Add network.hostname() and network.country().
This provides a standard interface to setting the global networking config
for all interfaces and interface types.

For ports that already use either a static hostname (mimxrt, rp2) they will
now use the configured value. The default is configured by the port
(or optionally the board).

For interfaces that previously supported .config(hostname), this is still
supported but now implemented using the global network.hostname.

Similarly, pyb.country and rp2.country are now deprecated, but the methods
still exist (and forward to network.hostname).

Because ESP32/ESP8266 do not use extmod/modnetwork.c they are not affected
by this commit.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-03-01 01:26:17 +11:00
..
board.json rp2/boards/W5500_EVB_PICO: Add new board definition for W5500_EVB_PICO. 2022-08-11 14:12:55 +10:00
manifest.py ports: Make all network-capable boards use bundle-networking. 2023-02-01 12:42:06 +11:00
mpconfigboard.cmake ports: Make all network-capable boards use bundle-networking. 2023-02-01 12:42:06 +11:00
mpconfigboard.h extmod/modnetwork: Add network.hostname() and network.country(). 2023-03-01 01:26:17 +11:00
pins.csv rp2/boards: Add pin CSV files to board definitions. 2023-01-16 11:44:28 +11:00
readme.md rp2/boards/W5500_EVB_PICO: Add new board definition for W5500_EVB_PICO. 2022-08-11 14:12:55 +10:00

Wiznet W5500-EVB-Pico

Network Example

To use network / socket based code, connect ethernet port to network with DHCP running:

>>> import network
>>> nic = network.WIZNET5K()
>>> nic.active(True)
>>> nic.ifconfig()
('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')
>>> nic.ifconfig("dhcp")
('192.168.0.10', '255.255.255.0', '192.168.0.1', '192.168.0.1')
>>> nic.isconnected()
True

At this point standard network communications libraries should work.