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

ParameterDescription
[in] p_gattServiceOptionsPointer to the GATT Service configuration structure (See GATTS_GattServiceOptions_T).

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully configured the built-in GATT Service.
MBA_RES_FAILThe operation is not permitted.