GATTS_ConfigureBuildInService

C

uint16_t GATTS_ConfigureBuildInService(GATTS_GattServiceOptions_T *p_gattServiceOptions);

Description

GATT Server configures the build-in GATT service. Optional service "GATT Service" can be configured enable/disable.

Note

The function is suggested to be called when initialization. Also, can't be called in connected state. The configured option (enable/disable) should not be changed if the function is called several times. Otherwise, service change situation need to be considered in the multiple configuring build-in services case.

Parameters

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

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully configured the build-in Services.
MBA_RES_FAILOperation is not permitted.