I am using the
Code: Select all
esp_ble_gatts_create_attr_tab
I have two characteristics, and one of those characteristics has the notifications descriptor (0x2902) snippet below.
Code: Select all
static uint16_t sCharValueNotifications = 0b01;
...
// Client Characteristic Configuration Descriptor - Enable notifications
[BLE_HANDLE_CHAR_DESCR_NOTIFICATIONS] = {
{ESP_GATT_AUTO_RSP},
{
ESP_UUID_LEN_16,
(uint8_t *)&sUUIDReservedClientConfig,
ESP_GATT_PERM_READ | ESP_GATT_PERM_WRITE,
sizeof(sCharValueNotifications),
sizeof(sCharValueNotifications),
(uint8_t*)&sCharValueNotifications
}
}
I have seen examples using
Code: Select all
esp_ble_gatts_send_indicate