So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By piersfinlayson
#61511 If you're using the SDK use:

Code: Select allwifi_station_set_hostname("your hostname")


before connecting.
User avatar
By piersfinlayson
#61564
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.