src/eric7/MicroPython/Devices/MCUScripts/picoWiznetConnectCpy7.py

branch
eric7
changeset 10153
ffe7432f716b
parent 9885
05cbf70e8f10
--- a/src/eric7/MicroPython/Devices/MCUScripts/picoWiznetConnectCpy7.py	Wed Aug 02 17:22:20 2023 +0200
+++ b/src/eric7/MicroPython/Devices/MCUScripts/picoWiznetConnectCpy7.py	Thu Aug 03 17:33:07 2023 +0200
@@ -8,6 +8,7 @@
 
         try:
             ifconfig = wiznet_config.ifconfig
+            hostname = wiznet_config.hostname
         except AttributeError:
             print("The network configuration in 'wiznet_config.py' is invalid.")
             return None
@@ -39,7 +40,7 @@
 
         nic.mac_address = adafruit_wiznet5k._DEFAULT_MAC
         if ifconfig == 'dhcp':
-            nic.set_dhcp(response_timeout=14)
+            nic.set_dhcp(hostname=hostname)
         else:
             nic.ifconfig = (
                 nic.unpretty_ip(ifconfig[0]),

eric ide

mercurial