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

errors converting std::string to String #347

Open
haywireSSC opened this issue Jan 24, 2025 · 2 comments
Open

errors converting std::string to String #347

haywireSSC opened this issue Jan 24, 2025 · 2 comments

Comments

@haywireSSC
Copy link

Image
on line 117 and 106 throws errors unless explicitly cast from string to c string. I added .c_str to each now it works

@TriDEntApollO
Copy link

Refer to this pull request #343 of mine for the fix

@Ikun-git
Copy link

  1. Convert std::string to String in BleKeyboard.cpp:
    • Locate BLEDevice::init(deviceName); and change it to:
      BLEDevice::init(String(deviceName.c_str()));
    • Locate hid->manufacturer()->setValue(deviceManufacturer); and change it to:
      hid->manufacturer()->setValue(String(deviceManufacturer.c_str()));

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

3 participants