Functions
Functions
BLE Services » Glucose Service (GLS)
Collaboration diagram for Functions:

## Functions
sdk_err_t | gls_service_init (gls_init_t *p_gls_init)
| Initialize a Glucose Service instance and add in the DB. More...
bool | gls_new_meas_record (gls_rec_t *p_rec)
| Record a new glucose measurement. More...
sdk_err_t | gls_racp_rsp_send (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Send RACP responce if indication has been enabled. More...

## Detailed Description

## Function Documentation

## ◆ gls_new_meas_record()

bool gls_new_meas_record | ( | gls_rec_t * | p_rec | ) |

Record a new glucose measurement.

Parameters

  [in] | p_rec | Pointer to glucose record (measurement plus context).

Returns
  If record successfully or not.

## ◆ gls_racp_rsp_send()

sdk_err_t gls_racp_rsp_send | ( | uint8_t | conn_idx,
|  | uint8_t * | p_data,
|  | uint16_t | length
| ) |  |

Send RACP responce if indication has been enabled.

Parameters

  [in] | conn_idx | Connnection index.
  [in] | p_data | Pointer to data.
  [in] | length | Length of data.

Returns
  Result of indicate value

## ◆ gls_service_init()

sdk_err_t gls_service_init | ( | gls_init_t * | p_gls_init | ) |

Initialize a Glucose Service instance and add in the DB.

Parameters

  [in] | p_gls_init | Pointer to gls_init_t Service initialization variable

Returns
  Result of service initialization.