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

Method get_device_data

chirpstack/src/uplink/join_sns.rs:121–136  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

119 }
120
121 async fn get_device_data(&mut self) -> Result<()> {
122 trace!("Getting device data");
123 let jr = self.join_request.as_ref().unwrap();
124 let (dev, app, t, dp) = get_all_device_data(jr.dev_eui).await?;
125
126 if dp.region != self.uplink_frame_set.region_common_name {
127 return Err(anyhow!("Invalid device-profile region"));
128 }
129
130 self.tenant = Some(t);
131 self.application = Some(app);
132 self.device_profile = Some(dp);
133 self.device = Some(dev);
134
135 Ok(())
136 }
137
138 fn check_roaming_allowed(&self) -> Result<(), Error> {
139 trace!("Check if roaming is allowed");

Callers 1

_start_prMethod · 0.45

Calls 3

get_all_device_dataFunction · 0.85
unwrapMethod · 0.80
as_refMethod · 0.80

Tested by

no test coverage detected