Protocol
PublishableEvent
public protocol PublishableEvent: Encodable
Used by event types (such as TouchEvent
) to indicate that
they can be published to the device emulator.
Relationships
Conforms To
Encodable
Types Conforming to PublishableEvent
TouchEvent
An event that is sent whenever a device is touched. This event is sent for almost all the available device types (except a few like the counting sensors).
TemperatureEvent
A temperature event that is sent for temperature sensors every heartbeat, and whenever the sensor is touched.
ObjectPresentEvent
An event that is sent whenever an object is close to a proximity sensor or not.
HumidityEvent
A humidity event that is sent for humidity sensors every heartbeat, and whenever the sensor is touched. This event contains both the measured temperature as well as the relative humidity.
ObjectPresentCountEvent
An event that includes the accumulated count of proximity state changes for a Counting Proximity sensor. These events are sent every heartbeat, and not when the sensor is touched or when the state is switched (to save battery life).
TouchCountEvent
An event that includes the accumulated count of touches for a Counting Touch sensor. These events are sent every heartbeat, and not when the sensor is touched (to save battery life).
WaterPresentEvent
An event that indicates whether or not water is present to a Water Detector sensor. This event is sent every heartbeat, and when the sensor is touched.
NetworkStatusEvent
A network status event describes which Cloud Connectors a sensor is connected to, and how strong that connection is. A network status event is sent on every heartbeat, as well as when a sensor is touched.
BatteryStatusEvent
A battery status event is sent quite rarely since the battery life of the sensors lasts up to 15 years. It indicates how much battery life is left in the sensor.
ConnectionStatusEvent
Indicates the current connectivity of a Cloud Connector. This is sent when there is a change in the connectivity of a Cloud Connector.
EthernetStatusEvent
Details about the current ethernet connection status of a Cloud Connector.
CellularStatusEvent
Details about the current cellular connection status of a Cloud Connector.
Requirements
eventType
var eventType: EventType