McuMgrImageVersion

Represents a firmware image version for devices using McuBoot or the legacy Apache Mynewt bootloader.

For more info about McuBoot and image format see: https://juullabs-oss.github.io/mcuboot/design.html

Functions

Link copied to clipboard
@NotNull
open fun fromBytes(b: @NotNull Array<Byte>): @NotNull McuMgrImageVersion
@NotNull
open fun fromBytes(b: @NotNull Array<Byte>, offset: Int): @NotNull McuMgrImageVersion
Link copied to clipboard
open fun getBuildNum(): Int
Link copied to clipboard
open fun getMajor(): Byte
Link copied to clipboard
open fun getMinor(): Byte
Link copied to clipboard
open fun getRevision(): Short
Link copied to clipboard
open fun getSize(): Int
Link copied to clipboard
open fun toString(): String