modified by ohneta
Dependents: HelloESP8266Interface_mine
Fork of ESP8266Interface by
Diff: ESP8266Interface.cpp
- Revision:
- 29:f2ae8f47729b
- Parent:
- 28:6426873b21bd
- Child:
- 30:fd77d067f5ab
--- a/ESP8266Interface.cpp Thu Aug 13 15:36:54 2015 +0000 +++ b/ESP8266Interface.cpp Thu Aug 27 14:32:50 2015 +0000 @@ -143,9 +143,7 @@ void ESP8266Interface::getHostByName(const char *name, char* hostIP) { SocketInterface* sock = this->allocateSocket(SOCK_UDP); - - DnsQuery dns(sock); - dns.gethostbyname(name, hostIP); + DnsQuery dns(sock, name, hostIP); this->deallocateSocket(sock); }