CommandResponse

class CommandResponse(val response: String, val succeeded: Boolean)

A class representing the response of a command sent to a device.

This class holds the response message and a flag indicating whether the command was successful.

Constructors

Link copied to clipboard
constructor(response: String, succeeded: Boolean)

Types

Link copied to clipboard
object Companion

Companion object to create common instances of CommandResponse.

Properties

Link copied to clipboard

The response message from the command. If the command fails, this contains the error message. If successful, it may be empty.

Link copied to clipboard

A flag indicating whether the command succeeded (true) or failed (false).