Characteristic
Declares a characteristic with the given UUID.
Sample code:
Characteristic(
uuid = <Some UUID>,
properties = CharacteristicProperty.READ and CharacteristicProperty.WRITE,
permissions = Permission.READ and Permission.WRITE,
) {
// Note: Client Characteristic Configuration descriptor is added automatically.
CharacteristicUserDescriptionDescriptor("Some description")
}
Parameters
The UUID of the characteristic.
List of properties of the characteristic.
The permissions of the characteristic.
Scope of the characteristic.
Declares a characteristic with the given 16 or 32 bit short UUID.
Parameters
The 16 or 32 bit short UUID of the characteristic.
List of properties of the characteristic.
The permissions of the characteristic.
Scope of the characteristic.
See also
Declares a characteristic with the given UUID.
Sample code:
Characteristic(
uuid = <Some UUID>,
property = CharacteristicProperty.READ and CharacteristicProperty.NOTIFY,
permission = Permission.READ,
) {
// Note: Client Characteristic Configuration descriptor is added automatically.
CharacteristicUserDescriptionDescriptor("Some description")
}
Parameters
The UUID of the characteristic.
List of properties of the characteristic.
The permission of the characteristic.
Scope of the characteristic.
Declares a characteristic with the given 16 or 32 bit short UUID.
Parameters
The 16 or 32 bit short UUID of the characteristic.
List of properties of the characteristic.
The permission of the characteristic.
Scope of the characteristic.
See also
Declares a characteristic with the given UUID.
Sample code:
Characteristic(
uuid = <Some UUID>,
property = CharacteristicProperty.READ,
permission = Permission.READ,
)
Parameters
The UUID of the characteristic.
List of properties of the characteristic.
The permission of the characteristic.
Scope of the characteristic.
Declares a characteristic with the given 16 or 32 bit short UUID.
Parameters
The 16 or 32 bit short UUID of the characteristic.
List of properties of the characteristic.
The permission of the characteristic.
Scope of the characteristic.
See also
Declares a characteristic with the given UUID without permission to read or write.
Sample code:
Characteristic(
uuid = <Some UUID>,
property = CharacteristicProperty.NOTIFY,
)
Parameters
The UUID of the characteristic.
List of properties of the characteristic.
Scope of the characteristic.
Declares a characteristic with the given 16 or 32 bit short UUID without permission to read or write.
Parameters
The 16 or 32 bit short UUID of the characteristic.
List of properties of the characteristic.
Scope of the characteristic.