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

Method _start_pr

chirpstack/src/uplink/join_fns.rs:32–48  ·  view source on GitHub ↗
(ufs: UplinkFrameSet, jr: JoinRequestPayload)

Source from the content-addressed store, hash-verified

30 }
31
32 async fn _start_pr(ufs: UplinkFrameSet, jr: JoinRequestPayload) -> Result<()> {
33 let mut ctx = JoinRequest {
34 uplink_frame_set: ufs,
35 join_request: jr,
36 home_net_id: None,
37 client: None,
38 pr_start_ans: None,
39 };
40
41 ctx.filter_rx_info_by_public_only()?;
42 ctx.get_home_net_id().await?;
43 ctx.get_client().await?;
44 ctx.start_roaming().await?;
45 ctx.save_roaming_session().await?;
46
47 Ok(())
48 }
49
50 fn filter_rx_info_by_public_only(&mut self) -> Result<()> {
51 trace!("Filtering rx_info by public gateways only");

Callers

nothing calls this directly

Calls 5

get_home_net_idMethod · 0.80
get_clientMethod · 0.80
start_roamingMethod · 0.80
save_roaming_sessionMethod · 0.80

Tested by

no test coverage detected