ServerBleGattCharacteristic

A helper class which handles operation which can happen on a GATT characteristic on a server side. Its main responsibility is to handle write/read/notify requests in a synchronous manner, because simultaneous calls will be ignored by Android API. It has DataByteArray value assigned which can change during communication.

Properties

Link copied to clipboard
Link copied to clipboard

Instance id of the characteristic.

Link copied to clipboard

Permissions of the characteristic.

Link copied to clipboard

Properties of the characteristic.

Link copied to clipboard
val uuid: UUID

UUID of the characteristic.

Link copied to clipboard
val value: SharedFlow<DataByteArray>

The last value stored on this characteristic.

Functions

Link copied to clipboard

Finds descriptor of this characteristic based on uuid.

Link copied to clipboard

Sets a local value for this characteristic. A notification/indication won't be send.

Link copied to clipboard

Sets value for this characteristic. If value has notification/indication property then notification with this value will be send.

Link copied to clipboard

Sets value for this characteristic and notify the client.