Setting the DHCP Hostname #11652
Replies: 3 comments 8 replies
-
Setting In v1.20 we made this parameter work the same across all ports (which imposes a maximum length of 15), but I think previously the ESP32 version allowed a longer hostname. |
Beta Was this translation helpful? Give feedback.
-
Does that include rp2 with w5500? Happened to try that yesterday and it failed, I'll double check the host name for dns/dhcp compliance |
Beta Was this translation helpful? Give feedback.
-
I did not know about 15 chars limit for the dhcp name. Is there other limitations? I just rewrote my asynchonous driver, which tries to connect to 2 predefined APs -> [GitHub] (https://github.com/divergentti/Micropython-for-ESP32/blob/main/esp32-bme680-oled/drivers/WIFICONN_AS.py) and perhaps I shall add more error checking to the code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running v1.20.0 on an ESP32 and try to change the device name which shows up at the wifi router it connects to. I see a couple of posts that state you can use .config(dhcp_hostname='insert_hostname_here'. I use this sequence:
unfortunately, using dhcp_hostname= gives me 'ValueError:'. Is this functionality not available for the ESP32? Maybe it is defined differently and I'm using the wrong parameters?
Beta Was this translation helpful? Give feedback.
All reactions