From the OTA Example documentation:
- If
CONFIG_APP_PROJECT_VER_FROM_CONFIG
option is set, the value ofCONFIG_APP_PROJECT_VER
will be used. - Else, if
PROJECT_VER
variable set in project Cmake/Makefile file, its value will be used. - Else, if the
$PROJECT_PATH/version.txt
exists, its contents will be used asPROJECT_VER
. - Else, if the project is located inside a Git repository, the output of git describe will be used.
- Otherwise,
PROJECT_VER
will be"1"
.