Hi,
This string is defined by "CONFIG_BT_DIS_FW_REV_STR". Is there any API that can modify it?
Hi,
This string is defined by "CONFIG_BT_DIS_FW_REV_STR". Is there any API that can modify it?
Hi,
Try to set
VERSION_MAJOR = 1
VERSION_MINOR =23
Kind regards,
Andreas
Hi,
It's format is not what I expected because its default format is "0.0.0+0".
The format I want is "0.00"(VERSION_MAJOR.VERSION_MINOR).
So I hope to modify the BLE information through API.
Hi,
It's format is not what I expected because its default format is "0.0.0+0".
The format I want is "0.00"(VERSION_MAJOR.VERSION_MINOR).
So I hope to modify the BLE information through API.
Hmm, By omitting PATCHLEVEL
, VERSION_TWEAK
, and EXTRAVERSION
fields, you should observe the version format "major_version.minor_version".
But note that some uses of version number (for instance MCUboot or OTA updates), the version might be repsented internally as "1.23.0+0" due to how MCUboot expects the versioning to be formatted. However, for display purposes and in many API calls, it will appear as "1.23".
Kind regards,
Andreas
Hi,
So I hope to modify the content of "CONFIG_BT_DIS_FW_REV_STR" by writing a string.
Can you tell me what is the API to modify BLE GATT?
SunHuang said:So I hope to modify the content of "CONFIG_BT_DIS_FW_REV_STR" by writing a string.
Could you clarify if you mean "to modify the config during runtime" or to "modify it as a string before building"?
SunHuang said:Can you tell me what is the API to modify BLE GATT?
I'm not sure what you're referring to, but here is the API for bt_gatt: https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_bt_gattp.html
Kind regards,
Andreas
Hi,
This link is the same as my need.
Because VERSION_MAJOR ang VERSION_MINOR are numerical , setting it directly in Kconfig will get the result of v"space"."space"
So now I plan to use ""to modify the config during runtime"" to change the Firmware Revision String.
But I can't use this API.
Hi again,
Thank you for clarifying! This configuration is set during build time. Where did you see that you can change this during run time?
Regarding the build error you're showing it seems to me that the function is not declared before you call it.
Kind regards,