failure takes places when follow the steps as following:
1.disconnect router with internet
2.power up esp8266. firstly, it is gonna connect with router and then gets ip assigned by router, secondly esp8266 runs DNS request routine which is of course get failed
for the sake of router's disconnecting with internet .
3. reconnect router to internet , esp8266 still runs the routine of DNS requests again and again and prints logs as follows
user_esp_platform_dns_check_cb
get hosted name state = -5
user_esp_platform_dns_found NULL
user_esp_platform_dns_check_cb
get hosted name state = -5
user_esp_platform_dns_found NULL
user_esp_platform_dns_check_cb
get hosted name state = -5
user_esp_platform_dns_found NULL
user_esp_platform_dns_check_cb
get hosted name state = -5
user_esp_platform_dns_check_cb
get hosted name state = -1
user_esp_platform_dns_check_cb
get hosted name state = -1
user_esp_platform_dns_check_cb
get hosted name state = -1
get hosted name state = -1 means the return error code when get_hosted_name recalled
error code:
-1 = ESPCONN_MEM
-5 =ESPCONN_INPROGRESS
only when esp8066 get restarted can it request DNS successfully
esp8266 DNS failed
Re: esp8266 DNS failed
Postby ESP_Faye » Thu Apr 30, 2015 3:26 pm
Hi,
Here is an example of DNS function http://bbs.espressif.com/viewtopic.php?f=21&t=232
Please have a try , if it still has your problem, please offer your test code and we will help debugging it.
Thanks for your interest in ESP8266 !
Here is an example of DNS function http://bbs.espressif.com/viewtopic.php?f=21&t=232
Please have a try , if it still has your problem, please offer your test code and we will help debugging it.
Thanks for your interest in ESP8266 !
Who is online
Users browsing this forum: No registered users and 146 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.