GATTS_ConfigureBuildInService
C
uint16_t GATTS_ConfigureBuildInService(GATTS_GattServiceOptions_T *p_gattServiceOptions);
Description
Configures the built-in GATT service.
Note
This function allows enabling or disabling the optional "GATT Service". It is recommended to call this function during initialization and not when a connection is active. The enable/disable configuration should remain consistent across multiple calls to this function. If the configuration changes, service change considerations must be addressed in cases where multiple built-in services are configured.
Parameters
Parameter | Description |
---|---|
[in] p_gattServiceOptions | Pointer to the GATT Service configuration structure (See GATTS_GattServiceOptions_T). |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully configured the built-in GATT Service. |
MBA_RES_FAIL | The operation is not permitted. |