Skip to content

Conversation

@NallamothuTanish
Copy link

🛠️ Fix for ESP32_BLE_Keyboard Compatibility with Latest ESP32 BLE Library This repository contains a patched version of the BleKeyboard.cpp file from the ESP32_BLE_Keyboard library. It resolves compilation errors caused by incompatible usage of std::string with functions expecting Arduino String objects in newer versions of the ESP32 BLE stack.

✅ Fixes:
Converted std::string to String using .c_str() where required

Ensures compatibility with BLEDevice::init() and BLECharacteristic::setValue()

Useful for anyone encountering build errors while using the BLE keyboard library with ESP32 core v3.x.

🛠️ Fix for ESP32_BLE_Keyboard Compatibility with Latest ESP32 BLE Library
This repository contains a patched version of the BleKeyboard.cpp file from the ESP32_BLE_Keyboard library. It resolves compilation errors caused by incompatible usage of std::string with functions expecting Arduino String objects in newer versions of the ESP32 BLE stack.

✅ Fixes:
Converted std::string to String using .c_str() where required

Ensures compatibility with BLEDevice::init() and BLECharacteristic::setValue()

Useful for anyone encountering build errors while using the BLE keyboard library with ESP32 core v3.x.
@wprudencio
Copy link

Hey! Thanks for the PR! I used your fork to solve the compilation issue.

@mintoya
Copy link

mintoya commented May 22, 2025

I've also used your work to get the library working. thank you!

@NallamothuTanish
Copy link
Author

Happy to help : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants