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.
Error compiling
-
- Posts: 829
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Error compiling
Go into the board manager in Arduino IDE and change your esp32 version to v2.0.17
v3.X has breaking API changes that most libraries have not incorporated yet.
v3.X has breaking API changes that most libraries have not incorporated yet.
Who is online
Users browsing this forum: Bing [Bot] and 39 guests