exec

suspend fun exec(cmd: String, argv: Array<String>? = null): McuMgrExecResponse

Executes a shell command.

Parameters

cmd

The command.

argv

The arguments of the command, or null.


suspend fun exec(cmd: String, argv: Array<String>?, timeout: Long): McuMgrExecResponse

Executes a shell command, waiting for the response for the given time.

Parameters

cmd

The command.

argv

The arguments of the command, or null.

timeout

The timeout, in milliseconds.