Skip to main content

simulate_lora

Function simulate_lora 

Source
pub fn simulate_lora(
    packets: &[Packet],
    opts: LoraSimOptions,
    rng_seed: Option<u64>,
) -> LoraSimResult
Expand description

Walk a list of packets through a one-way LoRa-style channel. Drops packets per packet_loss, accumulates latency proportional to size / bandwidth_bps. Pure simulation — no IO. The optional rng_seed argument makes the result deterministic for tests.