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

How to set adv_type? #38

Closed
lz1998 opened this issue Nov 12, 2023 · 4 comments · Fixed by #41 or #49
Closed

How to set adv_type? #38

lz1998 opened this issue Nov 12, 2023 · 4 comments · Fixed by #41 or #49

Comments

@lz1998
Copy link

lz1998 commented Nov 12, 2023

@taks
Copy link
Owner

taks commented Nov 14, 2023

I added BLEAdvertising.advertisement_type function.
Please check.

@taks taks closed this as completed in #41 Nov 14, 2023
@lz1998
Copy link
Author

lz1998 commented Nov 15, 2023

I added BLEAdvertising.advertisement_type function. Please check.

There are 5 modes in the enum.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/esp_gap_ble.html#_CPPv418esp_ble_adv_type_t

@lz1998
Copy link
Author

lz1998 commented Nov 16, 2023

How to set the other two types?

@taks taks reopened this Nov 17, 2023
@taks
Copy link
Owner

taks commented Nov 17, 2023

I have researched the two other enum.

In nimble, it appears to be set up as follows
https://github.com/espressif/esp-nimble/blob/bdf2c7588a5c7d0c16e98a168b0cf41578b119ef/nimble/host/src/ble_gap.c#L2428-L2453

I will modify the program to allow setting the relevant parameters.

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