Class: Toybox.AntPlus.BatteryStatus

Overview

A class containing information from the Battery Status ANT+ common page.

Fields may return null so you should null check values before using them.

See Also:

Since:

API Level 2.2.0

Supported Devices:

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var batteryStatus as AntPlus.BatteryStatusValue or Null

The BATT_STATUS_* value of the battery.

Since:

API Level 2.2.0

Returns:

  • Lang.Number

    The battery status of the ANT+ device as a number

var batteryVoltage as Lang.Float or Null

The voltage, -1 is invalid

Since:

API Level 2.2.0

Returns:

var operatingTime as Lang.Number or Null

The operating time in seconds.

Since:

API Level 2.2.0

Returns:

  • Lang.Number

    The operating time of the ANT+ device

Instance Method Details

initialize()

Constructor

Since:

API Level 2.2.0


Generated Mar 18, 2024 2:40:16 PM