Skip to content

BatteryService

rf24_py.BatteryService

BatteryService()

A BLE data service for broadcasting a battery's remaining charge (as a percentage).

Conforms to Battery Level format as defined in GATT Specifications Supplement.

data property writable

data: int

The battery charge level (as integer percentage) data.

buffer property

buffer: bytes

Transform the service data into a BLE compliant buffer that is ready for broadcasting.