Class: Toybox.AntPlus.ManufacturerInfo

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.

Example:

using Toybox.AntPlus;
using Toybox.System;

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

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

Since:

API Level 2.2.0

Supported Devices:

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var hwRevision as Lang.Number or Null

The Hardware revision.

Since:

API Level 2.2.0

Returns:

var manufacturerId as Lang.Number or Null

The Manufacturer ID.

Since:

API Level 2.2.0

Returns:

var modelNumber as Lang.Number or Null

The Model number.

Since:

API Level 2.2.0

Returns:

Instance Method Details

initialize()

Constructor

Since:

API Level 2.2.0


Generated Apr 17, 2024 9:40:39 AM