From 67370e763fc5806bf331a63bb966a98706322434 Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Fri, 17 Nov 2023 11:33:21 +0800 Subject: [PATCH] fix(mdns): define CONFIG_LWIP_IPV4 in mdns_private.h if it is not defined for IDF v5.0 --- .../mdns/examples/query_advertise/main/mdns_example_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdns/examples/query_advertise/main/mdns_example_main.c b/components/mdns/examples/query_advertise/main/mdns_example_main.c index a6aaea2d4c5..4b1a2da8006 100644 --- a/components/mdns/examples/query_advertise/main/mdns_example_main.c +++ b/components/mdns/examples/query_advertise/main/mdns_example_main.c @@ -241,7 +241,7 @@ static void query_mdns_host(const char *host_name) struct esp_ip4_addr addr; addr.addr = 0; - esp_err_t err = mdns_query_a(host_name, 2000, &addr); + esp_err_t err = mdns_query_a(host_name, 1000, &addr); if (err) { if (err == ESP_ERR_NOT_FOUND) { ESP_LOGW(TAG, "%s: Host was not found!", esp_err_to_name(err));