Trait lorawan_device::Timings
source · pub trait Timings {
// Required methods
fn get_rx_window_offset_ms(&self) -> i32;
fn get_rx_window_duration_ms(&self) -> u32;
}
Expand description
Allows to fine-tune the beginning and end of the receive windows for a specific board.
Required Methods§
sourcefn get_rx_window_offset_ms(&self) -> i32
fn get_rx_window_offset_ms(&self) -> i32
The offset in milliseconds from the beginning of the receive windows. For example, settings this to 100 tell the LoRaWAN stack to begin configuring the receive window 100 ms before the window needs to start.
sourcefn get_rx_window_duration_ms(&self) -> u32
fn get_rx_window_duration_ms(&self) -> u32
How long to leave the receive window open in milliseconds. For example, if offset was set to 100 and duration was set to 200, the window would be open 100 ms before and close 100 ms after the target time.