-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “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? Sign in to your account
add support for TXT records in query responses #3107
Conversation
@me-no-dev if you can spare a bit of time to take a look at this, that would be great! |
Perfect Timing, this is EXACTLY what I need for my latest: to allow my IOT H/W to autoconfigure. However, I think you may have a bug in there... So - I'm a bit of a newbie with github and how it works, so be kind...anyway I grabbed your .h and .cpp files and replaced the standard implemetation and recompiled after adding #define MDNS_DEBUG RX I have a NODE-RED bonjour announcement on "_toiiot._tcp" it has two TXT records, "basename":"lapique","version":"1.0" which are seen by bonjour browser etc they are there! I tried using the snippet from your example which iterates over the TXT by index, but no joy. It appears that the txt String pointers are null. OTOH "by keyword" works fine. So I'm verry happy and shall continue with that method, as its what I wanted anyway, and it works for me, but I thought youd like to know. Many thanks for this, it has saved me days of probable late nights and swearing! The failing code:
And the ouput: .....MDNS listening Reading answers RX: REQ, ID:0, Q:0, A:5, NS:0, ADD:0 String ptrs are null |
Oops! I forgot to "return" in the default case of one of my functions. I'll fix that and update the pull request soon-ish. |
Codecov Report
@@ Coverage Diff @@
## master #3107 +/- ##
========================================
Coverage ? 27.6%
========================================
Files ? 20
Lines ? 3655
Branches ? 678
========================================
Hits ? 1009
Misses ? 2468
Partials ? 178 Continue to review full report at Codecov.
|
I'm still having problems when I use this library with my changes...based on some debugging print statements I've added, I have a memory leak somewhere. I'll need to chase it down. |
ok, should be good now! |
Hope this gets merged soon. I need this functionality as well. |
When will be this feature released? I hope to use this soon. |
I hope that this PR will be merged in 2.4.2 ... |
@mblythe86 could you please resolve the conflicts? |
Closing in favor of #5384 . |
Needed this functionality for a project I'm working on, figured I'd contribute it back.
Not sure whether all of the txt record accessor functions are necessary...I'll let you folks be the judge.