mdns: allow mutiple instances with same service type

* Original commit: espressif/esp-idf@b7a99f4658
This commit is contained in:
Jiacheng Guo authored and suren-gabrielyan-espressif committed 2022-05-27 17:44:24 +04:00
1 parent 5e087d82d6
commit b26606252f
4 files changed
+99 -11

No files matched your search

@@ -53,6 +53,9 @@ static void initialise_mdns(void)
//initialize service
ESP_ERROR_CHECK( mdns_service_add("ESP32-WebServer", "_http", "_tcp", 80, serviceTxtData, 3) );
#if CONFIG_MDNS_MULTIPLE_INSTANCE
ESP_ERROR_CHECK( mdns_service_add("ESP32-WebServer1", "_http", "_tcp", 80, NULL, 0) );
#endif
#if CONFIG_MDNS_PUBLISH_DELEGATE_HOST
char *delegated_hostname;