- ESP_OK: Success - ESP_GATT_INVALID_HANDLE:Invalid `handle` - ESP_FAIL: Failure due to other reasons
Notes
1. This function triggers `ESP_GATTC_REG_FOR_NOTIFY_EVT`. 2. You should call `esp_ble_gattc_write_char_descr()` after this API to write Client Characteristic Configuration (CCC) descriptor to the value of 1 (Enable Notification) or 2 (Enable Indication). 3. `handle` must be greater than 0.
Examples
esp_ble_gattc_register_for_notify() is referenced by 8 libraries and example projects: