-->
Page 1 of 1

WiFi.hostname issues with ESP8266 in Arduino IDE

PostPosted: Mon Aug 15, 2016 2:58 am
by buchacho
In the answer here: http://stackoverflow.com/questions/3566 ... tname-mdns it says to use the WiFi.hostname(hostname) function, however it is not reliable for me. Is some kind of delay required? If I put the instruction immediately before WiFi.begin it does not work, if I place it somewhere earlier in my setup, it seems to work.

Also, is there a way to save the hostname in the chip? The SDK has wifi.save(), is there an Arduino equivalent?

Re: WiFi.hostname issues with ESP8266 in Arduino IDE

PostPosted: Mon Aug 15, 2016 11:25 am
by rudy
I have also had problems with WiFi.hostname. Instead I ended up using. wifi_station_set_hostname(strToChar(hostname)); //sdk, non-Arduino function

Read through this thread - viewtopic.php?f=29&t=11124