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. If an embedded device has the ability to send Cloud Events then the element will appear in the embedded element toolbox. 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. For API Projects the Cloud Event is available in the cloud plane and allows the user to create a Cloud Event without requiring the coupled element to be set.
- 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.
- A Cloud Event element is used in an API Project to allow creating Cloud Events that can then be retrieved via the API.
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.