CmdRequest

Base class for command requests in the BLE Satellite Protocol by Tinno.

This sealed class hierarchy encapsulates the various commands that can be sent to a satellite device using AT command syntax. These commands provide direct control over device hardware functions and configuration.

Inheritors

Types

Link copied to clipboard
@Serializable
object ApnStatus : CmdRequest

Command to query the current Access Point Name (APN) status.

Link copied to clipboard
@Serializable
object ClearData : CmdRequest

Command to clear stored data from the device.

Link copied to clipboard
@Serializable
data class SetApn(val apn: String) : CmdRequest

Command to configure the Access Point Name (APN) for satellite connectivity.

Link copied to clipboard
@Serializable
object TurnOffModem : CmdRequest

Command to power off the satellite modem.

Link copied to clipboard
@Serializable
object TurnOnModem : CmdRequest

Command to power on the satellite modem.

Properties

Link copied to clipboard
abstract val cmd: String

The AT command string to be sent to the device.

Link copied to clipboard

The operation code that identifies the type of request.