#[repr(C)]pub struct PamojaGatewayNetworkEvent {Show 18 fields
pub outcome: u8,
pub dev_eui: [u8; 8],
pub dev_addr: u32,
pub fcnt: u32,
pub fport: u8,
pub has_fport: bool,
pub confirmed: bool,
pub len: usize,
pub truncated: bool,
pub slot: PamojaGatewayNetworkSlot,
pub accept: PamojaGatewayTxpk,
pub relayed: bool,
pub relay_dev_addr: u32,
pub relay_rssi_dbm: i16,
pub relay_snr_db: i8,
pub relay_data_rate: u8,
pub relay_wor_channel: u8,
pub relay_frequency_hz: u32,
}Expand description
What a forwarded packet turned out to be.
Fields§
§outcome: u8§dev_eui: [u8; 8]The device that joined, for a join.
dev_addr: u32The address granted, or the address a frame claimed.
fcnt: u32The counter the frame carried, reconstructed to its full width, for data.
fport: u8The port the frame was sent on, for data on a port.
has_fport: boolWhether the frame carried a port at all.
confirmed: boolWhether the device asked to be acknowledged.
len: usizeHow many bytes were written into the caller buffer: the decrypted payload for data, and the accept to transmit for a join.
truncated: boolWhether the payload was longer than the buffer, in which case nothing was written.
slot: PamojaGatewayNetworkSlotWhere an answer goes, for a join or for data.
accept: PamojaGatewayTxpkThe packet that carries the accept, for a join.
relayed: boolWhether a relay forwarded this uplink, TS011-1.0.1 section 9.1. An answer to it goes
back through the same relay, which pamoja_gateway_network_answer does by itself.
relay_dev_addr: u32The relay that forwarded it.
relay_rssi_dbm: i16What the relay heard of the uplink, in dBm.
relay_snr_db: i8Its signal-to-noise ratio, in dB.
relay_data_rate: u8The data rate it arrived at.
relay_wor_channel: u8The WOR channel the device woke the relay on: 0 for the default, 1 for the second.
relay_frequency_hz: u32The frequency the uplink arrived on, in hertz.
Trait Implementations§
Source§impl Clone for PamojaGatewayNetworkEvent
impl Clone for PamojaGatewayNetworkEvent
Source§fn clone(&self) -> PamojaGatewayNetworkEvent
fn clone(&self) -> PamojaGatewayNetworkEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more