esp_ble_gatts_app_register() function
Register GATT Server 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_GATTS_REG_EVT`. 2. The maximum number of applications is limited to 6.
![]()
ret = esp_ble_gatts_app_register(app_id);
esp_ble_gatts_app_register() is called by 2 functions and calls 2 functions:
![]()
esp_ble_gatts_app_register()
esp_ble_gatts_app_register() reads 6 variables and writes 4 variables:
![]()
esp_ble_gatts_app_register()