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

cannot upload extended example to esp c3 #865

Open
mihaigabriel620 opened this issue Jan 17, 2025 · 5 comments
Open

cannot upload extended example to esp c3 #865

mihaigabriel620 opened this issue Jan 17, 2025 · 5 comments

Comments

@mihaigabriel620
Copy link

when i try to upload the example code for extended server it gives this error ( reinstalled everything ) ( and enabled phy in the h file )

Arduino: 1.8.19 (Windows 10), Board: "ESP32C3 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 160MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None, Disabled, Disabled"

C:\Users\mihai\Documents\Arduino\libraries\NimBLE-Arduino\src\nimble\nimble\host\src\ble_hs_periodic_sync.c: In function 'ble_hs_periodic_sync_free':

C:\Users\mihai\Documents\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'

58 | if((psync->lost_ev).event != NULL)

  |                        ^

exit status 1

Error compiling for board ESP32C3 Dev Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@h2zero
Copy link
Owner

h2zero commented Jan 17, 2025

Sorry I forgot I was going to remove the option to enable periodic advertising, it's not supported yet. Just comment out that line again and it should be fine.

@mihaigabriel620
Copy link
Author

also i cant get any example code to work even nimble_server is broken (exit status 1
no matching function for call to 'NimBLEDevice::startAdvertising()'
)

@mihaigabriel620
Copy link
Author

maybe how you say ( periodic adverising issue for this one also? )

@mihaigabriel620
Copy link
Author

mihaigabriel620 commented Jan 17, 2025

and also i wanna ask if you have the time can you make a example sketch where the esp is in phy coded mode ( the 125kbps one ) and you can pair with a phone and stores the mac ( using the irc,etc ) to decrypt the mac and if the connection is lost it attempts to reconnect to it ( same logic like bluetooth headphones )

( also i'm willing to pay you ;) if you can make it )

Because i want to make a remote start system for my car where when you approach it it starts automaticaly ( using rssi )

and the mac,key etc is used to identify the phone ( as trusted )

@h2zero
Copy link
Owner

h2zero commented Jan 17, 2025

also i cant get any example code to work even nimble_server is broken (exit status 1
no matching function for call to 'NimBLEDevice::startAdvertising()'
)

You need to use the BT5 examples with extended advertising.
as long as this

// #define CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV 1
is disabled and you are using one of the examples from here it will work.

and also i wanna ask if you have the time can you make a example sketch where the esp is in phy coded mode ( the 125kbps one ) and you can pair with a phone and stores the mac ( using the irc,etc ) to decrypt the mac and if the connection is lost it attempts to reconnect to it ( same logic like bluetooth headphones )

This already exists to a large extent in the above examples, just enable bonding by setting the first parameter in NimBLEDevice::setSecurityAuth to true, such as NimBLEDevice::setSecurityAuth(true, false, true);, after initialization.

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

2 participants