Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
midi-mtu.c
Go to the documentation of this file.
1#ifdef ESP32
2#include <sdkconfig.h>
3#if CONFIG_BT_BLE_ENABLED
4
12#include "app.h"
13#include "logging.h"
14#include "midi-private.h"
15
16void midi_handle_mtu_event(esp_gatt_if_t gatts_if,
17 esp_ble_gatts_cb_param_t *param) {
18 uint16_t midi_mtu = param->mtu.mtu;
19 ESP_LOGI("MIDIBLE", "MTU: %d", midi_mtu);
20 midi_ble_instance_handle_mtu(param->mtu.conn_id, midi_mtu);
21}
22
23#endif
24#endif
void midi_ble_instance_handle_mtu(uint16_t conn_handle, uint16_t mtu)
Declarations of internal functions for the MIDI over BLE system, used in the midi-*....
void midi_handle_mtu_event(esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param)