DeviceState

Enum describing the possible states of the IDeviceCompat

Entries

Link copied to clipboard

The device is disconnected.

Link copied to clipboard

The device is busy establishing a connection with the host device.

Link copied to clipboard

The device is busy; a connection has been opened but services are being discovered.

Link copied to clipboard

The device is busy; a connection has been opened but characteristic notification / subscriptions are pending.

Link copied to clipboard

The device is busy with a data transfer to the host device.

Link copied to clipboard

The device is busy executing a command.

Link copied to clipboard

The device is idle and ready to receive commands. This is the only state where commands can be successfully executed.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.