Skip to content

Update BleKeyboard.cpp#362

Open
NallamothuTanish wants to merge 1 commit into
T-vK:masterfrom
NallamothuTanish:patch-1
Open

Update BleKeyboard.cpp#362
NallamothuTanish wants to merge 1 commit into
T-vK:masterfrom
NallamothuTanish:patch-1

Conversation

@NallamothuTanish

Copy link
Copy Markdown

🛠️ 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
Copy Markdown

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

@mintoya

mintoya commented May 22, 2025

Copy link
Copy Markdown

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

@NallamothuTanish

Copy link
Copy Markdown
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