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: dwell on preset on the default frequency slot with the primary channel on the default public channel, swapping a custom primary out for the scan. 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. Either way the original primary channel is restored 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?