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

Method validate_region_config_id

chirpstack/src/uplink/join.rs:337–349  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

335 }
336
337 fn validate_region_config_id(&self) -> Result<(), Error> {
338 trace!("Validating region_config_id against device-profile");
339
340 let dp = self.device_profile.as_ref().unwrap();
341 if let Some(v) = &dp.region_config_id
342 && !self.uplink_frame_set.region_config_id.eq(v)
343 {
344 warn!("Aborting as region config ID does not match with device-profile");
345 return Err(Error::Abort);
346 }
347
348 Ok(())
349 }
350
351 fn filter_rx_info_by_tenant(&mut self) -> Result<()> {
352 trace!("Filtering rx_info by tenant_id");

Callers 1

_handleMethod · 0.80

Calls 2

unwrapMethod · 0.80
as_refMethod · 0.80

Tested by

no test coverage detected