DSL
DSL for setting up a LocalCharacteristic
Types
Sets up notification to notify all com.splendo.kaluga.bluetooth.ConnectedDevice of changes to this LocalCharacteristic whenever a Trigger fires
Functions
Collects a SharedFlow of T and notifies any subscribed com.splendo.kaluga.bluetooth.ConnectedDevice of any changes. Results in a call to notifiable that may only be called once
Collects a StateFlow of T and notifies any subscribed com.splendo.kaluga.bluetooth.ConnectedDevice of any changes. Results in a call to notifiable that may only be called once
Collects a Flow of T and notifies any subscribed com.splendo.kaluga.bluetooth.ConnectedDevice of any changes. Results in a call to notifiable that may only be called once
Consumes a ReceiveChannel of T and notifies any subscribed com.splendo.kaluga.bluetooth.ConnectedDevice of any changes. Results in a call to notifiable that may only be called once
Adds a LocalDescriptor to the characteristic being built This is not supported on iOS and will be ignored there.
Makes this LocalCharacteristic a LocalCharacteristic.Notifiable This method can only be called once.
Makes this LocalCharacteristic readable by a com.splendo.kaluga.bluetooth.ConnectedDevice Cannot be called if readable, or readableAlwaysSuccess has been called before
Makes this LocalCharacteristic readable by a com.splendo.kaluga.bluetooth.ConnectedDevice to always return GattResponse.ReadSuccess Cannot be called if readable, or readableAlwaysSuccess has been called before
Makes this LocalCharacteristic readable by a com.splendo.kaluga.bluetooth.ConnectedDevice to always return GattResponse.ReadSuccess Cannot be called if LocalCharacteristic.DSL.readable, or LocalCharacteristic.DSL.readableAlwaysSuccess has been called before
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.ConnectedDevice Cannot be called if writable or writableAlwaysSuccess has been called before
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.ConnectedDevice Cannot be called if writable has been called before
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.ConnectedDevice and always responds with GattResponse.WriteSuccess Cannot be called if writable or writableAlwaysSuccess has been called before
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.ConnectedDevice and always responds with GattResponse.WriteSuccess Cannot be called if writable has been called before