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


16471
16472
16473
# File 'Monkeybrains.rb', line 16471

def identifier
  @identifier
end

numComponentsToybox::Lang::Number

Number of components in the system.

Returns:

Since:

  • 2.2.0


16476
16477
16478
# File 'Monkeybrains.rb', line 16476

def numComponents
  @numComponents
end