Is there a simple way to change the host name of the esp32?
Not sure what you mean by hostname? A bit more specific? is it on a web page or boot log or what?
to change hostname
in the .ino file
under // FOCUSER SETTINGS in .ino about line 410? add this line
String hostname = "Daves nyFP2ESP32";
Next setup() Find this line WiFi.mode(WIFI_STA);
Insert this line WiFi.setHostname(hostname); BEFORE the wifi.mode, so it looks like
WiFi.setHostname(hostname); WiFi.mode(WIFI_STA);
Then recompile and upload
more info found here https://randomnerdtutorials.com/esp32-set-custom-hostname-arduino/
perfect thank you
Log in to post a comment.
Is there a simple way to change the host name of the esp32?
Not sure what you mean by hostname?
A bit more specific?
is it on a web page
or boot log or what?
to change hostname
in the .ino file
under // FOCUSER SETTINGS in .ino
about line 410?
add this line
String hostname = "Daves nyFP2ESP32";
Next setup()
Find this line
WiFi.mode(WIFI_STA);
Insert this line
WiFi.setHostname(hostname);
BEFORE the wifi.mode, so it looks like
Then recompile and upload
more info found here
https://randomnerdtutorials.com/esp32-set-custom-hostname-arduino/
Last edit: brownrb 2024-09-20
perfect thank you