setMode

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

Sets the code mode for Telepen symbology.

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

mode

The desired Telepen code mode.


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

Callback-based version of setMode for Java interoperability.

Parameters

deviceId

The identifier of the target device.

mode

The desired Telepen code mode.

callback

Callback to receive CommandResponse.