Class: Toybox.SensorLogging.SensorLogger

Overview

Class for the SensorLogger object. This object gets passed to FIT session to start recording sensor data.

Since:

API Level 2.3.0

Instance Method Summary collapse

Instance Method Details

getStats() as SensorLogging.SensorLoggingStats or Null

Get statistics for the data gathered in the current session.

Returns:

Since:

API Level 2.3.0

getStats2(sensor as Lang.Symbol or Null) as SensorLogging.SensorLoggingStats or { :accelerometer as SensorLogging.SensorLoggingStats, :gyroscope as SensorLogging.SensorLoggingStats, :magnetometer as SensorLogging.SensorLoggingStats }

Get statistics for the sensor data gathered in the current session.

Parameters:

  • sensor

    Symbol for the sensor type to get the logging stats for or null to get stats about all the enabled sensors.

Returns:

Since:

API Level 3.3.0

Throws:

initialize(options as { :accelerometer as { :enabled as Lang.Boolean }, :gyroscope as { :enabled as Lang.Boolean }, :magnetometer as { :enabled as Lang.Boolean } })

Constructor

Note:

A SensorLogger may be initialized with the same dictionary of options provided to registerSensorDataListener(), but only the options documented below will be used.

Parameters:

Since:

API Level 2.3.0


Generated Jun 6, 2024 10:31:54 AM