Device Event Element
The Device Event element is used to send collected device data to Atmosphere, which can then be displayed through the platform’s Dashboard or Devices areas. The Device Event element is most commonly used alongside the cloud storage element to store the embedded data sent to Atmosphere from the Device Event.
The Device Event element is located in the Element Toolbox within Studio’s Embedded and Application tabs. When a Device 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 Device Event element used between the Application tab and Cloud tab 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 Device Event element used between the Embedded tab and Cloud tab is available in Wi-Fi projects, and bypasses the project’s interface entirely.
The Device Event element is only available within the Embedded tab for devices that support Wi-Fi in Atmosphere. Likewise, some properties of the Device Event element are only available on specific tabs, and are notated as such below.
The following properties can be changed for the Device Event element:
The name of the element.
Cloud Driver Instance (Embedded tab Only)
The HTTP driver instance the device uses to send data to Atmosphere. This is available for Device Events between the Embedded tab and Cloud tab. Multiple instance options may be available in this field if a project contains more than one connectivity source, such as access to two Wi-Fi modules, or access to either a Wi-Fi module or Zigbee module.
The following triggers are available to execute events from within the Device Event element:
Execute an event when the source element connected to the Device Event triggers.
Event Sent (Application tab only)
Execute an event when the Device Event sends data to Atmosphere.
Event Received (Cloud tab only)
Execute an event when the Device Event receives data.
The following abilities are available for the Device Event element when its source element triggers:
Trigger the element(s) that follow the Device Event element.
Send Event (Application tab only)
Send data to Atmosphere.