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

Method set_region_config

chirpstack/src/uplink/data.rs:361–374  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

359 }
360
361 fn set_region_config(&mut self) -> Result<()> {
362 trace!("Setting region_config");
363 let d = self.device.as_mut().unwrap();
364 let ds = d.get_device_session_mut()?;
365 ds.region_config_id
366 .clone_from(&self.uplink_frame_set.region_config_id);
367
368 let region_conf =
369 region::get(&ds.region_config_id).context("Get region config for region_config_id")?;
370
371 self.region_conf = Some(region_conf);
372
373 Ok(())
374 }
375
376 fn check_roaming_allowed(&self) -> Result<(), Error> {
377 trace!("Check if roaming is allowed for this device");

Callers 2

_handleMethod · 0.80
_handle_relayedMethod · 0.80

Calls 3

unwrapMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected