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


16478
16479
# File 'Monkeybrains.rb', line 16478

def initialize()
end

Instance Attribute Details

batteryStatusToybox::Lang::Number

The BATT_STATUS_* value of the battery.

Returns:

Since:

  • 2.2.0


16464
16465
16466
# File 'Monkeybrains.rb', line 16464

def batteryStatus
  @batteryStatus
end

batteryVoltageToybox::Lang::Float

The voltage, -1 is invalid

Returns:

Since:

  • 2.2.0


16474
16475
16476
# File 'Monkeybrains.rb', line 16474

def batteryVoltage
  @batteryVoltage
end

operatingTimeToybox::Lang::Number

The operating time in seconds.

Returns:

Since:

  • 2.2.0


16469
16470
16471
# File 'Monkeybrains.rb', line 16469

def operatingTime
  @operatingTime
end