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

Method get_pr_device_sessions

chirpstack/src/uplink/data_fns.rs:58–73  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

56 }
57
58 async fn get_pr_device_sessions(&mut self) -> Result<()> {
59 trace!("Getting passive-roaming device-sessions");
60 self.pr_device_sessions =
61 passive_roaming::get_for_phy_payload(&self.uplink_frame_set.phy_payload).await?;
62
63 for ds in &mut self.pr_device_sessions {
64 ds.f_cnt_up = self.mac_payload.fhdr.f_cnt + 1;
65 }
66
67 trace!(
68 count = self.pr_device_sessions.len(),
69 "Got passive-roaming device-sessions"
70 );
71
72 Ok(())
73 }
74
75 async fn start_pr_sessions(&mut self) -> Result<()> {
76 // Skip this step when we already have active sessions.

Callers 1

_handleMethod · 0.80

Calls 1

get_for_phy_payloadFunction · 0.85

Tested by

no test coverage detected