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

Function get_region_gateway

chirpstack/src/config.rs:927–936  ·  view source on GitHub ↗
(region_id: &str)

Source from the content-addressed store, hash-verified

925}
926
927pub fn get_region_gateway(region_id: &str) -> Result<RegionGateway> {
928 let conf = get();
929 for region in &conf.regions {
930 if region.id == region_id {
931 return Ok(region.gateway.clone());
932 }
933 }
934
935 Err(anyhow!("Region ID '{}' not found", region_id))
936}
937
938pub fn get_required_snr_for_sf(sf: u8) -> Result<f32> {
939 Ok(match sf {

Callers 1

Calls 1

getFunction · 0.70

Tested by

no test coverage detected