-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
References to arduino-esp32 #60
Comments
If you are using arduino as an idf component as well as this library it needs to include that file so that the arduino code won't release the BLE memory. That's the only reason for including that. |
Okay. Thanks for the explanation. |
I have a similar problem. After changing to nimble. Arduino as component won't compile. I disabled BluetoothSerial in sdkconfig but still the same. |
Looks like Bluetooth is not enabled in your config? Can you share the IDF and arduino core commit ID? |
Bluetooth is on. Host is nimBLE If I comment these lines in the arduino component, everything works: components/arduino/CMakeList.txt
But it is not an elegant solution. Arduino: 399f4ecbb3a4cef21e2bffa37adb6190356dfb76 (espressif/arduino-esp32@399f4ec) sdkconfig:
|
Thanks! Looking through the arduino core I can see the header only checks Obviously, that would require a PR to fix. Potentially you could define the include guard macro in your project Cmake to avoid altering the component files. The macro is this: |
Thank you, this looks like a better solution. Thanks for your work and this repository. |
You're very welcome, let me know if that works. In the meantime I will propose the necessary PR to arduino-esp32. |
Yes it works. |
Awesome, thanks! |
Is there a way to fix the original issue? I am having that compiling issue as well and don't know how to make the component be able to find the include file |
I had this issue using Platform io with To solve it, I removed 'arduino' from the framework field, and installed arduino as a separate component. |
Hi
I am running a essp-idf project with some arduino legacy code. At the moment I would prefer not rewrite those parts so I have installed arduino-esp32 as a component in my project.
To be able to use BLE nimble stack I installer esp-nimble-cpp. When building I have some error I don't understand like :
../idf_wrappers/esp-nimble/src/NimBLEDevice.cpp:46:10: fatal error: esp32-hal-bt.h: No such file or directory
esp32-hal-bt.h is part of the arduino-esp32 library,,, should there be references to that in esp-nimble-cpp???
The text was updated successfully, but these errors were encountered: