File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
examples/query_advertise/main Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ if(${target} STREQUAL "linux")
34
34
target_link_libraries (${COMPONENT_LIB} PRIVATE "-lbsd" )
35
35
endif ()
36
36
37
-
38
37
if (CONFIG_ETH_ENABLED )
39
38
idf_component_optional_requires (PRIVATE esp_eth )
40
39
endif ()
40
+
41
+ idf_component_get_property (MDNS_VERSION ${COMPONENT_NAME} COMPONENT_VERSION )
42
+ target_compile_definitions (${COMPONENT_LIB} PUBLIC "-DESP_MDNS_VERSION_NUMBER=\" ${MDNS_VERSION} \" " )
Original file line number Diff line number Diff line change @@ -314,6 +314,8 @@ void app_main(void)
314
314
ESP_ERROR_CHECK (esp_netif_init ());
315
315
ESP_ERROR_CHECK (esp_event_loop_create_default ());
316
316
317
+ ESP_LOGI (TAG , "mDNS Ver: %s" , ESP_MDNS_VERSION_NUMBER );
318
+
317
319
initialise_mdns ();
318
320
319
321
/* This helper function configures Wi-Fi or Ethernet, as selected in menuconfig.
You can’t perform that action at this time.
0 commit comments