Version ordering

Asset Tracker Template

tags
Asset Tracker Template

Memfault only offers a version that sorts after the version that the device reports. This applies to the release version of the application and to the component version of every other component. Keep the following in mind:

  • A pre-release version sorts before the plain release. For example, 1.2.3-rc1 sorts before 1.2.3, so a device that runs 1.2.3 is not offered 1.2.3-rc1.
  • A component version is compared as a string. A modem component version that must be offered to a device that reports mfw_nrf91x1_2.0.4 must sort after it, for example mfw_nrf91x1_2.0.5.
  • The bootloader component version is mcuboot_<version>, where <version> is the CONFIG_FW_INFO_FIRMWARE_VERSION of the MCUboot image, for example mcuboot_3. The device reports the version of the bootloader that is running, as mcuboot_2 for example.