-
Notifications
You must be signed in to change notification settings - Fork 22
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
Links to devices managed by a device (e.g. a gateway) #91
Comments
I need to address this for my current project. My requirements are:
Since the host portion of the URL implies the gateway, I was thinking of creating a Thing for the gateway device, and then assume that any things on the same host were from that gateway. And then I was going to use the API's in the usual way to interact with the gateway. But it may be more orthogonal to have a "gateway" object at the root, that has a list of things, which in turn have lists of properties/actions/events. But right now the API is not chatty and nice and simple. |
Example from gateway schema being discussed in WebThingsIO/schemas#35
Questions:
|
Hmmmm... If you want to stick with the current naming scheme (even though it's not quite right), you could use Generally speaking, the names don't tend to be verbs, so |
@mrstegeman wrote:
It's very interesting that |
Oh I see, RFC 6690 defines its own file format and a |
I'm actually not opposed to using a |
As suggested in WebThingsIO/gateway#947 we could create a web thing type for Web of Things gateways which includes in its Thing Description links to the things it manages. The gateway web thing type can have actions (such as putting it in pairing mode) and events (such as thingAdded and thingRemoved).
What should this web thing type be called? Is it always a "gateway" (bridging one type of network to another) or is "directory" a better term? (sometimes it may just be a directory of native web things).
Another thing I'm not sure about is whether it's better to have an explicit top level
things
member in the Thing Description, or to add link(s) to thelinks
section with either a single link to a Things Resource or multiple links to individual Thing resources. I suspect using thelinks
member may be easier to get through standardisation than adding a special newthings
member, although we may need to invent another new link relation type for that purpose, e.g.:Creating a
things
link relation would be an obvious addition to the proposedproperties
,actions
andevents
link relations, although to be honest none of these are great link relation names.If each managed thing was provided as a separate link, the existing
item
link relation fromRFC 6573
could be used for this purpose, e.g.:Alternatively, the CoRE (Constrained RESTful Environments) specification (RFC 6690, used by CoAP) specifies a
hosts
link relation type for this purpose, e.g.:This might be something to discuss at the W3C. There's already an example of a
controlledBy
link relation in the Thing Description specification.The text was updated successfully, but these errors were encountered: