type alias BatteryInfo

The battery state in <BatteryInfo>.

Properties

channelId: number

Zero-based channel.

chargeStatus: "none" | "charging" | "chargeComplete"

Charging state.

adapterStatus: "none" | "adapter" | "solarPanel"

What the battery charges from.

voltage: number

Battery voltage, unsigned; the unit is not established.

current: number

Battery current, signed; the unit is not established.

Battery temperature, signed; the unit is not established.

Charge level in percent.

lowPower: number

Low battery flag.

Battery type as a number; the firmware does not name the values.

Usage

import { type BatteryInfo } from "protocol/params/mod.ts";