Check24GhzCapability

class Check24GhzCapability(nodeRepository: NodeRepository, deviceHardwareRepository: DeviceHardwareRepository)(source)

Determines whether the currently connected radio supports 2.4 GHz LoRa operation (SX1280 chip).

Uses a layered heuristic:

  1. Check for explicit 2.4ghz or sx1280 tags in the hardware metadata.

  2. Check the platformIO target or slug for sx1280, 2.4, or 2400 patterns.

  3. Default to HardwareCapabilityResult.Unknown when no evidence is available.

Constructors

Link copied to clipboard
constructor(nodeRepository: NodeRepository, deviceHardwareRepository: DeviceHardwareRepository)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend operator fun invoke(): HardwareCapabilityResult

Checks if the currently connected radio supports 2.4 GHz. Returns HardwareCapabilityResult.Unknown if not connected or hardware data is unavailable.