GattService


class GattService


Represents a Bluetooth GATT service.

Summary

Public constructors

GattService(uuid: UUID, characteristics: List<GattCharacteristic>)

Public functions

GattCharacteristic?

Gets a GattCharacteristic in the service with the given UUID.

Public properties

List<GattCharacteristic>

a list of characteristics included in the service

UUID

the UUID of the service

Public constructors

GattService

Added in 1.0.0-alpha02
GattService(uuid: UUID, characteristics: List<GattCharacteristic>)

Public functions

getCharacteristic

Added in 1.0.0-alpha02
fun getCharacteristic(uuid: UUID): GattCharacteristic?

Gets a GattCharacteristic in the service with the given UUID.

If the service includes multiple characteristics with the same UUID, the first instance is returned.

Public properties

characteristics

Added in 1.0.0-alpha02
val characteristicsList<GattCharacteristic>

a list of characteristics included in the service

uuid

Added in 1.0.0-alpha02
val uuidUUID

the UUID of the service