Unable to set hostname
Posted: Sun Dec 05, 2021 10:44 am
Hello,
I'd like to set a hostname for my ESP32 board, and the code I am using is:
After that if I print out the hostname, it's the same as the one I set; however my router just shows the name espressif. If I move the call to config before connect, the result is the same.
Can someone point me in the right direction here. Thanks
EDIT: After resetting the router I can now see the changed hostname.
I'd like to set a hostname for my ESP32 board, and the code I am using is:
Code: Select all
self.wlan_sta.connect(ssid, password)
self.wlan_sta.config(dhcp_hostname = self.hostname)
Can someone point me in the right direction here. Thanks
EDIT: After resetting the router I can now see the changed hostname.