Append a serial number prefix to the BT device name #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To better differentiate multiple devices over Bluetooth, we'd like to use part of the serial number in the the advertised Bluetooth device name.
Implementation questions: it was necessary to set
CONFIG_BT_DEVICE_NAME_DYNAMIC
and callbt_set_name
, or else the name would change back from the initially advertisedbt_device_name
to theCONFIG_BT_DEVICE_NAME
value. Given that theCONFIG_BT_DEVICE_NAME
does seem to be being used, and separately, is there a reason that the name is manually inserted in the advertisement data rather than relying on Zephyr'sBT_LE_ADV_OPT_USE_NAME
andBT_LE_ADV_OPT_FORCE_NAME_IN_AD
options?