Class: Toybox::AntPlus::BikeSpeedCadence

Inherits:
Device show all

Overview

Represents a Bike Speed and Cadence Device instance.

Examples:

using Toybox.AntPlus;

// Assuming Valid BikeSpeedCadenceListener object "MyBikeSpeedCadenceListener"

// Initialize the AntPlus.BikeSpeedCadenceListener object
listener = new MyBikeSpeedCadenceListener();

// Initialize the AntPlus.BikeSpeedCadence object with a listener
bikeSpeedCadence = new AntPlus.BikeSpeedCadence(listener);

var speedCadenceInfo = bikeSpeedCadence.getSpeedCadenceInfo();

// ...etc

Since:

  • 3.0.0

Radar Threat Side collapse

Methods inherited from Device

getBatteryStatus, getComponentIdentifiers, getDeviceState, getManufacturerInfo, getProductInfo

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(listener) ⇒ BikeSpeedCadence

The initializer for the device object takes an extension of the BikeSpeedCadenceListener class as a parameter. null can be passed in instead if the user plans to only poll for data using the getSpeedCadenceInfo method.

Parameters:

Since:

  • 3.0.0


16068
16069
# File 'Monkeybrains.rb', line 16068

def initialize(listener)
end

Instance Method Details

getSpeedCadenceInfoBikeSpeedCadenceInfo

getSpeedCadenceInfo - Returns the most recent BikeSpeedCadenceInfo

Returns:

Since:

  • 3.0.0


16074
16075
# File 'Monkeybrains.rb', line 16074

def getSpeedCadenceInfo()
end