DiscoveryViewModel
Constructors
Properties
Distinct custom channels advertised by beacons — offered as selectable scan targets (FR-007).
Mesh Beacon invitations received from other meshes, newest first.
Modem presets advertised by any received beacon — flagged in the scan-setup picker (FR-004).
The radio's current channel settings (index 0 = primary) — drives the add-vs-switch decision.
The radio's current LoRa config — 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.