diff --git a/umnp/microcontroller/devices/network/ethernet_w5500.py b/umnp/microcontroller/devices/network/ethernet_w5500.py index bc54763f65a7a0a37f87abb8d852c88ba275baaf..29de738914523c145384913ac677f95b2abeb079 100644 --- a/umnp/microcontroller/devices/network/ethernet_w5500.py +++ b/umnp/microcontroller/devices/network/ethernet_w5500.py @@ -31,6 +31,9 @@ class EthernetW5500(EthernetAdapter): if dhcp: self.enable_dhcp() + def set_network(self, ip: str, subnet_mask: str, gateway: str, dns: str): + self._nic.ifconfig((ip, subnet_mask, gateway, dns)) + def enable_dhcp(self): while True: print("Requesting IP via DHCP")