Init Network
December 14, 2021 ยท View on GitHub
This example demonstrates implementing TCP/UDP communication for Raspberry PiPico(RP2040) and Micropython using WIZnet W5100S.
Network activate with DHCP
>>>
>>> import network
>>> nic = network.WIZNET5K(machine.SPI(0), machine.Pin(17), machine.Pin(20))
>>> nic.active(True)
netif link status changed up
netif status changed 0.0.0.0
>>> netif status changed 192.168.10.101

Network activate with Static IP
>>>
>>> nic.ifconfig(('192.168.10.151', '255.255.255.0', '192.168.10.1', '8.8.8.8'))
netif status changed 0.0.0.0
>>>
