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>
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... | |
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.
bool ble2902_notifications_enabled | ( | uint16_t | handle | ) |
Check if notifications are enabled by the client.
handle | The handle of the CCC descriptor. |
bool ble2902_indications_enabled | ( | uint16_t | handle | ) |
Check if indications are enabled by the client.
handle | The handle of the CCC descriptor. |
uint16_t ble2902_get_value | ( | uint16_t | handle | ) |
Get the value of the descriptor.
handle | The handle of the CCC descriptor. |