esp_ble_gattc_unregister_for_notify() function
Unregister the notification of a service.
Arguments
gattc_if
GATT Client access interface
server_bda
Target GATT server device address
handle
Target GATT characteristic handle
Return value
- ESP_OK: Success - ESP_GATT_INVALID_HANDLE:Invalid `handle` - ESP_FAIL: Failure due to other reasons
Notes
1. This function triggers `ESP_GATTC_UNREG_FOR_NOTIFY_EVT`. 2. You should call `esp_ble_gattc_write_char_descr()` after this API to write Client Characteristic Configuration (CCC) descriptor value to 0. 3. `handle` must be greater than 0