Skip to content

btstack integration #1164

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

Closed
fesch opened this issue Mar 2, 2018 · 9 comments
Closed

btstack integration #1164

fesch opened this issue Mar 2, 2018 · 9 comments

Comments

@fesch
Copy link

fesch commented Mar 2, 2018

Hi

I wanted to try to integrate btstack (from bluekitchen) into arduino-esp32. I've come so far to compile the libbstack.a library and grep out nearly all h files, but I'm facing now the problem that I do not know where to put the file inside the hardware\espressif\esp32 so that my projet could find them

I've tried different places, but no chance so far.
libbtstack.a >> hardware\espressif\esp32\tools\sdk\lib
btstack*.h >> hardware\espressif\esp32\tools\sdk\include

Any hints?

@fesch
Copy link
Author

fesch commented Mar 2, 2018

Adding "-I{compiler.sdk.path}/include/btstack" to the file platforms.txt made it ...

@fesch fesch closed this as completed Mar 2, 2018
@copercini
Copy link
Contributor

Are you planning to use it for RFCOMM/SPP ?

@fesch
Copy link
Author

fesch commented Mar 2, 2018

Yes, that was the idea.

So far so good, but sub h files seams not to get included included automatically ... respectively the declared methods are not being passed on to Arduino:

sketch\sketch_mar02a.ino.cpp.o:(.literal._Z5setupv+0xc): undefined reference to `l2cap_init'

although everything is included:

#include "btstack.h"
#include "l2cap.h"

@copercini
Copy link
Contributor

Take a look here: #1144
I can give you a help if you want to test it

@fesch
Copy link
Author

fesch commented Mar 2, 2018

Cool! I did not find that one yet but will take a look at it!! Thanks :)

@fesch
Copy link
Author

fesch commented Mar 3, 2018

Thanks, I've got your library up and running!
That is exactly what I was looking for ...

@beegee-tokyo
Copy link
Contributor

And if you want to play with Bluetooth and BLE running in parallel, I wrote a small tutorial

@fesch
Copy link
Author

fesch commented Mar 3, 2018

Thanks for the link.

BLE is not needed in my project, at least not yet. But who knows what the future brings ;-)

@afpastorio
Copy link

Any news about btstack integration?

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

4 participants