Class: Toybox.Ant.DeviceConfig
- Inherits:
-
Toybox.Lang.Object
Overview
A class to define the ANT wireless channel device configuration.
See Also:
Constant Summary
Constant Variables
Type | Name | Value | Since | Description |
---|---|---|---|---|
Type | DEFAULT_DEVICE_NUMBER | 123 | API Level 1.0.0 |
The default values for a device configuration |
Type | DEFAULT_DEVICE_TYPE | 1 | API Level 1.0.0 |
|
Type | DEFAULT_MESSAGE_PERIOD | 8192 | API Level 1.0.0 |
|
Type | DEFAULT_NETWORK_KEY | 0 | API Level 1.2.0 |
|
Type | DEFAULT_RADIO_FREQUENCY | 10 | API Level 1.0.0 |
|
Type | DEFAULT_SEARCH_TIMEOUT_HIGH | 0 | API Level 1.0.0 |
|
Type | DEFAULT_SEARCH_TIMEOUT_LOW | 6 | API Level 1.0.0 |
|
Type | DEFAULT_THRESHOLD | 0 | API Level 1.0.0 |
|
Type | DEFAULT_TRANSMISSION_TYPE | 0 | API Level 1.0.0 |
|
Type | NETWORK_KEY_LENGTH_128BIT | 16 | API Level 1.2.0 |
|
Type | NETWORK_KEY_LENGTH_64BIT | 8 | API Level 1.2.0 |
Network key lengths |
Typedef Summary collapse
- NetworkKey128Bit as [ Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number ]
- NetworkKey64Bit as [ Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number ]
Instance Member Summary collapse
-
deviceNumber as Lang.Number
The unique device number (ANT-id).
-
deviceType as Lang.Number
A 1-Byte device type identifier.
-
messagePeriod as Lang.Number
The Message period that the sensor uses.
-
networkKey128Bit as DeviceConfig.NetworkKey128Bit or Null
A 128 bit network key.
-
networkKey64Bit as DeviceConfig.NetworkKey64Bit or Null
A 64 bit network key.
-
radioFrequency as Lang.Number
The radio frequency that the sensor operates on.
-
searchThreshold as Lang.Number
The proximity threshold bin.
-
searchTimeoutHighPriority as Lang.Number
High Priority search timeout that a receiving channel will wait for in order to start tracking a master * Measured in 2.5s increments * Limited to a maximum of 5 seconds (Range of 0 to 2).
-
searchTimeoutLowPriority as Lang.Number
The low Priority search timeout that a receiving channel will wait for in order to start tracking a master * Measured in 2.5s increments * Limited to a maximum of 30 seconds (Range of 0 to 12).
-
transmissionType as Lang.Number
The manufacturer-specific transport type and extended device number.
Instance Method Summary collapse
-
initialize(options as { :deviceNumber as Lang.Number, :deviceType as Lang.Number, :transmissionType as Lang.Number, :messagePeriod as Lang.Number, :radioFrequency as Lang.Number, :searchTimeoutLowPriority as Lang.Number, :searchTimeoutHighPriority as Lang.Number, :searchThreshold as Lang.Number, :networkKey64Bit as DeviceConfig.NetworkKey64Bit, :networkKey128Bit as DeviceConfig.NetworkKey128Bit })
Constructor.
Instance Attribute Details
var deviceNumber as Lang.Number
The unique device number (ANT-id)
var deviceType as Lang.Number
A 1-Byte device type identifier
var messagePeriod as Lang.Number
The Message period that the sensor uses
var networkKey128Bit as DeviceConfig.NetworkKey128Bit or Null
A 128 bit network key
var networkKey64Bit as DeviceConfig.NetworkKey64Bit or Null
A 64 bit network key
var radioFrequency as Lang.Number
The radio frequency that the sensor operates on
var searchThreshold as Lang.Number
The proximity threshold bin
var searchTimeoutHighPriority as Lang.Number
High Priority search timeout that a receiving channel will wait for in order to start tracking a master
-
Measured in 2.5s increments
-
Limited to a maximum of 5 seconds (Range of 0 to 2)
var searchTimeoutLowPriority as Lang.Number
The low Priority search timeout that a receiving channel will wait for in order to start tracking a master
-
Measured in 2.5s increments
-
Limited to a maximum of 30 seconds (Range of 0 to 12)
var transmissionType as Lang.Number
The manufacturer-specific transport type and extended device number
Instance Method Details
initialize(options as { :deviceNumber as Lang.Number, :deviceType as Lang.Number, :transmissionType as Lang.Number, :messagePeriod as Lang.Number, :radioFrequency as Lang.Number, :searchTimeoutLowPriority as Lang.Number, :searchTimeoutHighPriority as Lang.Number, :searchThreshold as Lang.Number, :networkKey64Bit as DeviceConfig.NetworkKey64Bit, :networkKey128Bit as DeviceConfig.NetworkKey128Bit })
Constructor