FirmwareUpdateNoticePolicy

Determines whether a connected local device is behind the latest stable firmware and where it can be updated.

The policy deliberately fails closed: a notice needs a known node identity, hardware target, and valid current and stable versions. It must never interpret an unknown or malformed version as an update opportunity.

Functions

Link copied to clipboard
fun createNotice(nodeIdentity: String?, currentVersion: String?, stableVersion: String?, hardware: DeviceHardware?, transport: FirmwareUpdateTransport, releaseTargets: Set<String>): FirmwareUpdateNotice?
Link copied to clipboard
fun notificationKey(nodeIdentity: String, hardwareTarget: String, stableVersion: String): String
Link copied to clipboard
fun shouldSchedule(notificationKey: String, alreadyScheduled: Set<String>): Boolean