Functions

Definitions and prototypes for Profile Client interface. More...

Functions

uint16_t ble_gattc_prf_add (ble_uuid_t *p_uuid, ble_evt_handler_t evt_handler)
 Add a client profile by providing its detail information. More...
 

Detailed Description

Definitions and prototypes for Profile Client interface.

Function Documentation

◆ ble_gattc_prf_add()

uint16_t ble_gattc_prf_add ( ble_uuid_t p_uuid,
ble_evt_handler_t  evt_handler 
)

Add a client profile by providing its detail information.

Parameters
[in]p_uuidPointer to the target service uuid. See ble_uuid_t.
[out]evt_handlerPointer to ble events handler..
Return values
SDK_SUCCESSThe profile info is recorded successfully, and the profile ENV will be initialized in profile initialization callback function.
SDK_ERR_POINTER_NULLThe parameter p_uuid or evt_handler 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.