Functions
Functions
BLE Services » Weight Scale Service (WSS)
Collaboration diagram for Functions:

## Functions
sdk_err_t | wss_service_init (wss_init_t *p_wss_init, uint16_t *p_bcs_start_handle)
| Initialize a Weight Scale Service instance and add in the DB. More...
sdk_err_t | wss_measurement_send (uint8_t conn_idx, wss_meas_val_t *p_meas, uint8_t cache_num)
| Send Weight Scale Measurement indication. More...

## Detailed Description

## Function Documentation

## ◆ wss_measurement_send()

sdk_err_t wss_measurement_send | ( | uint8_t | conn_idx,
|  | wss_meas_val_t * | p_meas,
|  | uint8_t | cache_num
| ) |  |

Send Weight Scale Measurement indication.

Parameters

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

Returns
  Result of indicate value.

## ◆ wss_service_init()

sdk_err_t wss_service_init | ( | wss_init_t * | p_wss_init,
|  | uint16_t * | p_bcs_start_handle
| ) |  |

Initialize a Weight Scale Service instance and add in the DB.

Parameters

  [in] | p_wss_init | Pointer to WSS Service initialization variable.
  [in] | p_bcs_start_handle | Pointer to the included service(BCS) start handle.

Returns
  Result of service initialization.