CommandSender

Interface for sending commands and packets to the mesh network.

Properties

Link copied to clipboard
abstract var lastNeighborInfo: ERROR CLASS: Symbol not found for NeighborInfo??

The latest neighbor info received from the connected radio.

Link copied to clipboard

Start times of neighbor info requests for duration calculation.

Link copied to clipboard

Start times of traceroute requests for duration calculation.

Functions

Link copied to clipboard
abstract fun generatePacketId(): Int

Generates a new unique packet ID.

Link copied to clipboard
abstract fun getCachedChannelSet(): ERROR CLASS: Symbol not found for ChannelSet

Returns the cached channel set.

Link copied to clipboard
abstract fun getCachedLocalConfig(): ERROR CLASS: Symbol not found for LocalConfig

Returns the cached local configuration.

Link copied to clipboard
abstract fun getCurrentPacketId(): Long

Returns the current packet ID.

Link copied to clipboard
abstract fun requestNeighborInfo(requestId: Int, destNum: Int)

Requests neighbor info from a specific node.

Link copied to clipboard
abstract fun requestPosition(destNum: Int, currentPosition: ERROR CLASS: Symbol not found for Position)

Requests the position of a specific node.

Link copied to clipboard
abstract fun requestTelemetry(requestId: Int, destNum: Int, typeValue: Int)

Requests telemetry from a specific node.

Link copied to clipboard
abstract fun requestTraceroute(requestId: Int, destNum: Int)

Requests a traceroute to a specific node.

Link copied to clipboard
abstract fun requestUserInfo(destNum: Int)

Requests user info from a specific node.

Link copied to clipboard
abstract fun sendAdmin(destNum: Int, requestId: Int = generatePacketId(), wantResponse: Boolean = false, initFn: () -> ERROR CLASS: Symbol not found for AdminMessage)

Sends an admin message to a specific node.

Link copied to clipboard
abstract fun sendData(p: ERROR CLASS: Symbol not found for DataPacket)

Sends a data packet to the mesh.

Link copied to clipboard
abstract fun sendPosition(pos: ERROR CLASS: Symbol not found for org.meshtastic.proto.Position, destNum: Int? = null, wantResponse: Boolean = false)

Sends our current position to the mesh.

Link copied to clipboard
abstract fun setFixedPosition(destNum: Int, pos: ERROR CLASS: Symbol not found for Position)

Sets a fixed position for a node.

Link copied to clipboard
abstract fun setSessionPasskey(key: ERROR CLASS: Symbol not found for ByteString)

Sets the session passkey for admin messages.

Link copied to clipboard
abstract fun start(scope: ERROR CLASS: Symbol not found for CoroutineScope)

Starts the command sender with the given coroutine scope.