Skip to content

Commit 67370e7

Browse files
wqx6suren-gabrielyan-espressif
authored andcommitted
fix(mdns): define CONFIG_LWIP_IPV4 in mdns_private.h if it is not defined for IDF v5.0
1 parent 0641701 commit 67370e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mdns/examples/query_advertise/main/mdns_example_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static void query_mdns_host(const char *host_name)
241241
struct esp_ip4_addr addr;
242242
addr.addr = 0;
243243

244-
esp_err_t err = mdns_query_a(host_name, 2000, &addr);
244+
esp_err_t err = mdns_query_a(host_name, 1000, &addr);
245245
if (err) {
246246
if (err == ESP_ERR_NOT_FOUND) {
247247
ESP_LOGW(TAG, "%s: Host was not found!", esp_err_to_name(err));

0 commit comments

Comments
 (0)