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 successfullyStatistics: Posted by mikewang — Thu Apr 30, 2015 1:37 pm
]]>