RegionPresetConstraint

data class RegionPresetConstraint(val presets: List<Config.LoRaConfig.ModemPreset>, val defaultPreset: Config.LoRaConfig.ModemPreset, val licensedOnly: Boolean)(source)

The modem presets the firmware advertised as legal for one LoRa region, decoded from a LoRaRegionPresetMap.

Constructors

Link copied to clipboard
constructor(presets: List<Config.LoRaConfig.ModemPreset>, defaultPreset: Config.LoRaConfig.ModemPreset, licensedOnly: Boolean)

Properties

Link copied to clipboard
val defaultPreset: Config.LoRaConfig.ModemPreset

the firmware's default preset for the region (always one of presets).

Link copied to clipboard

true when the region's presets are for licensed operators only (e.g. amateur bands); the whole group is gated, not individual presets.

Link copied to clipboard
val presets: List<Config.LoRaConfig.ModemPreset>

the presets that are legal in the region.

Functions

Link copied to clipboard
fun isGated(isLicensed: Boolean): Boolean

True when an operator with the given licensing state may not select any preset in this region.