esp32-snippets icon indicating copy to clipboard operation
esp32-snippets copied to clipboard

BLEDevice::createServer() not working

Open greenteabiscuit opened this issue 4 years ago • 0 comments

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.

greenteabiscuit avatar Mar 06 '21 07:03 greenteabiscuit