Class: Toybox.SensorHistory.SensorSample
- Inherits:
-
Toybox.Lang.Object
Overview
A class containing sensor data at a given time.
Instance Member Summary collapse
-
data as Lang.Number or Lang.Float or Null
The Sensor sample.
-
when as Time.Moment
The time of the Sensor sample.
Instance Attribute Details
var data as Lang.Number or Lang.Float or Null
The Sensor sample.
The Sensor sample may contain invalid data. Make sure to has
check
for invalid samples. If the samples do not contain data, they will
return null
.
var when as Time.Moment
The time of the Sensor sample.