pub struct Delivery { /* private fields */ }Expand description
A downlink, read and acted on.
Implementations§
Source§impl Delivery
impl Delivery
Sourcepub fn port(&self) -> Option<u8>
pub fn port(&self) -> Option<u8>
Returns the application port the payload arrived on.
§Returns
The port, or None for a frame that carried only MAC commands or nothing.
Sourcepub fn payload(&self) -> &[u8] ⓘ
pub fn payload(&self) -> &[u8] ⓘ
Returns the application payload, decrypted.
§Returns
The bytes, empty when the frame carried none for the application.
Sourcepub fn acknowledged(&self) -> bool
pub fn acknowledged(&self) -> bool
Reports whether the network acknowledged the confirmed uplink this answered.
§Returns
true for an acknowledgment of a confirmed uplink.
Sourcepub fn confirmed(&self) -> bool
pub fn confirmed(&self) -> bool
Reports whether the network asked for this downlink to be acknowledged.
The device sets the acknowledgment on its next uplink by itself. A device with
nothing to send soon can send an empty frame with
send_empty.
§Returns
true for a confirmed downlink.
Sourcepub fn more_pending(&self) -> bool
pub fn more_pending(&self) -> bool
Reports whether the network has more waiting.
TS001-1.0.4 section 4.3.1.4 lets the device send an uplink as soon as it can to collect it.
§Returns
The FPending bit.
Sourcepub fn link_check(&self) -> Option<LinkCheck>
pub fn link_check(&self) -> Option<LinkCheck>
Returns the answer to a link check the device asked for.
§Returns
The margin and gateway count, when the downlink carried them.
Sourcepub fn device_time(&self) -> Option<DeviceTime>
pub fn device_time(&self) -> Option<DeviceTime>
Returns the answer to a time request the device asked for.
§Returns
The network’s time, when the downlink carried it.