GATTC_Init

C

uint16_t GATTC_Init(uint16_t configuration);

Description

Initialize the GATT Client module.

Note

The GATT Server must be initialized before this module.

Parameters

ParameterDescription
[in] configurationA bit-field configuring the GATT Client's functions.See GATT client configuration definitions for bit definitions.- Manual mode: Call GATTC_HandleValueConfirm to send a confirmation for an indication upon receiving GATTC_EVT_HV_INDICATE.- Auto mode: The GATT stack automatically sends confirmations.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully initialize the GATT client module.
MBA_RES_OOMMemory allocation failure occurred internally.