injectPacket

fun injectPacket(packet: MeshPacket)(source)

Inject an arbitrary MeshPacket as if it arrived from the radio. Use this to test flows that consume RadioClient.packets (e.g. RadioClient.textMessages).