Class: Toybox::AntPlus::CommonData

Inherits:
Lang::Object show all

Overview

The CommonData object represents the information shared across all common data types.

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

Since:

  • 2.2.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

identifierToybox::Lang::Number

The Component Identifier.

Component IDs are defined on a by-ANT+-profile basis.

Returns:

  • (Toybox::Lang::Number)

    The identifier as a Number

    • null if single-component

    • Light index for bike lights.

Since:

  • 2.2.0


14705
14706
14707
# File 'Monkeybrains.rb', line 14705

def identifier
  @identifier
end

numComponentsToybox::Lang::Number

Number of components in the system.

Returns:

Since:

  • 2.2.0


14710
14711
14712
# File 'Monkeybrains.rb', line 14710

def numComponents
  @numComponents
end