Control Surface disable-pipes
MIDI Control Surface library for Arduino
Functions
ble2902.h File Reference

Detailed Description

Handling the Client Characteristic Configuration Descriptor (UUID 0x2902) for MIDI over Bluetooth Low Energy.

Determines whether notifications are enabled or not.

Definition in file ble2902.h.

#include <esp_gatts_api.h>
+ Include dependency graph for ble2902.h:

Go to the source code of this file.

Functions

void ble2902_handle_write (esp_gatt_if_t gatts_if, esp_ble_gatts_cb_param_t *param)
 Callback when the client writes to the descriptor. More...
 
bool ble2902_notifications_enabled (uint16_t handle)
 Check if notifications are enabled by the client. More...
 
bool ble2902_indications_enabled (uint16_t handle)
 Check if indications are enabled by the client. More...
 
uint16_t ble2902_get_value (uint16_t handle)
 Get the value of the descriptor. More...
 

Function Documentation

◆ ble2902_handle_write()

void ble2902_handle_write ( esp_gatt_if_t  gatts_if,
esp_ble_gatts_cb_param_t *  param 
)

Callback when the client writes to the descriptor.

Currently only prints debug information or error messages.

◆ ble2902_notifications_enabled()

bool ble2902_notifications_enabled ( uint16_t  handle)

Check if notifications are enabled by the client.

Parameters
handleThe handle of the CCC descriptor.

◆ ble2902_indications_enabled()

bool ble2902_indications_enabled ( uint16_t  handle)

Check if indications are enabled by the client.

Parameters
handleThe handle of the CCC descriptor.

◆ ble2902_get_value()

uint16_t ble2902_get_value ( uint16_t  handle)

Get the value of the descriptor.

Parameters
handleThe handle of the CCC descriptor.