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

Method _handle

chirpstack/src/uplink/data_fns.rs:36–50  ·  view source on GitHub ↗
(ufs: UplinkFrameSet, mac_pl: lrwn::MACPayload)

Source from the content-addressed store, hash-verified

34 }
35
36 async fn _handle(ufs: UplinkFrameSet, mac_pl: lrwn::MACPayload) -> Result<()> {
37 let mut ctx = Data {
38 uplink_frame_set: ufs,
39 mac_payload: mac_pl,
40 pr_device_sessions: Vec::new(),
41 };
42
43 ctx.filter_rx_info_by_public_only()?;
44 ctx.get_pr_device_sessions().await?;
45 ctx.start_pr_sessions().await?;
46 ctx.forward_uplink_for_sessions().await?;
47 ctx.save_pr_device_sessions().await?;
48
49 Ok(())
50 }
51
52 fn filter_rx_info_by_public_only(&mut self) -> Result<()> {
53 trace!("Filtering rx_info by public gateways only");

Callers

nothing calls this directly

Tested by

no test coverage detected