Skip to content
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

issue on line 78 of ble characteristic file. #339

Closed
el-professorr opened this issue Dec 27, 2024 · 1 comment
Closed

issue on line 78 of ble characteristic file. #339

el-professorr opened this issue Dec 27, 2024 · 1 comment

Comments

@el-professorr
Copy link

this is line 78 of the file Ble Characteristic .
void setValue(String value);
everytime when trying to upload code, it throws an error with exit code status 1. says "no defined value" or something like that. would you please look into it?

@vtraveller
Copy link

This is a very easy fix. For any String setValue() simply add .c_str() for the arg.

I simply edited:

...\Arduino\libraries\ESP32_BLE_Keyboard\BleKeyboard.cpp:106 ->
BLEDevice::init(deviceName.c_str());

...\Arduino\libraries\ESP32_BLE_Keyboard\BleKeyboard.cpp:107:
hid->manufacturer()->setValue(deviceManufacturer.c_str());

Everything worked fine on my Windows 11 machine.

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

No branches or pull requests

2 participants