Update BleMouse.cpp #77
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Same as BleKeyboard.cpp
🛠️ Fix for ESP32_BLE_Mouse Compatibility with Latest ESP32 BLE Library This repository includes a patched version of the BleMouse.cpp file from the ESP32_BLE_Mouse library. It fixes compilation errors that occur when using ESP32 core version 3.x, caused by the use of std::string where the BLE library expects Arduino String objects.
✅ What’s Fixed:
Replaced std::string with String(…).c_str() or direct String() conversion
Ensured compatibility with BLEDevice::init() and BLECharacteristic::setValue() calls
Useful for users facing similar errors when compiling the BLE Mouse library with updated ESP32 toolchains.