Meshtastic App
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Meshtastic App
core-testing
/
org.meshtastic.core.testing
/
FakeRadioTransport
Fake
Radio
Transport
class
FakeRadioTransport
:
RadioTransport
(
source
)
A test double for
RadioTransport
that tracks sent data.
Members
Constructors
Fake
Radio
Transport
Link copied to clipboard
constructor
(
)
Properties
close
Called
Link copied to clipboard
var
closeCalled
:
Boolean
keep
Alive
Called
Link copied to clipboard
var
keepAliveCalled
:
Boolean
sent
Data
Link copied to clipboard
val
sentData
:
MutableList
<
ByteArray
>
Functions
close
Link copied to clipboard
open
suspend override
fun
close
(
)
handle
Send
To
Radio
Link copied to clipboard
open
override
fun
handleSendToRadio
(
p
:
ByteArray
)
keep
Alive
Link copied to clipboard
open
override
fun
keepAlive
(
)
start
Link copied to clipboard
open
fun
start
(
)