Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append a serial number prefix to the BT device name #11

Closed
wants to merge 1 commit into from

Conversation

chrisandreae
Copy link
Collaborator

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 call bt_set_name, or else the name would change back from the initially advertised bt_device_name to the CONFIG_BT_DEVICE_NAME value. Given that the CONFIG_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's BT_LE_ADV_OPT_USE_NAME and BT_LE_ADV_OPT_FORCE_NAME_IN_AD options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant