-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
BT Classic: support for 32 and 128-bit custom UUIDs (IDFGH-10721) #11942
BT Classic: support for 32 and 128-bit custom UUIDs (IDFGH-10721) #11942
Conversation
d3ec4bc
to
b45981c
Compare
b45981c
to
86c4c67
Compare
Please delete unnecessary whitespace in the code. |
Hi, @ilutchenko thanks for your contribution, are you still following up this PR? Please resolve all the comments so that we can merge it. |
Hi @ESP-YTGerd ! Yes, I will fix up it soon. Just found some bugs during applying @xiongweichao's suggestions, need to figure out how to deal with them in the best way. |
86c4c67
to
f49884f
Compare
👋 Welcome ilutchenko, thank you for your first contribution to 📘 Please check Contributions Guide for the contribution checklist, information regarding code and documentation style, testing and other topics. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for espressif/esp-idf project. Pull request review and merge process you can expectEspressif develops the ESP-IDF project in an internal repository (Gitlab). We do welcome contributions in the form of bug reports, feature requests and pull requests via this public GitHub repository.
|
e805e34
to
a1f8509
Compare
So, deleting records and EIR UUIDs pulled me into a deep rabbit hole. Done since the previous PR version:
@xiongweichao , could you take another look at this PR, please? |
a1f8509
to
aae37d7
Compare
aae37d7
to
74bffd1
Compare
@xiongweichao , @ESP-YTGerd BTW, I have a question about failed CI. Pre-commit check passed successfully on my local machine but failed on GitHub Actions with a strange error. |
Hi, @ilutchenko
Example of a complete commit message:
Explanation of typical
|
74bffd1
to
a09f66a
Compare
4d9e477
to
5b8abb6
Compare
Hi @ESP-YTGerd |
Hi, @ilutchenko |
Hi @ESP-YTGerd , |
** | ||
*******************************************************************************/ | ||
//extern | ||
void BTM_AddCustomEirService( tBT_UUID *custom_uuid, tBT_UUID uuid ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void BTM_AddCustomEirService( tBT_UUID *custom_uuid, tBT_UUID uuid ); | |
void BTM_AddCustomEirService(tBT_UUID *custom_uuid, tBT_UUID uuid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, some other function declarations in this file have spaces near bracers, and some don't.
Okay, I removed them.
@ilutchenko |
5b8abb6
to
511e37a
Compare
@ESP-YTGerd , done |
1. Added new API functions that can add 32 and 128-bit UUID to the EIR data when these UUIDs are set in SDP. The old functions that only work with 16-bit UUIDs have been left unchanged to avoid having to redo code that already utilizes them. 2. Fixed bug with zero handler return in btc_sdp.c sdp_create_record.handle in tBTA_SDP struct wasn't saved before. Because of it Bluetooth stack always returned zero handler to application callback. Closes espressif#11529
511e37a
to
0a23da7
Compare
Hi, @ilutchenko The internal MR in gitlab was created and all the changes will be automatically synchronized to github, once the MR is merged. |
Hi, @ilutchenko |
The problem
This PR fixes issue #11529
What was done
I added new API functions that can add 32 and 128-bit UUID to the EIR data when these UUIDs are set in SDP.
The old functions that only work with 16-bit UUIDs have been left unchanged to avoid having to redo code that already utilizes them.
How it was tested
sdptool
andwireshark
output:for 32-bit UUID:
for 128-bit UUID: