-
Notifications
You must be signed in to change notification settings - Fork 519
Fixes issues with Arduino IDE compilation #343
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
base: master
Are you sure you want to change the base?
Fixes issues with Arduino IDE compilation #343
Conversation
In Arduino IDE the ESP32 core library has BleDevice.h library that is uses String but the code used std::string instead which raised an error during compilation, this commit fixes that issue
Exact error message by Arduino IDE during compilation:
|
I can confirm that this PR fixed the Arduino IDE compiling issues. |
No problemo, it was a really easy fix ;) |
to me it doesnt compile
|
Fixes issue #312
In Arduino IDE the ESP32 core library has a BleDevice.h library that the code includes and uses. The BleDevice.h file has a function definition that uses the String class
but the code used std::string variables instead and passed that directly to the
init()
without typecasting, which raised an error during compilation, this commit fixes that issue.This commits changes the code base to use the
String
class instead ofstd::string
for better over all compatibility with Arduino.