FakeRadioTransport
In-memory, script-driven RadioTransport for testing.
Allows tests to replay captured frames and control connection state deterministically.
When autoHandshake is true, the transport automatically responds to the two-stage Meshtastic handshake (want_config_id 69420 / 69421) and the get_owner_request admin message, enabling RadioClient.connect to complete without a real radio. The synthesized MyNodeInfo.my_node_num defaults to 1; pass nodeNum to simulate a different identity (e.g. for identity-rebind tests).
Constructors
Properties
Functions
Inject an admin response packet correlated to requestId. The packet is constructed with decoded.request_id = requestId so the engine's CommandDispatcher / processRoutingAck can match it against an outstanding request.
Inject an arbitrary frame as if received from the radio.
Inject a NeighborInfo response correlated to requestId.
Inject a Routing.route_reply correlated to requestId.
Inject a Routing.Ack correlated to requestId (setter ack-style tests).
Inject a Routing error correlated to requestId (failure-mapping tests).
Inject a Telemetry response packet correlated to requestId.
Frames that were sent via send.
Transition to an error state.