setPeriod

abstract suspend fun setPeriod(period: MeasurementPeriod, resetMemory: Boolean, updateProgress: suspend (progress: Progress) -> Unit = {})

Command for setting the measurement period of sensor. When executed on sensors 4.x and 5.x all readings are erased from memory.

Parameters

period

Measurement period

resetMemory

If true then all measurements will be deleted from sensor (supported only by v6 sensors and newer)

updateProgress

Progress of the operation