Class: Toybox.Ant.Message
- Inherits:
-
Toybox.Lang.Object
Overview
A class to hold and define the information in an ANT wireless data payload.
Constant Summary
Constant Variables
Type | Name | Value | Since | Description |
---|---|---|---|---|
Type | DATA_PAYLOAD_LENGTH | 8 | API Level 1.0.0 |
Instance Member Summary collapse
-
deviceNumber as Lang.Number or Null
The Unique device number (ANT-id).
-
deviceType as Lang.Number or Null
A 1-Byte device type identifier.
-
length as Lang.Number or Null
Number of data bytes in the data payload (not including any extended data if applicable).
-
messageId as Lang.Number or Null
The Data Type Identifier.
-
rssi as Lang.Number or Null
The Received Signal Strength Indication.
-
timestamp as Lang.Number or Null
The time stamp of received message generated off of a 32.768 kHz clock.
-
transmissionType as Lang.Number or Null
The manufacturer-specific transport type and extended device number.
Instance Method Summary collapse
-
getPayload() as Lang.Array<Lang.Number>
Get the ANT data packet.
-
setPayload(data as Lang.Array<Lang.Number>) as Void
Set the ANT data packet.
Instance Attribute Details
var deviceNumber as Lang.Number or Null
The Unique device number (ANT-id).
var deviceType as Lang.Number or Null
A 1-Byte device type identifier.
var length as Lang.Number or Null
Number of data bytes in the data payload (not including any extended data if applicable).
var messageId as Lang.Number or Null
The Data Type Identifier
var rssi as Lang.Number or Null
The Received Signal Strength Indication.
var timestamp as Lang.Number or Null
The time stamp of received message generated off of a 32.768 kHz clock.
Rolls over every 2 seconds.
var transmissionType as Lang.Number or Null
The manufacturer-specific transport type and extended device number.
Instance Method Details
getPayload() as Lang.Array<Lang.Number>
Get the ANT data packet.
setPayload(data as Lang.Array<Lang.Number>) as Void
Set the ANT data packet.