Skip to main content

receive_delay_s

Function receive_delay_s 

Source
pub const fn receive_delay_s(coded: u8) -> u8
Expand description

How long a device waits before its first receive window, in seconds.

§Arguments

  • coded - the value the command carries, 0 through 15.

§Returns

The delay. Zero and one both mean one second, which is the one place the coding is not the number itself.

§Examples

use pamoja_lorawan::mac::receive_delay_s;

assert_eq!(receive_delay_s(0), 1, "zero is one second, not none");
assert_eq!(receive_delay_s(1), 1);
assert_eq!(receive_delay_s(5), 5);