executeCommand

abstract suspend fun executeCommand(deviceId: String, command: ScannerCommand): CommandResponse

Sends a command to the connected BLE device.

Return

A CommandResponse indicating the result of the command execution.

Parameters

deviceId

The unique identifier of the BLE device to send the command to.

command

The command to be executed, along with any necessary parameters.

Throws

if the command fails to send or an error occurs.