With an esp32, looking to use BLE client to monitor BLE sensor data AND BTserial for a terminal connection - at the same time. From my research it appears technically possible, but I've been unable to make it work. Have tried the various approaches of changing the initialization order, etc., but still no luck.
Has anyone been able to get this working on an esp32?
Thanks,
Steve
Update: This appears to show dual BLE & BT is possible, however, I don't know how to translate this into Arduino coding. BLE_BT_DualMode
It's annoying to read topics like this. Helpers use their valuable free time for technical matters but way too often the help is to improve the question to be understandable, and possible to give useful replies. Know that all helpers are newbies to You special question, but we know how to read datasheets.
Your post doesn't indicate where the trouble is. Therefore I ask You to post schematics.
Posting code, according to the links above, is mandatory. How could You miss that?
ESP32-Devkit <> USB cable <> PC running windows 11
code
#include <BLEDevice.h>
BLEScan* pBLEScan;
#include "BluetoothSerial.h"
void setup() {
BLEDevice::init("");
// additional coding to support BLE Client
SerialBT.begin("MyBT");
//additional coding to support BT Serial connection
}
void loop() {
BLEScanResults scanResults = pBLEScan->start(5);
if (SerialBT.available()) { // Tests for Bluetooth Serial connection
//Additional coding to process BT Serial connection
}
}