I just flashed a new image on my device using MCUmgr. In the logs, when the device boots up, it shows the correct APP_VERSION string.
LOG_INF("Firmware version: %s", APP_VERSION_STRING);
returns:
I: Firmware version: 0.0.1
However, when I connect via BLE and read the firmware version from the DIS (Device Information Service) service, it returns the previous version of my firmware (`v0.0.3+0`). Here are my BT_DIS settings:
CONFIG_BT_DIS=y CONFIG_BT_DIS_SETTINGS=y CONFIG_BT_DIS_MANUF="my company" CONFIG_BT_DIS_MODEL="my model" CONFIG_BT_DIS_HW_REV=y CONFIG_BT_DIS_HW_REV_STR="0.1" CONFIG_BT_DIS_FW_REV=y CONFIG_BT_DIS_SERIAL_NUMBER=y
I figured it might have something to do with CONFIG_BT_DIS_SETTINGS reading an old value from the settings but clearing settings/NVS doesn't seem to solve the problem. Please advise.