tree: 1a7c7a318d8e79296e4c9261a23a4c26516a7fa9
  1. src/
  2. BUILD.gn
  3. README.md
src/connectivity/bluetooth/examples/bt-le-battery-service/README.md

BT LE Battery Service

This example demonstrates how to publish the system's battery level in a GATT battery service. When run, it adds the service to the local device database. It then responds to clients that make requests to this GATT service.

Usage:

Run the service with $ bt-le-battery-service. To enable advertisment of the Battery Service (BAS) on the host run $ bt-le-peripheral --name "FX BLE BATTERY" --service BAS.