Skip to content

Commit

Permalink
remove log prints from hostByName
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Jan 11, 2024
1 parent 9012f64 commit 58520a7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions libraries/WiFi/src/WiFiGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1601,15 +1601,6 @@ static void wifi_dns_found_callback(const char *name, const ip_addr_t *ipaddr, v
memcpy(&(parameters->addr), ipaddr, sizeof(ip_addr_t));
parameters->result = 1;
}
IPAddress addr;
addr.from_ip_addr_t((ip_addr_t *)ipaddr);
Serial.print("dns_found ");
addr.printTo(Serial);
if(ipaddr->type == IPADDR_TYPE_V6){
Serial.print(" type ");
Serial.print((int)esp_netif_ip6_get_addr_type((esp_ip6_addr_t*)&(ipaddr->u_addr.ip6)));
}
Serial.println();
} else {
parameters->result = -1;
}
Expand Down Expand Up @@ -1662,13 +1653,6 @@ int WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResult, bool
err = esp_netif_tcpip_exec(wifi_gethostbyname_tcpip_ctx, &params);
if (err == ERR_OK) {
aResult.from_ip_addr_t(&(params.addr));
Serial.print("dns_cache ");
aResult.printTo(Serial);
if(params.addr.type == IPADDR_TYPE_V6){
Serial.print(" type ");
Serial.print((int)esp_netif_ip6_get_addr_type((esp_ip6_addr_t*)&(params.addr.u_addr.ip6)));
}
Serial.println();
} else if (err == ERR_INPROGRESS) {
waitStatusBits(NET_DNS_DONE_BIT, 15000); //real internal timeout in lwip library is 14[s]
clearStatusBits(NET_DNS_DONE_BIT);
Expand Down

0 comments on commit 58520a7

Please sign in to comment.