#[unsafe(no_mangle)]pub extern "C" fn pamoja_lora_messages_per_hour(
link: PamojaLoraLink,
payload_len: usize,
duty_cycle_permille: u32,
) -> u64Expand description
Returns how many transmissions of a payload fit in an hour under a duty-cycle limit.
A transmission really costs its airtime plus the silence the limit forces after it.
§Arguments
link- the link settings.payload_len- the payload length in bytes.duty_cycle_permille- the limit in parts per thousand, so10is 1%.
§Returns
The number of whole transmissions an hour, or 0 when the limit is zero.