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

Error compile Arduino BLE 5 example for ESP32 #672

Open
alberk8 opened this issue May 30, 2024 · 5 comments
Open

Error compile Arduino BLE 5 example for ESP32 #672

alberk8 opened this issue May 30, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@alberk8
Copy link

alberk8 commented May 30, 2024

Hi,

I am getting the following error using the sample code. Compiling using Arduino IDE 2.3.2 for ESP32 C3 (Nimble Arduino by h2zero 1.4.1). What is missing here?

d:\Staging\Arduino\libraries\NimBLE-Arduino\src\nimble\nimble\host\src\ble_hs_periodic_sync.c: In function 'ble_hs_periodic_sync_free':
d:\Staging\Arduino\libraries\NimBLE-Arduino\src\nimble\nimble\host\src\ble_hs_periodic_sync.c:58:24: error: 'struct ble_npl_event' has no member named 'event'
     if((psync->lost_ev).event != NULL)

@h2zero
Copy link
Owner

h2zero commented May 30, 2024

@alberk8, what arduino core version are you using?

@alberk8
Copy link
Author

alberk8 commented May 31, 2024

@h2zero , It is using Esp32 2.0.11. Upgrading to 2.0.17 also did not work.

@h2zero
Copy link
Owner

h2zero commented Jun 4, 2024

Do you have periodic advertisements enabled? if so please disable and try again. I haven't had time to implement this yet.

@alberk8
Copy link
Author

alberk8 commented Jun 4, 2024

Disabling the two lines in the nimconfig.h enable compilation of the code. Does the sample code actually extend the BLE 5 range?

/** @brief Un-comment to enable periodic advertising */
// #define CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV 1

/** @brief Un-comment to change the maximum number of periodically synced devices */
// #define CONFIG_BT_NIMBLE_MAX_PERIODIC_SYNCS 1

@h2zero
Copy link
Owner

h2zero commented Jun 4, 2024

Great, yes it does extend it a good amount depending on your device/antenna.

@h2zero h2zero added the enhancement New feature or request label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants