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
| Parameter | Description |
|---|---|
| [in] configuration | A 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 value | Description |
|---|---|
| MBA_RES_SUCCESS | Success initialize GATT client module. |
| MBA_RES_OOM | Memory allocation failure occurred internally. |
