Event

class Event(notificationData: ByteArray) : SensorLegacyNotification

Something the sensor reported happening, such as a measurement being taken or a setting being changed.

Constructors

Link copied to clipboard
constructor(notificationData: ByteArray)

Types

Link copied to clipboard

Kind of event the sensor reported, with the code the device sends it under.

Properties

Link copied to clipboard
val code: Int

Code associated with notification

Link copied to clipboard

Notification data (first byte of notification is omitted)

Link copied to clipboard

Code associated with event

Link copied to clipboard

Event data (first four bytes of notification are omitted)

Link copied to clipboard

Type of event or null if type is unknown

Functions

Link copied to clipboard
open override fun toString(): String