Functions
Functions
BLE Services » Battery Service Client (BAS_C)
Collaboration diagram for Functions:

## Functions
sdk_err_t | bas_client_init (bas_c_evt_handler_t evt_handler)
| Register BAS Client event handler. More...
sdk_err_t | bas_c_disc_srvc_start (uint8_t conn_idx)
| Discovery Battery Service on peer. More...
sdk_err_t | bas_c_bat_level_notify_set (uint8_t conn_idx, bool is_enable)
| Enable or disable peer Battery Level characteristic notify. More...
sdk_err_t | bas_c_bat_level_read (uint8_t conn_idx)
| Read Battery Level characteristic value. More...

## Detailed Description

## Function Documentation

## ◆ bas_c_bat_level_notify_set()

sdk_err_t bas_c_bat_level_notify_set | ( | uint8_t | conn_idx,
|  | bool | is_enable
| ) |  |

Enable or disable peer Battery Level characteristic notify.

Parameters

  [in] | conn_idx | Index of connection.
  [in] | is_enable | true or false.

Returns
  Operation result.

## ◆ bas_c_bat_level_read()

sdk_err_t bas_c_bat_level_read | ( | uint8_t | conn_idx | ) |

Read Battery Level characteristic value.

Parameters

  [in] | conn_idx | Index of connection.

Returns
  Operation result.

## ◆ bas_c_disc_srvc_start()

sdk_err_t bas_c_disc_srvc_start | ( | uint8_t | conn_idx | ) |

Discovery Battery Service on peer.

Parameters

  [in] | conn_idx | Index of connection.

Returns
  Operation result.

## ◆ bas_client_init()

sdk_err_t bas_client_init | ( | bas_c_evt_handler_t | evt_handler | ) |

Register BAS Client event handler.

Parameters

  [in] | evt_handler | Battery Service Client event handler.

Returns
  Result of initialization.