Class: Toybox.AntPlus.ProductInfo

Overview

Class containing information from the Product 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.getProductInfo(); already called
var serial = ProductInfo.serial;
var swRevisionMain = ProductInfo.swRevisionMain;
var swRevisionSupplemental = ProductInfo.swRevisionSupplemental;

System.println("Current serial is: " + serial);
System.println("Current swRevisionMain is: " + swRevisionMain);
System.println("Current swRevisionSupplemental is: " + swRevisionSupplemental);

Since:

API Level 2.2.0

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var serial as Lang.Number or Null

The serial number.

Since:

API Level 2.2.0

Returns:

var swRevisionMain as Lang.Number or Null

The main software revision.

Since:

API Level 2.2.0

Returns:

  • Lang.Number

    The main software revision of the product

var swRevisionSupplemental as Lang.Number or Null

The supplemental software revision.

Since:

API Level 2.2.0

Returns:

  • Lang.Number

    The supplemental software revision of the product

Instance Method Details

initialize()

Constructor

Since:

API Level 2.2.0


Generated Dec 11, 2024, 8:58:42 AM