Skip to contents

Query an Axivity device's battery level and health

Usage

axivity_get_battery(device_id)

Arguments

device_id

Integer device ID, as returned by axivity_discover().

Value

A list with level_pct (0-99% = charging, 100% = full) and recharge_cycles (lower is better).