-
Notifications
You must be signed in to change notification settings - Fork 147
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
Compilation error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'String' #64
Comments
Добрый день. Такая же проблема пол года назад компилился скейтч сейчас собрать нужно было еще и перестал работать. Compilation error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string'} to 'String' |
C:\Users\admin\Desktop\EvilAppleJuice-ESP32-master\src\EvilAppleJuice-ESP32-INO\EvilAppleJuice-ESP32-INO.ino: In function 'void loop()':
C:\Users\admin\Desktop\EvilAppleJuice-ESP32-master\src\EvilAppleJuice-ESP32-INO\EvilAppleJuice-ESP32-INO.ino:80:37: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string'} to 'String'
80 | oAdvertisementData.addData(std::string((char*)DEVICES[index], 31));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::string {aka std::__cxx11::basic_string}
In file included from C:\Users\admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\BLE\src/BLEServer.h:22,
from C:\Users\admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\BLE\src/BLEDevice.h:21,
from C:\Users\admin\Desktop\EvilAppleJuice-ESP32-master\src\EvilAppleJuice-ESP32-INO\EvilAppleJuice-ESP32-INO.ino:5:
C:\Users\admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\BLE\src/BLEAdvertising.h:36:29: note: initializing argument 1 of 'void BLEAdvertisementData::addData(String)'
36 | void addData(String data); // Add data to the payload.
| ~~~~~~~^~~~
C:\Users\admin\Desktop\EvilAppleJuice-ESP32-master\src\EvilAppleJuice-ESP32-INO\EvilAppleJuice-ESP32-INO.ino:83:37: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string'} to 'String'
83 | oAdvertisementData.addData(std::string((char*)SHORT_DEVICES[index], 23));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::string {aka std::__cxx11::basic_string}
C:\Users\admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\libraries\BLE\src/BLEAdvertising.h:36:29: note: initializing argument 1 of 'void BLEAdvertisementData::addData(String)'
36 | void addData(String data); // Add data to the payload.
| ~~~~~~~^~~~
exit status 1
Compilation error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string'} to 'String'
The text was updated successfully, but these errors were encountered: