max22- / ESP32-BLE-MIDI

An Arduino library to use Midi over BLE (Bluetooth Low Energy), on ESP32 boards
MIT License
214 stars 27 forks source link

onDisconnectCallBack won't run #33

Open NeilD321 opened 5 days ago

NeilD321 commented 5 days ago

Hi Maxime,

thank you for the library - great work. QQ - your Dump Messages example doesn't run the onDisconnectCallback and I can't workout why not. Arduino Nano ESP32 -> iPad pro. (using Arduino IDE 2.3.2) Weirdly, the iPad never sees the Arduino in bluetooth settings - but when I'm in the app I'm using called Loopy Pro - there I am, and it connects beautifully. I can connect and then send and receive. I even have my LED running to show my connection status. All good - right up until I hit "disconnect" and nothing happens at the Arduino.

Not a big deal - cos I can just bounce my board and reconnect - but it would be nice to know why not. Any ideas??