Hostname (standard PC-192-168-xxx-xxx)
Re: Hostname (standard PC-192-168-xxx-xxx)
Postby blubb » Wed Jul 01, 2015 5:51 pm
Re: Hostname (standard PC-192-168-xxx-xxx)
Postby blubb » Thu Aug 13, 2015 11:32 pm
Re: Hostname (standard PC-192-168-xxx-xxx)
Postby kolban » Fri Aug 14, 2015 1:58 am
Re: Hostname (standard PC-192-168-xxx-xxx)
Postby ESP_Faye » Fri Aug 14, 2015 4:18 pm
So sorry for the inconvenience. I checked it with our engineer again, esp_iot_sdk_v1.3.0 did not add this optimization.
Here is a patch based on esp_iot_sdk_v1.3.0 to support this new feature.
Please replace it in folder "lib" and add definition below in espconn.h
Code: Select all
void espconn_nbns_init(void)Call it after ESP8266 station connected to AP and got a IP address. For example,
Code: Select all
wifi_station_set_hostname("esp8266");
espconn_nbns_init();
- Attachments
-
- liblwip.a.zip
- (102.74 KiB) Downloaded 385 times
Re: Hostname (standard PC-192-168-xxx-xxx)
Postby blubb » Fri Aug 14, 2015 6:17 pm
When I ping the ESP by host name, Windows tries to ping IP 168.0.135.0 which is not correct. The correct IP would be 192.168.0.135 in my case.
Looking at the IPs I think it was shifted by 1 byte accidentally! So this should be easy to fix if you look at your code.
Re: Hostname (standard PC-192-168-xxx-xxx)
Postby blubb » Sun Aug 16, 2015 10:00 pm
- Do I need to call it every time ESP8266 got an IP?
- Do I need to call it every time I change the host name with wifi_station_set_hostname?
- Or is it enough calling it only once (in user_init() maybe)?
Who is online
Users browsing this forum: No registered users and 27 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.