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.
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