Class: Toybox.Sensor.SensorInfo
- Inherits:
-
Toybox.Lang.Object
Overview
A class describing a Sensor
The SensorInfo provides access to the attributes of a Sensor.
Instance Member Summary collapse
-
data as Lang.Dictionary or Null
The Sensor-specific data A dictionary of sensor-specific attributes.
-
enabled as Lang.Boolean
The Sensor enabled flag.
-
manufacturerId as Lang.Number
The Sensor manufacturer.
-
name as Lang.String
The Sensor name.
-
partNumber as Lang.Number
The Sensor part number.
-
softwareVersion as Lang.Number
The Sensor software version.
-
technology as Sensor.SensorTechnology
The Sensor technology The technology used to communicate with this sensor.
-
type as Sensor.SensorType
The Sensor type.
Instance Attribute Details
var data as Lang.Dictionary or Null
The Sensor-specific data
A dictionary of sensor-specific attributes. Currently supported attributes include:
-
:bleAddress
- The mac address of the BLE sensor (e.g., 01:02:03:04:05:06) as a ByteArray, if available. -
:antSerialNumber
- The 20-bit ANT sensor serial number as a Number -
:bleScanResult
- The scanresult of a discovered BLE device as a ScanResult. -
:antMessage
- The ANT message of a discovered ANT device as a Message
var enabled as Lang.Boolean
The Sensor enabled flag.
An indicator of whether or not the sensor is enabled for pairing.
var manufacturerId as Lang.Number
The Sensor manufacturer.
The manufacturer id of the sensor. May be null
.
var name as Lang.String
The Sensor name.
The name of the sensor.
var partNumber as Lang.Number
The Sensor part number.
The part number the sensor. May be null
.
var softwareVersion as Lang.Number
The Sensor software version.
The software version of the sensor. May be null
.
var technology as Sensor.SensorTechnology
The Sensor technology
The technology used to communicate with this sensor.
var type as Sensor.SensorType
The Sensor type.
The type of the sensor.