-->
Page 4 of 5

Re: How do you REALLY change the host name?

PostPosted: Fri Aug 12, 2016 7:45 pm
by JimDrew
OK, turns out that you only need this line after setting the host name:

WiFi.mode(WIFI_AP_STA);

Re: How do you REALLY change the host name?

PostPosted: Fri Aug 12, 2016 7:46 pm
by martinayotte
To be clear, this is a piece of code from me, which I'm using and don't get the issue !
If you try this code and see that this fix your issue, this probably means doing WiFi.reconnect() AFTER wifi_station_set_hostname(HostName) is the way to fix it.

Re: How do you REALLY change the host name?

PostPosted: Fri Aug 12, 2016 7:47 pm
by martinayotte
JimDrew wrote:OK, turns out that you only need this line after setting the host name:

WiFi.mode(WIFI_AP_STA);


Ah ! Ok !
Glad you've find it !

Re: How do you REALLY change the host name?

PostPosted: Tue Nov 08, 2016 4:26 am
by gianni
Hello, that's correct. Try to reset your router , you'll will see "yourhostname" :-)