Descriptor
Declares a descriptor with the given UUID.
Sample code:
val handle = Descriptor(
uuid = <Some UUID>,
permissions = Permission.READ and Permission.WRITE,
)Content copied to clipboard
Return
The handle number of the descriptor.
Parameters
uuid
The UUID of the descriptor.
permissions
Set of permissions of the descriptor.
Declares a descriptor with the given 16 or 32 bit short UUID.
Sample code:
val handle = Descriptor(
shortUuid = <16 or 32-bit UUID>,
permissions = Permission.READ and Permission.WRITE,
)Content copied to clipboard
Return
The handle number of the descriptor.
Parameters
shortUuid
16 or 32-bit UUID of the descriptor.
permissions
Set of permissions of the descriptor.
See also
Declares a descriptor with the given UUID.
Sample code:
Descriptor(
uuid = <Some UUID>,
permission = Permission.READ,
)Content copied to clipboard
Return
The handle number of the descriptor.
Parameters
uuid
The UUID of the descriptor.
permission
The permission of the descriptor.
Declares a descriptor with the given 16 or 32 bit short UUID.
Sample code:
Descriptor(
shortUuid = <16 or 32-bit UUID>,
permission = Permission.READ,
)Content copied to clipboard
Return
The handle number of the descriptor.
Parameters
shortUuid
16 or 32-bit UUID of the descriptor.
permission
The permission of the descriptor.