mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-22 23:07:28 +02:00
mdns: allow mutiple instances with same service type
* Original commit: espressif/esp-idf@b7a99f4658
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
5e087d82d6
commit
b26606252f
@ -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;
|
||||
|
Reference in New Issue
Block a user