Skip to content

Update BleKeyboard.cpp #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

4 participants