| Airoha M0 BLE API 1.0.5.4

Data Structures | Functions
service_battery.h

## Data Structures
struct | mesh_init_para
| mesh service initialization Parameters More...

## Functions
void | BAS_init (bool support_notification)
| Initialization function of battery service. More...
void | BAS_update_battery_level (uint8_t level, bool notify_after_update)
| Update battery level. More...

## Detailed Description

### service_battery.h

service_battery.h provides an easy way to implement battery service.

### service_mesh.h

service_mesh.h provides an easy way to implement mesh service.

## Function Documentation

## ◆ BAS_init()

void BAS_init | ( | bool | support_notification | ) |

Initialization function of battery service.

Parameters

  support_notification | 1:support/0:not support.

Returns
  None.

## ◆ BAS_update_battery_level()

void BAS_update_battery_level | ( | uint8_t | level,
|  | bool | notify_after_update
| ) |  |

Update battery level.

Parameters

  level | Battery level. Valid range: 0~100
  notify_after_update | 1:Update battery level and use notification procedure to notify GATT client. 0:Update battery level characteristic value.

Returns
  None.