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

esp32 BLE-Midi and BluetoothSerial in the same project #67

Open
oiresgleichen opened this issue Oct 3, 2022 · 2 comments
Open

esp32 BLE-Midi and BluetoothSerial in the same project #67

oiresgleichen opened this issue Oct 3, 2022 · 2 comments

Comments

@oiresgleichen
Copy link

is it possible to use both librarys in one project?
if I use both libraries... It works for a while but after minutes it disconnects itself from the mac. and I can't reconnect without restart my esp. is there a way to solve this issue?
thanks

@lathoub
Copy link
Owner

lathoub commented Oct 3, 2022

I don't use them together - if you can dig a big deeper why the disconnect, you might find the issue and fix it 🤞

@RobertoHE
Copy link
Contributor

It's possible. @oiresgleichen
You need to include the 2 transport in your code. After that, create the 2 objects (serial and BLE) WITHOUT using the BLEMIDI_CREATE_DEFAULT_INSTANCE() macro, it is necessary to create the 2 objects using the explicit form of template constructor filling the < > with the corresponding hardware transport layer.

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

3 participants