| 1 |
# Wiznet W5500-EVB-Pico |
| 2 |
|
| 3 |
## Network Example |
| 4 |
|
| 5 |
To use network / socket based code, connect ethernet port to network with DHCP running: |
| 6 |
|
| 7 |
``` |
| 8 |
>>> import network |
| 9 |
>>> nic = network.WIZNET5K() |
| 10 |
>>> nic.active(True) |
| 11 |
>>> nic.ifconfig() |
| 12 |
('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0') |
| 13 |
>>> nic.ifconfig("dhcp") |
| 14 |
('192.168.0.10', '255.255.255.0', '192.168.0.1', '192.168.0.1') |
| 15 |
>>> nic.isconnected() |
| 16 |
True |
| 17 |
``` |
| 18 |
At this point standard network communications libraries should work. |