ScanTarget

data class ScanTarget(val preset: ChannelOption, val label: String, val channel: ChannelSettings? = null, val region: Config.LoRaConfig.RegionCode? = null, val frequencySlot: Int? = null)(source)

One entry in the discovery scan queue. A channel of null is a public-preset target (the original scan behavior — dwell on preset using the radio's existing primary channel). A non-null channel is a beacon-advertised custom channel: during its dwell the engine tunes the radio's primary channel to that name+PSK (and region) so nodes on that mesh are heard, then restores the original primary channel afterwards (Apple 014-mesh-beacons FR-005).

Parameters

label

Result label persisted with the dwell (e.g. "LONG_FAST" or "LONG_FAST · PartyNet"), so a custom channel's results never collide with the same preset's public results.

Constructors

Link copied to clipboard
constructor(preset: ChannelOption, label: String, channel: ChannelSettings? = null, region: Config.LoRaConfig.RegionCode? = null, frequencySlot: Int? = null)

Properties

Link copied to clipboard
val channel: ChannelSettings?
Link copied to clipboard

The frequency slot the advertising mesh pinned, when it advertised one. Null means derive the slot from channel's name the way any node on it would — a mesh that pins a slot its name does not hash to would otherwise be scanned for on the wrong frequency and never heard.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val region: Config.LoRaConfig.RegionCode?