setPreambleFromString

abstract suspend fun setPreambleFromString(deviceId: String, preamble: String): CommandResponse

Sets the preamble formatting using a string.

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

preamble

A string to be used as the preamble.


abstract fun setPreambleFromString(deviceId: String, preamble: String, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setPreambleFromString for Java interoperability.

Parameters

deviceId

The identifier of the target device.

preamble

A string to be used as the preamble.

callback

Callback to receive the CommandResponse.