PacketHandler

Interface for handling the transmission of packets to the radio and managing the packet queue.

Functions

Link copied to clipboard
abstract fun handleQueueStatus(queueStatus: ERROR CLASS: Symbol not found for QueueStatus)

Processes queue status updates from the radio.

Link copied to clipboard
abstract fun removeResponse(dataRequestId: Int, complete: Boolean)

Removes a pending response for a request.

Link copied to clipboard
abstract fun sendToRadio(packet: ERROR CLASS: Symbol not found for MeshPacket)

Adds a mesh packet to the queue for sending.

abstract fun sendToRadio(p: ERROR CLASS: Symbol not found for ToRadio)

Sends a command/packet directly to the radio.

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

Starts the packet handler with the given coroutine scope.

Link copied to clipboard
abstract fun stopPacketQueue()

Stops the packet queue.