Functions

Functions

uint16_t ble_server_prf_add (const prf_server_info_t *p_server_prf_info)
 Add a server profile by providing its detailed information, including manager callback functions and GATT server callback functions. More...
 

Detailed Description

Function Documentation

◆ ble_server_prf_add()

uint16_t ble_server_prf_add ( const prf_server_info_t p_server_prf_info)

Add a server profile by providing its detailed information, including manager callback functions and GATT server callback functions.

This API should be called in application initialization function.

Parameters
[in]p_server_prf_infoPointer to the prf_info. See prf_server_info_t.
Note
If there are several profiles which need to be added, this function should be called corresponding times.
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 prf_info is NULL, or input parameters that prf_info points to are invalid.
SDK_ERR_NO_RESOURCESThe profile number is up to the maximum number the system can support.