Error compiling
Posted: Mon Jul 22, 2024 2:32 pm
Hello I am using this video by kontinuumLAB "How to make your own MIDI over Bluetooth instruments" for a school project but I have been unable to get it to work after multiple attempts and help from my lecturer. Any help would be greatly appreciated.
On a fresh Arduino IDE 1.8 version following this video exactly I get the error message.
Multiple libraries were found for "BLEDevice.h"
Used: /Users/(name)/Documents/Arduino/libraries/ArduinoBLE
Not used: /Users/(name)/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/BLE
exit status 1
But then I delete the ArduinoBLE library and I get the following error message
In file included from /Users/(name)/Documents/Arduino/attempt_1/attempt_1.ino:2:
/Users/(name)/Documents/Arduino/libraries/BLE-MIDI/src/hardware/BLEMIDI_ESP32.h: In member function 'virtual void bleMidi::MyCharacteristicCallbacks::onWrite(BLECharacteristic*)':
/Users/(name)/Documents/Arduino/libraries/BLE-MIDI/src/hardware/BLEMIDI_ESP32.h:116:55: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
116 | std::string rxValue = characteristic->getValue();
| ~~~~~~~~~~~~~~~~~~~~~~~~^~
exit status 1
Error compiling for board WEMOS LOLIN32 Lite.
Putting this into chatGPT just sends me down a habit hole of editing files that creates more and more complex error message, I am really at a loss.
Many thanks for any help.
On a fresh Arduino IDE 1.8 version following this video exactly I get the error message.
Multiple libraries were found for "BLEDevice.h"
Used: /Users/(name)/Documents/Arduino/libraries/ArduinoBLE
Not used: /Users/(name)/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/BLE
exit status 1
But then I delete the ArduinoBLE library and I get the following error message
In file included from /Users/(name)/Documents/Arduino/attempt_1/attempt_1.ino:2:
/Users/(name)/Documents/Arduino/libraries/BLE-MIDI/src/hardware/BLEMIDI_ESP32.h: In member function 'virtual void bleMidi::MyCharacteristicCallbacks::onWrite(BLECharacteristic*)':
/Users/(name)/Documents/Arduino/libraries/BLE-MIDI/src/hardware/BLEMIDI_ESP32.h:116:55: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
116 | std::string rxValue = characteristic->getValue();
| ~~~~~~~~~~~~~~~~~~~~~~~~^~
exit status 1
Error compiling for board WEMOS LOLIN32 Lite.
Putting this into chatGPT just sends me down a habit hole of editing files that creates more and more complex error message, I am really at a loss.
Many thanks for any help.