CPC H04L 41/082 (2013.01) | 17 Claims |
9. A method for communicating with connected devices, the method comprising:
identifying one or more traits for a connected device;
receiving, from a first computing device, an action request, wherein the action request corresponds to a first desired state of the connected device;
receiving, via an internet or cellular data connection, a trait configuration for the one or more traits corresponding to the connected device;
calculating, at a controller, a second desired state for the connected device, wherein the second desired state is calculated based on the action request and the trait configuration for the connected device, and the second desired state differs from the first desired state;
transmitting a first message to the connected device, the first message including an indication of the second desired state;
transmitting a second message to the first computing device, the second message including an indication of an estimated state of the connected device;
receiving a traits payload for the connected device, the traits payload comprising the trait configuration and a state snapshot;
parsing the traits payload, based at least in part on sourcing one or more data contracts, the one or more data contracts selected from a group consisting of configuration property definitions, state property definitions, and action definitions;
receiving additional trait data for the connected device, the additional trait data including information pertaining to one or more validation sources, trait constraints, and action validations; and
validating one or more of a pending state update and a pending property update for the connected device based on the parsed traits payload and the additional trait data.
|