SoftwareVersion

data class SoftwareVersion(val major: Int, val minor: Int = 0, val lts: Int? = null, val commitID: String? = null) : Comparable<SoftwareVersion>

Software version of the device

Constructors

Link copied to clipboard
constructor(major: Int, minor: Int = 0, lts: Int? = null, commitID: String? = null)

Properties

Link copied to clipboard

or null if not available

Link copied to clipboard
val lts: Int?

the lts version of the device software or null if not available

Link copied to clipboard
val major: Int

the major version of the device software

Link copied to clipboard
val minor: Int

the minor version of the device software

Functions

Link copied to clipboard
open operator override fun compareTo(other: SoftwareVersion): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

For sensors with a major version less than 6, the version numbers are formatted differently compared to sensors with a major version of 6 or higher. This method ensures that the version is represented in the appropriate format depending on the major version.

Link copied to clipboard
open override fun toString(): String