Class: $.MO2Sensor
Overview
Classes Under Namespace
Classes: MO2Data
Constant Summary
Constant Variables
| Type | Name | Value | Since | Description |
|---|---|---|---|---|
| Type | DEVICE_TYPE | 31 | ||
| Type | MO2_FIELD_ID | 0 | ||
| Type | PAGE_NUMBER | 1 | Page number for the message type we care about |
|
| Type | PERIOD | 8192 |
Instance Member Summary collapse
- _chanAssign as Ant.ChannelAssignment
- _data as MO2Sensor.MO2Data
- _deviceCfg as Ant.DeviceConfig
- _fitField as FitContributor.Field or Null
- _pastEventCount as Lang.Number or Null
- _searching as Lang.Boolean
- _session as ActivityRecording.Session
Instance Method Summary collapse
-
closeSensor() as Void
Close the ANT sensor and save the session.
-
getData() as MO2Sensor.MO2Data
Get the data for this sensor.
-
getDeviceConfig() as Ant.DeviceConfig
Get the device config for this channel.
-
initialize()
Constructor.
-
isSearching() as Lang.Boolean
Get whether the channel is searching.
-
onMessage(msg as Ant.Message) as Void
Update when a message is received.
-
open() as Lang.Boolean
Open an ANT channel.
-
setTime() as Void
Set the current time.
Instance Attribute Details
var _chanAssign as Ant.ChannelAssignment
var _data as MO2Sensor.MO2Data
var _deviceCfg as Ant.DeviceConfig
var _fitField as FitContributor.Field or Null
var _pastEventCount as Lang.Number or Null
var _searching as Lang.Boolean
var _session as ActivityRecording.Session
Instance Method Details
closeSensor() as Void
Close the ANT sensor and save the session
getData() as MO2Sensor.MO2Data
Get the data for this sensor
getDeviceConfig() as Ant.DeviceConfig
Get the device config for this channel
initialize()
Constructor
isSearching() as Lang.Boolean
Get whether the channel is searching
onMessage(msg as Ant.Message) as Void
Update when a message is received
open() as Lang.Boolean
Open an ANT channel
setTime() as Void
Set the current time