get

operator fun Flow<List<Device>>.get(identifier: Identifier): Flow<Device?>

Gets a (Flow of) Device with a given Identifier from a Flow of a list of Device.

Return

the Flow of Device matching the identifier

Parameters

identifier

the Identifier of the Device to get.


@JvmName(name = "getService")
operator fun Flow<List<Service>>.get(uuid: UUID): Flow<Service?>

Gets a (Flow of) Service of a given UUID from a Flow of a list of Service

Return

the Flow of the Service with uuid in the list of Service in the given Flow

Parameters

uuid

the UUID of the Service to get


Gets a (Flow of) AttributeType of a given UUID from a Flow of a list of AttributeType

Return

the Flow of the AttributeType with uuid in the list of AttributeType in the given Flow

Parameters

AttributeType

the type of Attribute to get

ReadAction

the DeviceAction.Read associated with AttributeType

WriteAction

the DeviceAction.Write associated with AttributeType

uuid

the UUID of the AttributeType to get