T-vK / ESP32-BLE-Keyboard

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

how to work with micro:bit v2(nRF52833) #269

Open wwj718 opened 6 months ago

wwj718 commented 6 months ago

I want to use this library on the micro:bit v2(nRF52833) and I noticed that NimBLE supports nRF52.

I made some simple modifications to the library and successfully compiled the firmware for the micro:bit v2. It runs on the micro:bit v2, and I can find the BLE keyboard emulated by the micro:bit. This seems to indicate that most of the code is working.

However, the connection disconnects immediately after being established. How should I resolve this issue?

this is my platformio.ini([env:esp32-ble-keyboard] woks perfectly): https://github.com/wwj718/ble-keyboard-demo/blob/main/platformio.ini

This is the modified: https://github.com/wwj718/ESP32-BLE-Keyboard/commit/2ed6488cc8b447afa3009f5def6bae94f25be454