-
Notifications
You must be signed in to change notification settings - Fork 7
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
Gateway Capability Schema #35
Comments
I would add a load level property and event for when "out of storage" |
I think there's a complementary capability here like "Computer" or "OperatingSystem" which has all the nice load, memory, disk, and other system parameters in addition to reboot/shutdown actions. The Gateway capability then could stay limited to only the critical information necessary to be a gateway. I think this would be the list of things, addThing/removeThing/unpairThing actions, and thingAdded/thingRemoved/thingUnpaired/thingUnreachable events. |
Also backup/import and reset ~/.mozilla-iot would be useful too |
Some late feedback... I've provided some feedback on the corresponding spec change but to summarise, in future I think we should restructure this slightly by:
|
What should the properties, actions and events be for the Gateway capability schema? Some thoughts below... Properties
Actions
Events
Questions:
Note: The links member contains links to Thing Descriptions of devices managed by the gateway, as a replacement for the current |
Right now we have nothing. I can think of lots of things that would be hardware-specific, but none that are inherent to any generic gateway. I still think we need a top-level
We do both of these via the REST API right now, by doing
I don't think we currently have any events for the gateway itself, but these would make sense. Again, I think it might make sense to include a thing description with the added event, but not entirely necessary in this case.
This goes back to what I was saying above. It depends on if we want to only assume that a gateway can handle web things, or if it could always handle multiple protocols. Also, for other protocols, we currently use the "pair" action as an indicator that the adapters should perform their device discovery routine and present any new devices that are found.
I don't think it necessarily needs to be a part of any high-level schema. It could just be a standalone action schema that anything could use.
We actually have that in our gateway implementation, although we do it through the things WebSocket. It would definitely be a good formal addition. |
The pair action could be used for auto connecting wifi things to local AP. The thing could connect to the gateway with wifi direct (on a hidden SSID) and the gateway would share SSID and password of its AP. |
Note: I'm currently tracking work on the W3C's WoT Discovery specification which includes a proposed directory API, which as I understand it exposes the directory as a web thing. This may or may not be a starting point for a gateway capability. |
A schema to describe a Web of Things Gateway (with a things resource which lists all the things it exposes).
Could have an action for "reboot".
See also WebThingsIO/api#91
The text was updated successfully, but these errors were encountered: