Skip to content

ConsoleDataManager

A data manager that prints each Measurement as JSON to the console.

Used for testing and debugging. Selected when the protocol's data endpoint has type DataEndPointTypes.PRINT. Nothing is stored, so all data is lost when the app stops.

Inheritance

Constructors

ConsoleDataManager

ConsoleDataManager()

Properties

type

String get type
override

The type of this data manager as enumerated in DataEndPointTypes.

Methods

onMeasurement

Future<void> onMeasurement(
  1. Measurement measurement
)
override

On each measurement collected, the onMeasurement handler is called.

Implementations of this interface should handle how to save or upload the measurement.