Hostname

mjoco

Hostname

Postby mjoco » Mon Aug 24, 2015 2:54 am

Hi,

is it possible to reach ESP-module using hostname instead of IP-address? If now is not, then will it be planned? It would be great to have an AT+ command to setup hostname.

Best Regards

flyfish
Posts: 18
Joined: Mon Aug 10, 2015 10:22 am

Re: Hostname

Postby flyfish » Mon Aug 24, 2015 3:17 pm

How do you want to use hostname? You can ping one domain name and create a tcp using domain name.

for example:

AT+PING="www.yahoo.com"

+55

OK
AT+CIPSTART="TCP","www.yahoo.com",80

CONNECT

OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"TCP","116.214.12.74",80,0

OK

mjoco

Re: Hostname

Postby mjoco » Tue Aug 25, 2015 9:36 pm

Hi,

I thought the hostname of the ESP8266 as station. So when I connect to it, I'd rather use it's hostname instead of IP address (eg. in browser).

Best Regards

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Hostname

Postby ESP_Faye » Wed Aug 26, 2015 11:55 am

Hi,

AT firmware does not support this function by default.

But you could add it by yourself, calling API "wifi_station_set_hostname" to set hostname of ESP8266 station.

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 2 guests