feat(bluetooth): add common data types (IDFGH-16961) #18015
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.
Description
This pull request adds the definition for the bluetooth common data types found https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Assigned_Numbers/out/en/Assigned_Numbers.pdf section 2.3.
The constant names are based on the bluetooth common data type "Name" column.
I've updated just a single example for now. If maintainers agree with that change, I can update more/all of the examples.
Related
Closes #18014
Testing
Simply run the updated examples.
Checklist
Before submitting a Pull Request, please ensure the following:
Note
Introduce standardized BLE advertising data type macros in
bt_common.hand update the BLE 5.0 throughput server example to use them.components/bt/common/include/bt_common.h(e.g.,BT_AD_TYPE_FLAGS, service lists, local name, TX power, manufacturer data, etc.).examples/.../example_ble_server_throughput.cto#include "bt_common.h"and replace hardcoded AD type bytes inext_adv_raw_datawith the new macros.Written by Cursor Bugbot for commit 912950a. This will update automatically on new commits. Configure here.