downloadMeasurements

abstract suspend fun downloadMeasurements(startDate: Long? = null, endDate: Long? = null, updateProgress: suspend (progress: Progress) -> Unit): Map<Channel, List<MeasurementsPacket>>

Start operation which will transfer measurements from a given time range defined by optional startDate and endDate timestamp constraints.

Return

map of measurement packets for each channel

Parameters

startDate

timestamp in epoch seconds of first measurements to be downloaded or null if time range should not be limited from the start

endDate

timestamp in epoch seconds of last measurements to be downloaded or null if time range should not be limited form the end