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 tabs. When a cloud command element is added to the canvas, it creates a coupled version in the project’s Cloud tab that bridges the element’s functionality between the Cloud tab and the original tab it came from.
- A cloud command element used between the Application and Cloud tab connects to Atmosphere over BLE using the project’s app (via the Atmosphere app) acting as a gateway between the device and the Atmosphere.
- A cloud command element used between the Embedded and Cloud tab connects directly to Atmosphere over Wi-Fi and bypasses the project’s app entirely.
The cloud command element is only available within the Embedded tab for devices that support Wi-Fi in Atmosphere. Likewise, some properties of the cloud command element are only available on specific tabs, and are notated as such below.
The following properties can be changed for the cloud command element:
The name of the element.
Instance (Embedded tab only)
The HTTP driver instance the device uses to send data to Atmosphere. This is used for cloud commands between the Embedded tab and Cloud tab.
Data Type (Embedded tab only)
The data type Atmosphere uses to send data to the device. This is used for cloud commands between the Embedded tab and Cloud tab. This element includes the following data type options:
Floating Point (32-bit)
Double Floating Point (64-bit)
Raw Binary Data
Time (Application tab only)
The interval of time (in milliseconds) the cloud command polls the device for data. This is used for cloud commands between the Application tab and Cloud tab.
The following triggers are available to execute events from within the cloud command element:
Execute an event when the source element connected to the cloud command triggers.
Command Received (Application tab only)
Execute an event when the cloud command receives data.
Command Queued (Cloud tab only)
Execute an event when the cloud command queues data to be sent to the device.
The following abilities are available for the cloud command element when its source element triggers:
Trigger the element(s) that follow the cloud command element.
Send Command (Cloud tab only)
Send data to the connected device.