setReadMode

abstract suspend fun setReadMode(deviceId: String, mode: ReadMode): CommandResponse

Sets the read mode for the scanner.

Return

A CommandResponse indicating the success or failure of the operation.

Parameters

deviceId

The identifier of the target device.

mode

The mode to set for reading, specified by ReadMode.


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

Callback-based version of setReadMode for Java interoperability.

Parameters

deviceId

The identifier of the target device.

mode

The mode to set for reading, specified by ReadMode.

callback

Callback to receive the CommandResponse.