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

[TW#18497] How to set or get class of device of bluetooth classic #1565

Closed
my-abousamra opened this issue Jan 30, 2018 · 8 comments
Closed

Comments

@my-abousamra
Copy link

Hi,

How to set or get class of device of bluetooth classic for my device as I only find functions to process class of device to get major/minor device

Regards

@FayeY FayeY changed the title How to set or get class of device of bluetooth classic [TW#18497] How to set or get class of device of bluetooth classic Feb 11, 2018
@Weijian-Espressif
Copy link
Collaborator

@blueMoodBHD Please help solve this problem.

@blueMoodBHD
Copy link
Collaborator

@my-abousamra
Call function esp_bt_gap_cancel_discovery();
Then esp_bt_gap_cb_t will is called with ESP_BT_GAP_DISC_RES_EVT, in param->disc_res.prop[],if there is one that param->disc_res.prop[i].type == ESP_BT_GAP_DEV_PROP_COD, then param->disc_res.prop[i].val is the class of device.

@my-abousamra
Copy link
Author

@blueMoodBHD

  1. Is this the way to get the current running device COD, not a remote one? I thought it is a usual function to get it.
  2. How to set it to my device?

@blueMoodBHD
Copy link
Collaborator

@my-abousamra We do not have the APIs to set and read cod at this moment, we will provide those APIs as soon as possible, Thanks

@my-abousamra
Copy link
Author

@blueMoodBHD any updates, please?

@blueMoodBHD
Copy link
Collaborator

@my-abousamra We will try to finish this in v3.1, thanks.

@my-abousamra
Copy link
Author

@blueMoodBHD when will it be released, please?

igrr pushed a commit that referenced this issue Apr 17, 2018
@my-abousamra
Copy link
Author

Works fine, Thanks!

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

No branches or pull requests

3 participants