MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / is_mac_only_downlink

Method is_mac_only_downlink

chirpstack/src/downlink/tx_ack.rs:804–815  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

802 }
803
804 fn is_mac_only_downlink(&self) -> bool {
805 if self.downlink_frame.as_ref().unwrap().dev_eui.is_empty() {
806 return false;
807 }
808
809 if let lrwn::Payload::MACPayload(pl) = &self.phy_payload.as_ref().unwrap().payload
810 && pl.f_port.unwrap_or(0) == 0
811 {
812 return true;
813 }
814 false
815 }
816
817 fn is_mac_only_downlink_relayed(&self) -> bool {
818 if self.downlink_frame.as_ref().unwrap().dev_eui.is_empty() {

Callers 1

_handleMethod · 0.80

Calls 2

unwrapMethod · 0.80
as_refMethod · 0.80

Tested by

no test coverage detected