Skip to content

Commit 58520a7

Browse files
committed
remove log prints from hostByName
1 parent 9012f64 commit 58520a7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,15 +1601,6 @@ static void wifi_dns_found_callback(const char *name, const ip_addr_t *ipaddr, v
16011601
memcpy(&(parameters->addr), ipaddr, sizeof(ip_addr_t));
16021602
parameters->result = 1;
16031603
}
1604-
IPAddress addr;
1605-
addr.from_ip_addr_t((ip_addr_t *)ipaddr);
1606-
Serial.print("dns_found ");
1607-
addr.printTo(Serial);
1608-
if(ipaddr->type == IPADDR_TYPE_V6){
1609-
Serial.print(" type ");
1610-
Serial.print((int)esp_netif_ip6_get_addr_type((esp_ip6_addr_t*)&(ipaddr->u_addr.ip6)));
1611-
}
1612-
Serial.println();
16131604
} else {
16141605
parameters->result = -1;
16151606
}
@@ -1662,13 +1653,6 @@ int WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResult, bool
16621653
err = esp_netif_tcpip_exec(wifi_gethostbyname_tcpip_ctx, &params);
16631654
if (err == ERR_OK) {
16641655
aResult.from_ip_addr_t(&(params.addr));
1665-
Serial.print("dns_cache ");
1666-
aResult.printTo(Serial);
1667-
if(params.addr.type == IPADDR_TYPE_V6){
1668-
Serial.print(" type ");
1669-
Serial.print((int)esp_netif_ip6_get_addr_type((esp_ip6_addr_t*)&(params.addr.u_addr.ip6)));
1670-
}
1671-
Serial.println();
16721656
} else if (err == ERR_INPROGRESS) {
16731657
waitStatusBits(NET_DNS_DONE_BIT, 15000); //real internal timeout in lwip library is 14[s]
16741658
clearStatusBits(NET_DNS_DONE_BIT);

0 commit comments

Comments
 (0)