RemoteCharacteristic
A Characteristic that is accessed remotely by a bluetooth client using BluetoothClient
Constructors
Constructor
Types
A subscription to a com.splendo.kaluga.bluetooth.RemoteCharacteristic. Can be created using RemoteCharacteristic.subscribe if Characteristic.properties contains CharacteristicProperty.Notifiable. Call unsubscribe to remove the subscription. This will automatically stop notification if this is the last remaining subscription to the characteristic.
Result from calling RemoteCharacteristic.subscribe
Properties
The list of RemoteDescriptor available for this characteristic
If true this characteristic has been set to automatically provide updates to its value
Functions
Disables notification or indication for this com.splendo.kaluga.bluetooth.RemoteCharacteristic
Enables notification or indication for this RemoteCharacteristic.
Checks if the characteristic has a given CharacteristicProperty
Requests a read of the value of the attribute from the device and suspends until the value is received.
Requests a read of the a value of T of the attribute from the device and suspends until the value is received.
Requests a read of the a value of T of the attribute from the device and suspends until the value is received.
Starts disabling notification or indication for this com.splendo.kaluga.bluetooth.RemoteCharacteristic
Starts to enable notification or indication for this RemoteCharacteristic.
Creates and emits a ReadAction
Creates and emits a WriteAction to write a given ByteArray
Creates and emits a WriteAction to write a given T
Attempts to subscribe to the characteristic.
Gets a (Flow of) the ByteArray value from a RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected
Gets a (Flow of) T value from a RemoteCharacteristic This method will automatically subscribe/unsubscribe to the RemoteCharacteristic when the Flow is collected
Attempts to write a ByteArray to the attribute on the device and suspends until the write completes.
Attempts to write a value of T to the attribute on the device and suspends until the write completes.