-
Notifications
You must be signed in to change notification settings - Fork 339
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
Discover Web Things via mDNS #696
Comments
webthing-python and webthing-node have been implemented to broadcast an mDNS service with type |
I was using |
I was also using |
@hobinjk I'm fine with that. Is webthing supposed to be a sub-type? If so, I believe it should be mapping to |
Yep, that works. |
Oh, that's interesting, it should be _webthing._http._tcp, it looks like the comma syntax is just what mdns and the dns-sd utility use internally |
According to this book, you use the comma format when browsing, but on the network, a subtype actually maps to an additional PTR record with the format |
Oh wow this is much more confusing and convoluted than I thought it would be. Thanks for the reference! Do you think it makes more sense as _webthing._sub._http._tcp or as _webthing._tcp? |
It makes more sense to me to do the sub-type. It's a bit easier to do it the other way, but this seems more proper. |
See also https://tools.ietf.org/html/rfc6763 An example in the RFC is Do you think a There appears to be an IANA registry for service types but it doesn't seem to include any sub-types. It doesn't even include http. |
I definitely think the subtype would be good to include, along with the Eddystone beacon format, if that's something we want to push forward. |
And yes, HTTP is included: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=2 But I don't see any subtypes in there. |
This is supported by https://github.com/mozilla-iot/thing-url-adapter |
As a user I want to search for things which are broadcasting their URL on the local network so I can add them to my gateway
Let's experiment with discovering things using mDNS to broadcast their URL.
The text was updated successfully, but these errors were encountered: