Class: $.AntModule.AntSensor
- Inherits:
-
Ant.GenericChannel
-
Ant.GenericChannel
-
Overview
Instance Member Summary collapse
- _cryptoConfig as Ant.CryptoConfig
- _data as Lang.String
- _deviceCfg as Ant.DeviceConfig
- _encrypted as Lang.Boolean
- _index as Lang.Number
- _isMaster as Lang.Boolean
- _searching as Lang.Boolean
Instance Method Summary collapse
-
DecodeByteToASCII(bytes as Lang.Array<Lang.Number>) as Lang.String
Decode an array and return its ascii string equivalent.
-
disableEncryption() as Lang.Boolean
Disables encryption for master and decryption for slave.
-
enableChannelEncryption() as Void
Enables encryption for master and decryption for slave.
-
getData() as Lang.String
Get the sensor data.
-
getDeviceConfig() as Ant.DeviceConfig
Get the device configuration.
-
initialize(isChannelTypeMaster as Lang.Boolean)
Constructor, initializes AntSensor and configures and opens channel.
-
isEncrypted() as Lang.Boolean
Get whether the sensor is encrypted.
-
isMaster() as Lang.Boolean
Get whether the channel is master.
-
isSearching() as Lang.Boolean
Get whether the sensor is searching.
-
onMessage(msg as Ant.Message) as Void
On Ant Message, parses message.
-
open() as Lang.Boolean
Opens the generic channel.
-
updateData(bArray as Lang.Array<Lang.Number>) as Void
Adds the new message to data Maintains data stays within MAX_DATA_LENGTH.
Instance Attribute Details
var _cryptoConfig as Ant.CryptoConfig
var _data as Lang.String
var _deviceCfg as Ant.DeviceConfig
var _encrypted as Lang.Boolean
var _index as Lang.Number
var _isMaster as Lang.Boolean
var _searching as Lang.Boolean
Instance Method Details
DecodeByteToASCII(bytes as Lang.Array<Lang.Number>) as Lang.String
Decode an array and return its ascii string equivalent
disableEncryption() as Lang.Boolean
Disables encryption for master and decryption for slave
enableChannelEncryption() as Void
Enables encryption for master and decryption for slave
getData() as Lang.String
Get the sensor data
getDeviceConfig() as Ant.DeviceConfig
Get the device configuration
initialize(isChannelTypeMaster as Lang.Boolean)
Constructor, initializes AntSensor and configures and opens channel
isEncrypted() as Lang.Boolean
Get whether the sensor is encrypted
isMaster() as Lang.Boolean
Get whether the channel is master
isSearching() as Lang.Boolean
Get whether the sensor is searching
onMessage(msg as Ant.Message) as Void
On Ant Message, parses message
open() as Lang.Boolean
Opens the generic channel
updateData(bArray as Lang.Array<Lang.Number>) as Void
Adds the new message to data Maintains data stays within MAX_DATA_LENGTH