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

ble_gatt_chr_def missing cpfd on ESP-IDF version 5.2.1 #110

Closed
ryankopf opened this issue Mar 16, 2024 · 0 comments · Fixed by #114
Closed

ble_gatt_chr_def missing cpfd on ESP-IDF version 5.2.1 #110

ryankopf opened this issue Mar 16, 2024 · 0 comments · Fixed by #114

Comments

@ryankopf
Copy link

error[E0063]: missing field `cpfd` in initializer of `ble_gatt_chr_def`
  --> C:\Users\ryankopf\.cargo\registry\src\index.crates.io-6f17d22bba15001f\esp32-nimble-0.6.0\src\server\ble_service.rs:52:19
   |
52 |             .push(esp_idf_sys::ble_gatt_chr_def {
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `cpfd`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `esp32-nimble` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

It seems a new field has been added to this struct. I got around it by adding cpfd: core::ptr::null_mut(), but I'm sure this is not ideal in the long run.

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

Successfully merging a pull request may close this issue.

1 participant