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

Conflict with SerialBluetooth.h? #34

Open
tbo711 opened this issue May 2, 2023 · 4 comments
Open

Conflict with SerialBluetooth.h? #34

tbo711 opened this issue May 2, 2023 · 4 comments

Comments

@tbo711
Copy link

tbo711 commented May 2, 2023

Hello. Great work, this is amazing! I am trying to add the use of SerialBluetooth to my sketch but it won't work. I'm new to this but after hours of looking, my best guess is that it might be because Bluedroid mode is needed?

My end goal is to be able to connect my controller with Bluepad32 but also be able to connect to an Android phone to use something like the MIT App Inventor.

THANK YOU!
Blake

@ricardoquesada
Copy link
Owner

Yes. BluetoothSerial is disabled.

See:
https://gitlab.com/ricardoquesada/esp-idf-arduino-bluepad32-template/-/blob/main/sdkconfig.defaults#L56

this is because it doesn't use Bluedroid. Instead it uses the BTstack stack (different one).

I would add Arduino APIs for BTstack, but you will need to implement the "serial" part yourself.

@tbo711
Copy link
Author

tbo711 commented May 2, 2023

Thank you for the fast reply! I think I understand now. Do you think it would make it easier if used to wifi to connect with the phone? Any conflicts with the wifi functionality?

@ricardoquesada
Copy link
Owner

not sure... just try with regular ESP32 Arduino core.... create a very simple example that uses BT and WiFi... if that works, then it should work with ESP32-Bluepad32 Arduino core

@ste2425
Copy link

ste2425 commented Sep 28, 2023

@tbo711

This may not be of any help but i created an example using BTStack (the Bluetooth lib BluePad32 uses) to fire up a ATT Server and communicate with a web app. This was for me to build a web app that could perform OTA Updates on the EPS32 whilst using BluePad32.

It is possible to communicate with the ATT server via a mobile app or dekstop app if cofigured for BLE.

Obviously depends on what your are wanting to do but thought i would share as it may provide you an option.

#37 (comment)

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