Package-level declarations

Functions

Link copied to clipboard
fun Peripheral.batteryLevelNotifications(backpressure: BackpressureStrategy = BackpressureStrategy.Latest): Flow<Int>

Observes battery level notifications from the Battery Service (0x180F).

Link copied to clipboard

Parses a Battery Level characteristic value (0x2A19).

Link copied to clipboard
suspend fun Peripheral.readBatteryLevel(): Int?

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