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

Method check_roaming_allowed

chirpstack/src/uplink/join_sns.rs:138–146  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

136 }
137
138 fn check_roaming_allowed(&self) -> Result<(), Error> {
139 trace!("Check if roaming is allowed");
140 let dp = self.device_profile.as_ref().unwrap();
141 if !dp.allow_roaming {
142 return Err(Error::RoamingIsNotAllowed);
143 }
144
145 Ok(())
146 }
147
148 // We need to get either the device-keys or a JS client. In any other case, this must return an error.
149 async fn get_device_keys_or_js_client(&mut self) -> Result<()> {

Callers 1

_start_prMethod · 0.45

Calls 2

unwrapMethod · 0.80
as_refMethod · 0.80

Tested by

no test coverage detected