Control Surface stm32
MIDI Control Surface library for Arduino
midi-read.c
Go to the documentation of this file.
1#ifdef ESP32
2
12#include "midi-private.h"
13
14#include <string.h> // memset
15
16void midi_handle_read_event(esp_gatt_if_t gatts_if,
17 esp_ble_gatts_cb_param_t *param) {
18 // MIDI should respond with no data
19 // TODO: over 600 bytes, do we want this on the stack?
20 esp_gatt_rsp_t rsp;
21 memset(&rsp, 0, sizeof(esp_gatt_rsp_t));
22 rsp.attr_value.handle = param->read.handle;
23 // Respond without data
24 rsp.attr_value.len = 0;
25 esp_ble_gatts_send_response(gatts_if, param->read.conn_id,
26 param->read.trans_id, ESP_GATT_OK, &rsp);
27}
28
29#endif
Declarations of internal functions for the MIDI over BLE system, used in the midi-*....
void midi_handle_read_event(esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param)