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
Hostname
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
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
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
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
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 !
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 188 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.