esp_ble_gattc_app_register() function
Register a GATT Client application
Arguments
app_id
The UUID for different application
Return value
- ESP_OK: Success - ESP_ERR_INVALID_ARG: The input `app_id` exceeds `ESP_APP_ID_MAX` (0x7fff) defined in esp_bt_defs.h - ESP_FAIL: Failure due to other reasons
Notes
1. This function triggers `ESP_GATTC_REG_EVT`. 2. The maximum number of applications is limited to 4.
![]()
esp_ble_gattc_app_register(0),
esp_ble_gattc_app_register() is called by 1 function and calls 2 functions:
![]()
esp_ble_gattc_app_register()
esp_ble_gattc_app_register() reads 6 variables and writes 4 variables:
![]()
esp_ble_gattc_app_register()