-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ESP8266mDNS - Add support for overwriting/removing TXT records #3212
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? No Sign in to your account
Comments
@swarren and @ccooper21 have contributed to mDNS library recently. Maybe they would be willing to implement this? Alternatively, you can get MDNS object into a clean state like this: MDNS = MDNSResponder(); which should delete the old one, freeing all resources, and create a new one. Now if this doesn't work for some reason, feel free to open a new issue :) |
I realize this is probably low priority, but I would like to see support for being able to change or remove TXT records as well. I could not get the suggestion of UPDATE: I have added a method to clear the TXT record as a whole. This will clear all key, value pairs and allow the entire TXT record to be rebuilt as needed. I will submit a pull request. |
@mkillewald
Please suggest if I am wrong or let me know how can I instantly update my client mobile app. |
@romuye123 |
Closing in view of #5442 with a full rewrite of mdns. |
I advertise a device's name on mDNS using
MDNS.addServiceTxt("myservice", "tcp", "name", "Foo");
, but this name can change over time by user input. When calling the method again, another TXT entry is added, but I expected the previous one to be replaced.The text was updated successfully, but these errors were encountered: