readBatteryLevel

suspend fun Peripheral.readBatteryLevel(): Int?

Reads the current battery level from the Battery Service (0x180F).

Return

Battery percentage (0–100), or null if the service or characteristic is absent.