How to assign a name to ESP8266 module?

akd.jls
Posts: 2
Joined: Wed Jul 13, 2016 2:15 am

How to assign a name to ESP8266 module?

Postby akd.jls » Wed Jul 13, 2016 1:00 pm

I am looking to assign a name to my ESP8266 module. I would like to access it using the name, not the IP address in Station mode. Any suggestion how to do it?
I am using native code and AT commands. I assigned a fixed IP in my WIFI AP for the ESP8266 module. But don’t know how to give a name to it. I am able to access the module with IP address. But need to access with an assigned name.

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: How to assign a name to ESP8266 module?

Postby ESP_Rubin » Wed Jul 13, 2016 3:01 pm

please use API: wifi_station_set_hostname()

akd.jls
Posts: 2
Joined: Wed Jul 13, 2016 2:15 am

Re: How to assign a name to ESP8266 module?

Postby akd.jls » Wed Jul 13, 2016 7:29 pm

Thanks a lot esp_rubin.

tilz0R
Posts: 38
Joined: Sat Dec 26, 2015 8:36 pm
Contact:

Re: How to assign a name to ESP8266 module?

Postby tilz0R » Thu Jul 14, 2016 6:50 am

This feature should also be added to AT commands version.

diegogonz76
Posts: 3
Joined: Thu Nov 17, 2016 2:19 am

Re: How to assign a name to ESP8266 module?

Postby diegogonz76 » Thu Nov 17, 2016 2:33 am

Hi, I am trying to change the name of my esp8266 station, I have WROOM-02 module. The program compiles, but return value of wifi_station_set_hostname("customname"); is 0(FALSE). I read the name with get_hostname and print it an it is blank.
Can you please help me?
Tell me if you need more information, I am using the newest SDK from Espressif website, newest flash download tool and compiling in ubuntu virtual machine as the documentation recomends. I modified the AT firmware, also the latest version.

Thanks!

Who is online

Users browsing this forum: No registered users and 3 guests