DiscoveryViewModel
Constructors
Properties
Distinct custom channels advertised by beacons, offered as selectable scan targets (FR-007), minus a channel the radio already has configured (design#140 behavior 10).
Mesh Beacon invitations received from other meshes, newest first, minus offers for a channel the radio already has configured (design#140 behavior 10). Filtered reactively at presentation time, not at ingest, so a later channel deletion brings a still-stored invitation back and joining removes it, without ever mutating MeshBeaconRepository.
Modem presets advertised by any received beacon — flagged in the scan-setup picker (FR-004).
The radio's current channel settings (index 0 = primary), which drives the add-vs-switch decision.
The radio's current LoRa config, which drives the add-vs-switch decision for a beacon join.
True when the radio is on the LORA_24 region.
Functions
Adds the preset an invitation advertised to the scan selection (union, never clearing the user's existing choices — matches Apple 014-mesh-beacons FR-003), so the user can survey the advertised mesh before joining. Persists like togglePreset so the shown selection and saved prefs never diverge. No-op if the offer carries no preset, or a preset with no matching ChannelOption.