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
-
- 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. |