Hi @benjamino. I see from the issue report @BitSeeker shared that the error is caused by an incompatibility between the "ESP32-BLE-MIDI" library and versions >=2.0.0 of its "NimBLE-Arduino" dependency.
So the solution will be to downgrade your installation of the NimBLE-Arduino library (this library is installed along with the ESP32-BLE-MIDI library) to the last compatible version: 1.4.3. I'll provide instructions you can follow to do that:
- Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
- Type
NimBLE-Arduino
in the "Filter your search..." field. - Find "NimBLE-Arduino" entry in the search results.
- You will see a drop-down version menu at the bottom of the entry. Select "1.4.3" from the menu.
- Click the "INSTALL" button at the bottom of the entry.
- Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
ⓘ Successfully installed library ...
Now try compiling or uploading the sketch again. The compilation error should not occur this time.
Arduino IDE will periodically display a notification that offers to update the library for you:
Updates are available for some of your libraries.
If you click the "INSTALL MANUALLY" button in the notification, a list of each of the libraries that have available updates will be shown in the Arduino IDE Library Manager. It is generally a good idea to keep your libraries updated since the updates might provide important enhancements or bug fixes. So you should look through the list and update other libraries if appropriate, but you should avoid accepting the update for the NimBLE-Arduino library until such time as a new version of the ESP32-BLE-MIDI library comes out that is compatible with the latest version of NimBLE-Arduino.