Skip to content
Snippets Groups Projects
Commit 24dc1243 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

w5550: added method to set network properties directly

parent 5c01e184
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment