Cloud Command Element

The cloud command element is used to send commands from Atmosphere to a connected device. This can be used to have the server notify the device to send data to it, or any other function based on what it is connected to.

The cloud command element is located in the Element Toolbox within Studio’s Embedded and Application Views. When a cloud command element is added to the canvas, it creates a coupled version in the project’s Cloud View that bridges the element’s functionality between Cloud View and the original view it came from.

  • A cloud command element used between Application View and Cloud View connects to Atmosphere over BLE using the project’s interface (via the Atmosphere app) acting as a gateway between the device and the Atmosphere.
  • A cloud command element used between Embedded View and Cloud View connects directly to Atmosphere over Wi-Fi and bypasses the project’s interface entirely.
Element Icon
Cloud Command Element

The cloud command element is only available within Embedded View for devices that support Wi-Fi in Atmosphere. Likewise, some properties of the cloud command element are only available on specific views, and are notated as such below.

Properties

The following properties can be changed for the cloud command element:

Name

The name of the element.

Instance (Embedded version only)

The HTTP driver instance the device uses to send data to Atmosphere. This is used for cloud commands between Embedded View and Cloud View.

Data Type (Embedded version only)

The data type Atmosphere uses to send data to the device. This is used for cloud commands between Embedded View and Cloud View. This element includes the following data type options:

  • Void
  • Character
  • Boolean
  • Integer
  • Unsigned Integer
  • Floating Point (32-bit)
  • Double Floating Point (64-bit)
  • Raw Binary Data
  • String

Time (Application version only)

The interval of time (in milliseconds) the cloud command polls the device for data. This is used for cloud commands between Application View and Cloud View.

Triggers

The following triggers are available to execute events from within the cloud command element:

Triggered

Execute an event when the source element connected to the cloud command triggers.

Command Received (Application View only)

Execute an event when the cloud command receives data.

Command Queued (Cloud View only)

Execute an event when the cloud command queues data to be sent to the device.

Abilities

The following abilities are available for the cloud command element when its source element triggers:

Trigger

Trigger the element(s) that follow the cloud command element.

Send Command (Cloud View only)

Send data to the connected device.