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

Method is_relay_payload

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

Source from the content-addressed store, hash-verified

793 }
794
795 fn is_relay_payload(&self) -> bool {
796 if let lrwn::Payload::MACPayload(pl) = &self.phy_payload.as_ref().unwrap().payload
797 && pl.f_port.unwrap_or(0) == lrwn::LA_FPORT_RELAY
798 {
799 return true;
800 }
801 false
802 }
803
804 fn is_mac_only_downlink(&self) -> bool {
805 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