Cloud Initiated

The :command Stream can be used to push changes to the device that are not written to device storage (so the value will revert on restart). Accessing the :command stream is an ad hoc way to read or write to a Resource.

You can access Events in the :command Stream in two ways:

  • From within a Cloud Action using Event.get(). Note that typically you would use a Cloud Action to get an Event from a Stream with data that comes from an Observation, or data that’s coming in from another cloud source. The :command Stream would only let you see the last command sent down to the device.
  • From an external system using the Event REST endpoint.