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


14780
14781
# File 'Monkeybrains.rb', line 14780

def initialize()
end

Instance Attribute Details

hwRevisionToybox::Lang::Number

The Hardware revision.

Returns:

Since:

  • 2.2.0


14766
14767
14768
# File 'Monkeybrains.rb', line 14766

def hwRevision
  @hwRevision
end

manufacturerIdToybox::Lang::Number

The Manufacturer ID.

Returns:

Since:

  • 2.2.0


14771
14772
14773
# File 'Monkeybrains.rb', line 14771

def manufacturerId
  @manufacturerId
end

modelNumberToybox::Lang::Number

The Model number.

Returns:

Since:

  • 2.2.0


14776
14777
14778
# File 'Monkeybrains.rb', line 14776

def modelNumber
  @modelNumber
end