Cloud Event Element
The Cloud Event element is used to send events 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 Event element is located in the Element Toolbox within Studio’s Embedded and Application tabs. When a Cloud Event 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 Event 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 Event element used between the Embedded and Cloud tab connects directly to Atmosphere over Wi-Fi and bypasses the project’s app entirely.
The Cloud Event element is only available within the Embedded tab for devices that support Wi-Fi in Atmosphere. Likewise, some properties of the Cloud Event element are only available on specific tabs, and are notated as such below.
The following properties can be changed for the Cloud Event 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 Events 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 Events 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 Event polls the device for data. This is used for Cloud Events between the Application tab and Cloud tab.
The following triggers are available to execute events from within the Cloud Event element:
Execute an event when the source element connected to the Cloud Event triggers.
Event Received (Application tab only)
Execute an event when the Cloud Event receives data.
Event Queued (Cloud tab only)
Execute an event when the Cloud Event queues data to be sent to the device.
The following abilities are available for the Cloud Event element when its source element triggers:
Trigger the element(s) that follow the Cloud Event element.
Send Event (Cloud tab only)
Send data to the connected device.