Debian Codegraph @

ports/rp2/boards/W5100S_EVB_PICO/readme.md

raw
1 # Wiznet W5100S-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.ifconfig()
11 ('192.168.0.18', '255.255.255.0', '192.168.0.1', '8.8.8.8')
12 >>> nic.dhcp(True)
13 ('192.168.0.10', '255.255.255.0', '192.168.0.1', '192.168.0.1')
14 ```
15 At this point standard network communications libraries should work.