For example, i have the same devices on the network with the same preconfigured mdns name. If one is on the network, and i want to put another, it could query the services and check if it has duplicate mdns names. If it has, it would then add +1 or something unique to it's hostname and set it again.
I have checked existing list of Feature requests and the Contribution Guide
[X] I confirm I have checked existing list of Feature requests and Contribution Guide.
It would be even better to be able to query the services BEFORE i setup my own hostname on the network.
Because to setup my hostname, now i have to start the mdns at the same time.
Related area
ESP32
Hardware specification
ESP32
Is your feature request related to a problem?
I wanted to modify the MDNS hostname after it was initialized, but did not find a library way to do it.
Describe the solution you'd like
I'm thinking about a function which would take a new hostname as a parameter and if it has to, restarts the service.
Describe alternatives you've considered
Reiniting the entire mdns service with
MDNS.end();
andMDNS.begin( hostname );
Example:
Additional context
For example, i have the same devices on the network with the same preconfigured mdns name. If one is on the network, and i want to put another, it could query the services and check if it has duplicate mdns names. If it has, it would then add +1 or something unique to it's hostname and set it again.
I have checked existing list of Feature requests and the Contribution Guide