Functions

Functions

sdk_err_t ble_gatts_prf_add (ble_gatts_create_db_t *p_gatts_db, ble_evt_handler_t evt_handler)
 Add a server profile by providing its detailed information.. More...
 

Detailed Description

Function Documentation

◆ ble_gatts_prf_add()

sdk_err_t ble_gatts_prf_add ( ble_gatts_create_db_t p_gatts_db,
ble_evt_handler_t  evt_handler 
)

Add a server profile by providing its detailed information..

Parameters
[in]p_gatts_dbPointer to the prf_info. See ble_gatts_create_db_t.
[in]evt_handlerPointer to ble events handler.
Return values
SDK_SUCCESSThe profile info is recorded successfully, and the database will be created in profile initialization callback function.
SDK_ERR_POINTER_NULLThe parameter p_gatts_db or evt_handler is NULL.
SDK_ERR_NO_RESOURCESThe profile number is up to the maximum number the system can support.