PacketHandler

class PacketHandler(packetRepository: Lazy<PacketRepository>, serviceBroadcasts: MeshServiceBroadcasts, radioInterfaceService: RadioInterfaceService, meshLogRepository: Lazy<MeshLogRepository>)

Constructors

Link copied to clipboard
constructor(packetRepository: Lazy<PacketRepository>, serviceBroadcasts: MeshServiceBroadcasts, radioInterfaceService: RadioInterfaceService, meshLogRepository: Lazy<MeshLogRepository>)

Functions

Link copied to clipboard
fun handleQueueStatus(queueStatus: <Error class: unknown class>)
Link copied to clipboard
fun removeResponse(dataRequestId: Int, complete: Boolean)
Link copied to clipboard
fun sendToRadio(p: <Error class: unknown class>)

Send a command/packet to our radio. But cope with the possibility that we might start up before we are fully bound to the RadioInterfaceService

fun sendToRadio(packet: <Error class: unknown class>, getConnectionState: () -> ConnectionState)

Send a mesh packet to the radio, if the radio is not currently connected this function will throw NotConnectedException

Link copied to clipboard