esp32-snippets
esp32-snippets copied to clipboard
BLEDevice::createServer() not working
Model: ESP32 WROOM-32
I tried uploading the BLE_notify.ino example code on my ESP32 WROOM 32, but the process always stops at the BLEDevice::createServer.
void setup() {
Serial.begin(115200);
// Create the BLE Device
BLEDevice::init("aaaaaaaaaa");
Serial.println("create BLE Server");
// Create the BLE Server, the code below does not work
pServer = BLEDevice::createServer();
......
Are there any fixes around this issue? The Wi-Fi on the ESP32 WROOM-32 works just fine, but the BLE does not work.