Class: Toybox::AntPlus::BatteryStatus

Inherits:
CommonData show all

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.

Instance Attribute Summary collapse

Attributes inherited from CommonData

identifier, numComponents

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initializeBatteryStatus

Constructor

Since:

  • 2.2.0


14739
14740
# File 'Monkeybrains.rb', line 14739

def initialize()
end

Instance Attribute Details

batteryStatusToybox::Lang::Number

The BATT_STATUS_* value of the battery.

Returns:

Since:

  • 2.2.0


14725
14726
14727
# File 'Monkeybrains.rb', line 14725

def batteryStatus
  @batteryStatus
end

batteryVoltageToybox::Lang::Float

The voltage, -1 is invalid

Returns:

Since:

  • 2.2.0


14735
14736
14737
# File 'Monkeybrains.rb', line 14735

def batteryVoltage
  @batteryVoltage
end

operatingTimeToybox::Lang::Number

The operating time in seconds.

Returns:

Since:

  • 2.2.0


14730
14731
14732
# File 'Monkeybrains.rb', line 14730

def operatingTime
  @operatingTime
end