Characteristic

Interface representing a Bluetooth GATT characteristic.

Types

Link copied to clipboard
object Uuids

Properties

Link copied to clipboard
abstract val descriptors: List<D>

List of descriptors of this characteristic.

Link copied to clipboard
abstract val instanceId: Int

Instance id of a characteristic.

Link copied to clipboard
abstract val owner: Peer<*>?

The owner of the parent service of this characteristic.

Link copied to clipboard

Characteristic properties.

Link copied to clipboard
abstract val service: AnyService<out Characteristic<D>>

The parent service.

Link copied to clipboard
abstract val uuid: Uuid

Uuid of a characteristic.

Functions

Link copied to clipboard
open fun isReadable(): Boolean

Checks whether the characteristic can be read.

Link copied to clipboard
open fun isRestricted(): Boolean

Returns whether the service is restricted and accessing it will result in a SecurityException.

Link copied to clipboard

Checks whether the characteristic can be subscribed to.

Link copied to clipboard
open fun isWritable(): Boolean

Checks whether the characteristic can be written to.