Skip to content

Conversation

ptsfdtz
Copy link

@ptsfdtz ptsfdtz commented Sep 13, 2024

For better user experience, the type definition of initial device name should be String rather than std::string.

@Juzz-Layman
Copy link

Juzz-Layman commented Dec 24, 2024

i had the same issue when compiling for my ESP32-C6, what fixed it for me was;
locate the BleKeyboard.cpp FIle in your arduino Libraries documents,

change "BLEDevice::init(deviceName);"
to "BLEDevice::init(String(deviceName.c_str()));"

also

change "hid->manufacturer()->setValue(deviceManufacturer);"

to "hid->manufacturer()->setValue(String(deviceManufacturer.c_str()));"

@andrusio
Copy link

andrusio commented Feb 2, 2025

The changes work with Arduino IDE 2.3.4

@ptsfdtz ptsfdtz closed this by deleting the head repository Oct 14, 2025
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.

3 participants