#include <MIDI_Interfaces/BLEMIDI/BLEAPI.hpp>
Defines the interface for callback functions registered by the low-level BLE code.
std::atomic
or by using critical sections). Definition at line 127 of file BLEAPI.hpp.
Public Member Functions | |
virtual | ~MIDIBLEInstance ()=default |
virtual void | handleConnect (BLEConnectionHandle conn_handle)=0 |
Called by the BLE stack when a connection is established. | |
virtual void | handleDisconnect (BLEConnectionHandle conn_handle)=0 |
Called by the BLE stack when a connection is terminated. | |
virtual void | handleMTU (BLEConnectionHandle conn_handle, uint16_t mtu)=0 |
Called by the BLE stack when the maximum transmission unit for the connection changes. | |
virtual void | handleSubscribe (BLEConnectionHandle conn_handle, BLECharacteristicHandle char_handle, bool notify)=0 |
Called by the BLE stack when the central subscribes to receive notifications for the MIDI GATT characteristic. | |
virtual void | handleData (BLEConnectionHandle conn_handle, BLEDataGenerator &&data, BLEDataLifetime lifetime)=0 |
Called by the BLE stack when the central writes data to the MIDI GATT characteristic. | |
|
virtualdefault |
|
pure virtual |
Called by the BLE stack when a connection is established.
Implemented in BTstackBackgroundBackend, ESP32BLEBackend< Impl >, and ArduinoBLEBackend.
|
pure virtual |
Called by the BLE stack when a connection is terminated.
Implemented in ESP32BLEBackend< Impl >, ArduinoBLEBackend, and BTstackBackgroundBackend.
|
pure virtual |
Called by the BLE stack when the maximum transmission unit for the connection changes.
Implemented in ESP32BLEBackend< Impl >, ArduinoBLEBackend, and BTstackBackgroundBackend.
|
pure virtual |
Called by the BLE stack when the central subscribes to receive notifications for the MIDI GATT characteristic.
Implemented in ESP32BLEBackend< Impl >, BTstackBackgroundBackend, and ArduinoBLEBackend.
|
pure virtual |
Called by the BLE stack when the central writes data to the MIDI GATT characteristic.
Implemented in ESP32BLEBackend< Impl >, ArduinoBLEBackend, and BTstackBackgroundBackend.