Functions
Functions
BLE » Profile » Profile Server

## 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_info | Pointer 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_SUCCESS | The profile info is recorded successfully, and the database will be created in profile initialization callback function.
  SDK_ERR_POINTER_NULL | The parameter prf_info is NULL, or input parameters that prf_info points to are invalid.
  SDK_ERR_NO_RESOURCES | The profile number is up to the maximum number the system can support.