setMode

abstract suspend fun setMode(deviceId: String, mode: Code39Mode): CommandResponse

Sets the mode for Code 39 symbology.

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

mode

The Code39Mode enum value representing the desired mode.


abstract fun setMode(deviceId: String, mode: Code39Mode, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setMode for Java interoperability.

Parameters

deviceId

The identifier of the target device.

mode

The Code39Mode enum value representing the desired mode.

callback

Callback to receive CommandResponse indicating success or failure.