Class: Toybox::SensorHistory::SensorSample

Inherits:
Lang::Object show all

Overview

A class containing sensor data at a given time.

Since:

  • 2.1.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

dataToybox::Lang::Number, Toybox::Lang::Float

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.

Returns:

Since:

  • 2.1.0


10042
10043
10044
# File 'Monkeybrains.rb', line 10042

def data
  @data
end

whenToybox::Time::Moment

The time of the Sensor sample.

Returns:

Since:

  • 2.1.0


10047
10048
10049
# File 'Monkeybrains.rb', line 10047

def when
  @when
end