BootloaderOtaQuirksRepository

Provides the nRF52 bootloader/OTA quirk catalog resolved by the Meshtastic API (/resource/bootloaderOtaQuirks) and cached locally, seeded from the bundled device_bootloader_ota_quirks.json snapshot so it is never empty on a fresh install or while offline.

Functions

Link copied to clipboard

Best-available snapshot: seeds from the bundled asset if the cache is empty, then returns cached data. Never triggers a network call itself — freshness arrives via reconcile, which DeviceHardwareRepository triggers on the same cadence as its own catalog refresh. Callers must treat an absent/malformed entry for a given hwModel as a deliberate refusal, not a gap to fill with a guess — see applySoftDeviceVariant in DeviceHardwareRepositoryImpl.

Link copied to clipboard
abstract suspend fun reconcile()

Refreshes from the API. An empty response is ignored rather than wiping the existing seed/cache.