examples/BLE Battery/README.md
This Serial Studio project visualizes the battery level from BLE devices, like iPhones, by connecting directly over Bluetooth Low Energy.
Works with any device that exposes the standard BLE Battery Service.
Bluetooth Low Energy defines a standard Battery Service:
0x180F0x2A19 — Battery Level (uint8, 0–100)Most BLE-enabled phones and peripherals support this. Serial Studio connects directly to this characteristic and decodes the raw value with a 1-byte binary read.
| Setting | Value |
|---|---|
| Data Conversion | Binary (Direct) |
| Frame Detection | No Delimiters |
| Checksum | None |
| Dataset Index | 1 |
| Value Range | 0–100 |
| Widget | Gauge, Plot |
| Units | % |
| Title | Battery Level |
Parser logic:
/**
* @brief Converts a byte-like iterable into an array of numbers.
*
* @param frame An iterable containing byte values (0–255).
* @return Array of numeric byte values.
*/
function parse(frame) {
return Array.from(frame);
}