hello-nrfcloud / firmware

Firmware for devices connecting to nRF Cloud for the out-of-box experience
Other
3 stars 6 forks source link

Report sdkVer #198

Closed coderbyheart closed 1 week ago

coderbyheart commented 2 weeks ago

Currently sdkVer contains the string APP_VERSION. Report the correct SDK version instead.

{
  "id": "oob-355025930003841",
  "state": {
    "reported": {
      "device": {
        "deviceInfo": {
          "appVersion": "2.0.0-preview8",
          "modemFirmware": "mfw_nrf91x1_2.0.0",
          "board": "thingy91x",
          "sdkVer": "APP_VERSION"
        }
      }
    }
  }
}
simensrostad commented 1 week ago

The nRF Cloud FW library uses a value that is retrieved from the modem info library to set the app version:

In modem_info_params_init() this is set:

modem->device.app_version       = STRINGIFY(APP_VERSION);
simensrostad commented 1 week ago

Fixed in latest version, please verify:

        "modemFirmware":"mfw_nrf91x1_2.0.1"
        "batteryVoltage":4981
        "imei":"355025930003742"
        "board":"thingy91x"
        "sdkVer":"2.7.0-rc2-f5f32227a1df"
        "appName":"N/A"
        "zephyrVer":"v3.6.99-ncs2-rc2-41-g58284ff0e1b8"
        "hwVer":"nRF9151 LACA ADA"
        "appVersion":"0.0.0-dev"

https://github.com/hello-nrfcloud/firmware/releases/tag/v2.0.0-preview.15

coderbyheart commented 1 week ago

image

Works!