Functions
Functions
BLE Services » Body Composition Service (BCS)
Collaboration diagram for Functions:

## Functions
sdk_err_t | bcs_service_init (bcs_init_t *p_bcs_init)
| Initialize a Body Composition Service instance and add in the DB. More...
sdk_err_t | bcs_measurement_send (uint8_t conn_idx, bcs_meas_val_t *p_meas, uint8_t cache_num)
| Send Body Composition Measurement indication. More...
uint16_t * | bcs_start_handle_get (void)
| Get the pointer to the start handle of Body Composition Service. More...

## Detailed Description

## Function Documentation

## ◆ bcs_measurement_send()

sdk_err_t bcs_measurement_send | ( | uint8_t | conn_idx,
|  | bcs_meas_val_t * | p_meas,
|  | uint8_t | cache_num
| ) |  |

Send Body Composition Measurement indication.

Parameters

  [in] | conn_idx | Connection index.
  [in] | p_meas | Pointer to body composition measurement data.
  [in] | cache_num | The number of measurement caches.

Returns
  SDK_SUCCESS on success, otherwise an error code.

## ◆ bcs_service_init()

sdk_err_t bcs_service_init | ( | bcs_init_t * | p_bcs_init | ) |

Initialize a Body Composition Service instance and add in the DB.

Parameters

  [in] | p_bcs_init | Pointer to BC Service initialization variable.

Returns
  Result of service initialization.

## ◆ bcs_start_handle_get()

uint16_t* bcs_start_handle_get | ( | void |  | ) |

Get the pointer to the start handle of Body Composition Service.

Returns
  The pointer to the start handle.