-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[DNS-SD] Refresh services on RemoveFabric command #10499
[DNS-SD] Refresh services on RemoveFabric command #10499
Conversation
AddNOC and UpdateNOC commands both cause refreshing DNS-SD services, but RemoveFabric does not remove the obsolete operational node service.
PR #10499: Size comparison from 267951c to 8d3c4e8 34 builds
|
I tried testing using this PR. I am using chip-tool and esp32 for my testing. It's not quite working as expected. From chip-tool I send
After this, when I try to send onoff toggle command, it doesn't succeed but the message still goes to the esp32 while I expect it to not even receive it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really wish the DNS-SD advertisement code could just use the fabric table directly as its backing store.
That would alleviate the need to know when to 'push' updates.
Understood though that the structure of this code doesn't support such a thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a better name for the "redo all advertising" API than "StartServer"....
I think that's only possible with minimal mDNS, but most real devices will probably use their platform APIs like Avahi, OpenThread's SRP or mDNS Responder in which case services must be updated when they change. |
Problem
AddNOC and UpdateNOC commands both cause refreshing DNS-SD services, but RemoveFabric does not remove the obsolete
operational node service.
Change overview
Refresh DNS-SD services on RemoveFabric command from OperationalCredentials cluster.
Testing
Tested manually using nRF Connect examples.
Fixes #10491 although not sure if it's still possible to cherry-pick patches to the TE6 branch...