BATTERY Application Handle Functions
APP_BAS API Brief
Application |
Brief |
|---|---|
Initialize BLE basery service (BAS) |
|
BLE Battery Service (BAS) connection completed |
APP_BAS API Reference
Header File
Functions
-
void app_bas_init(void)
Initialize BLE battery service (BAS).
Initialize and mount the BLE Battery Service (BAS).
- 返回:
N/A
-
void _app_bas_update_batt_lvl(uint8_t bat_per, bool force_update)
BLE Battery Service (BAS) connection completed.
Launch the user’s battery application once the BLE Battery Service (BAS) connection is established.
- 参数:
bat_per – [in] battery percent value
force_update – [in] force send notify to the remote device
- 返回:
N/A