pub struct Packet<'a> {Show 15 fields
pub payload: &'a [u8],
pub channel: u8,
pub modem: Modem,
pub datarate: u8,
pub coding_rate: u8,
pub crc_enabled: bool,
pub quality: Quality,
pub frequency_offset: i32,
pub snr_average: i8,
pub rssi_channel: u8,
pub rssi_signal: u8,
pub timestamp: u32,
pub payload_crc: u16,
pub timing_metrics: u8,
pub checksum_ok: bool,
}Expand description
A packet as the concentrator wrote it into the buffer.
Fields§
§payload: &'a [u8]The payload, exactly as it arrived.
channel: u8Which of the concentrator channels heard it.
modem: ModemWhich demodulator heard it.
datarate: u8The spreading factor, for a LoRa packet.
coding_rate: u8The coding rate, for a LoRa packet.
crc_enabled: boolWhether the sender asked for a payload check at all.
quality: QualityWhat the receiver made of it.
frequency_offset: i32How far off the carrier was, signed, in the units the chip counts.
snr_average: i8The average signal-to-noise ratio, in dB, which is negative for a weak signal.
rssi_channel: u8The average channel power, as the chip reports it.
rssi_signal: u8The average signal power, as the chip reports it.
timestamp: u32The concentrator counter the packet is stamped against.
payload_crc: u16The check the sender put over the payload.
timing_metrics: u8How many fine timestamp metrics follow the packet.
checksum_ok: boolWhether the chip’s own sum over the packet matches what the bus delivered.