startWrite

Creates and emits a WriteAction to write a given ByteArray

Return

the WriteAction created

Parameters

newValue

the ByteArray to write to the attribute


fun <T> startWrite(serializationStrategy: SerializationStrategy<T>, bluetoothFormat: BluetoothFormat = BluetoothFormat, newValue: T): WriteAction

Creates and emits a WriteAction to write a given T

Return

the WriteAction created

Parameters

serializationStrategy

the SerializationStrategy to use to serialize the value.

bluetoothFormat

the BluetoothFormat to use to serialize the value.

newValue

the T to write to the attribute

Type Parameters

T

the type of the data object to write.


inline fun <T> startWrite(bluetoothFormat: BluetoothFormat = BluetoothFormat, newValue: T): WriteAction

Creates and emits a WriteAction to write a given T

Return

the WriteAction created

Parameters

bluetoothFormat

the BluetoothFormat to use to serialize the value.

newValue

the T to write to the attribute

Type Parameters

T

the type of the data object to write.