-->
Page 1 of 3

How to change name of ESP8266 seen through router?

PostPosted: Tue Jan 24, 2017 8:50 pm
by Dondu
Hi.

I have many ESP8266 works as stations connected to router which sees them as ESP8266F, ESP_1354B8, ESP_8077E4, etc.
Is it possible, to change name of ESP8266 seen through router?

Regards!

Re: How to change name of ESP8266 seen through router?

PostPosted: Wed Jan 25, 2017 12:27 pm
by piersfinlayson
If you're using the SDK use:

Code: Select allwifi_station_set_hostname("your hostname")


before connecting.

Re: How to change name of ESP8266 seen through router?

PostPosted: Wed Jan 25, 2017 10:04 pm
by Dondu
Thank you fo answer.
I'm not using SDK. There is no AT command to do it, isn't it?

If wifi_station_set_hostname make it permanent or only to turnoff power?

Re: How to change name of ESP8266 seen through router?

PostPosted: Thu Jan 26, 2017 6:48 am
by piersfinlayson
Dondu wrote:Thank you fo answer.
I'm not using SDK. There is no AT command to do it, isn't it?

If wifi_station_set_hostname make it permanent or only to turnoff power?


The full AT command set documentation is here:

http://espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf

I don't see any way to change the hostname using those commands.

As far as I am aware wifi_station_set_hostname only changes the hostname until the device reboots. The documentation isn't clear, though.