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


16505
16506
# File 'Monkeybrains.rb', line 16505

def initialize()
end

Instance Attribute Details

batteryStatusToybox::Lang::Number

The BATT_STATUS_* value of the battery.

Returns:

Since:

  • 2.2.0


16491
16492
16493
# File 'Monkeybrains.rb', line 16491

def batteryStatus
  @batteryStatus
end

batteryVoltageToybox::Lang::Float

The voltage, -1 is invalid

Returns:

Since:

  • 2.2.0


16501
16502
16503
# File 'Monkeybrains.rb', line 16501

def batteryVoltage
  @batteryVoltage
end

operatingTimeToybox::Lang::Number

The operating time in seconds.

Returns:

Since:

  • 2.2.0


16496
16497
16498
# File 'Monkeybrains.rb', line 16496

def operatingTime
  @operatingTime
end