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


16444
16445
16446
# File 'Monkeybrains.rb', line 16444

def identifier
  @identifier
end

numComponentsToybox::Lang::Number

Number of components in the system.

Returns:

Since:

  • 2.2.0


16449
16450
16451
# File 'Monkeybrains.rb', line 16449

def numComponents
  @numComponents
end