Class: Toybox::AntPlus::ManufacturerInfo

Inherits:
CommonData show all

Overview

A class containing information from the Manufacturer's Information ANT+ common page.

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

Examples:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.Device.getManufacturerInfo(); already called
var hwRevision = ManufacturerInfo.hwRevision;
var manufacurerId = ManufacturerInfo.manufacurerId;
var modelNumber = ManufacturerInfo.modelNumber;

System.println("Current hwRevision is: " + hwRevision);
System.println("Current manufacurerId is: " + manufacurerId);
System.println("Current modelNumber is: " + modelNumber);

Since:

  • 2.2.0

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

initializeManufacturerInfo

Constructor

Since:

  • 2.2.0


16546
16547
# File 'Monkeybrains.rb', line 16546

def initialize()
end

Instance Attribute Details

hwRevisionToybox::Lang::Number

The Hardware revision.

Returns:

Since:

  • 2.2.0


16532
16533
16534
# File 'Monkeybrains.rb', line 16532

def hwRevision
  @hwRevision
end

manufacturerIdToybox::Lang::Number

The Manufacturer ID.

Returns:

Since:

  • 2.2.0


16537
16538
16539
# File 'Monkeybrains.rb', line 16537

def manufacturerId
  @manufacturerId
end

modelNumberToybox::Lang::Number

The Model number.

Returns:

Since:

  • 2.2.0


16542
16543
16544
# File 'Monkeybrains.rb', line 16542

def modelNumber
  @modelNumber
end