T-vK / ESP32-BLE-Keyboard

Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
2.4k stars 402 forks source link

bleKeyboard.begin() causes AsyncWebServer issues #208

Closed KnokTheBottle closed 1 year ago

KnokTheBottle commented 1 year ago

Hello, I am currently using BLEKeyboard and AsyncWebServer with SPIFFS on my ESP32. I started noticing that when I call bleKeyboard.begin(), after a couple times of refreshing my webpage, the AsyncWebServer isnt responding anymore. (Browser says page request is "pending")

When I take out the bleKeyboard.begin() everything works fine and I can refresh my page 1000x without any problems.

It looks like after calling bleKeyboard.begin(), BLEKeyboard is doing something in the background that either starts blocking AsyncWebServer from processing, or it causes the whole thing to crash.

Does anyone know whats causing this issue?

KnokTheBottle commented 1 year ago

Using NimBLE fixed the issue!