MeasurementPeriod

data class MeasurementPeriod(val base: Int, val factor: Int = 1)

Measurement period defines how often the measurements are to be taken. Sensors of 'Continuous' type take measurement each base * factor. Sensors of 'Binary' type take measurement each base.

Constructors

Link copied to clipboard
constructor(base: Int, factor: Int = 1)

Properties

Link copied to clipboard
val base: Int

Base period value in seconds which states how often measurements are stored in device memory. For sensor with firmware version 6.0 and newer period corresponds to saving measurements of binary type. To obtain storing period for non-binary type, base period has to be multiplied by factor. Range: 1:65535.

Link copied to clipboard
val factor: Int

Period factor which is a multiplier used to define storing period for non-binary sensors. To obtain storing period for non-binary measurements, period factor has to be multiplied by base. Range: 1:65535.

Functions

Link copied to clipboard