espconn_gethostbyname

IPQ
Posts: 6
Joined: Wed Apr 06, 2016 7:32 pm

espconn_gethostbyname

Postby IPQ » Tue Apr 26, 2016 6:31 pm

Hello,

I'm using RTOS 1.4 and I have a question about espconn_gethostbyname...

What's the third parameter and what is it used for? :(

espconn_gethostbyname(&user_tcp_conn, NET_DOMAIN, &tcp_server_ip, user_dns_found);

Thank you in advance

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

Re: espconn_gethostbyname

Postby ESP_Faye » Tue May 10, 2016 2:15 pm

Hi,

The third parameter can be used to store the IP address which got by DNS, so that if users call espconn_gethostbyname again, it won't run DNS again, but just use the IP address it already got.

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 236 guests