CapturedLocalService

class CapturedLocalService(val service: LocalService, val characteristicReads: Map<UUID, suspend LocalCharacteristic.(ConnectedDevice, Int) -> GattResponse.ReadResponse>, val characteristicWrites: Map<UUID, suspend LocalCharacteristic.(ConnectedDevice, ByteArray, Int) -> GattResponse.WriteResponse>, val descriptorReads: Map<UUID, suspend LocalDescriptor.(ConnectedDevice, Int) -> GattResponse.ReadResponse>, val descriptorWrites: Map<UUID, suspend LocalDescriptor.(ConnectedDevice, ByteArray, Int) -> GattResponse.WriteResponse>, val subscribableCharacteristics: Set<UUID>)

The result of buildCapturingLocalService, holding the built LocalService together with every read, write and subscription action captured while building it.

Constructors

Link copied to clipboard
constructor(service: LocalService, characteristicReads: Map<UUID, suspend LocalCharacteristic.(ConnectedDevice, Int) -> GattResponse.ReadResponse>, characteristicWrites: Map<UUID, suspend LocalCharacteristic.(ConnectedDevice, ByteArray, Int) -> GattResponse.WriteResponse>, descriptorReads: Map<UUID, suspend LocalDescriptor.(ConnectedDevice, Int) -> GattResponse.ReadResponse>, descriptorWrites: Map<UUID, suspend LocalDescriptor.(ConnectedDevice, ByteArray, Int) -> GattResponse.WriteResponse>, subscribableCharacteristics: Set<UUID>)

Properties

Link copied to clipboard

the captured read actions per characteristic UUID

Link copied to clipboard

the captured write actions per characteristic UUID

Link copied to clipboard

the captured read actions per descriptor UUID

Link copied to clipboard

the captured write actions per descriptor UUID

Link copied to clipboard
Link copied to clipboard

the UUIDs of the characteristics that registered a subscription action