Ticket Created
over 2 years ago

CIQQA-1329

Oldest and newest sample time of the body battery and stress iterator are not properly initialized

The time values returned by getOldestSampleTime() and getNewestSampleTime() of the iterators SensorHistory.getBodyBatteryHistory() and SensorHistory.getStressHistory() do not relate to the times of returned samples. The time values seem to be random. Repeated calls which return the exact same samples return varying oldest and newest times.

The issue has been observed on a Fenix7X with firmware 8.35 (beta) and
on a Vivoactive4 with latest official firmware as of this writing.

A workaround is to manually calculate oldest and newest time by going through all samples.

There is no issue with the old history data sources like heart rate, temperature etc. except the
oxygen saturation history is still not working. It does not return any valid data at all.

Parents
  • hi,

    in my case, getNewestSampleTime() return a right value, but getOldestSampleTime() often return 0,

    on real device and on simulator.

    F7SS 8.21

    Eclipse updated, last SDK, windows 10

    How to reproduce:

    var It = Toybox.SensorHistory.getBodyBatteryHistory({});

    var Old = It.getOldestSampleTime(), New = It.getNewestSampleTime();

    Sys.println = New.value() - Old.value(); (most of the time this equal Newest)

    (it is an exemple, of course I always check for has and null)

     

Comment
  • hi,

    in my case, getNewestSampleTime() return a right value, but getOldestSampleTime() often return 0,

    on real device and on simulator.

    F7SS 8.21

    Eclipse updated, last SDK, windows 10

    How to reproduce:

    var It = Toybox.SensorHistory.getBodyBatteryHistory({});

    var Old = It.getOldestSampleTime(), New = It.getNewestSampleTime();

    Sys.println = New.value() - Old.value(); (most of the time this equal Newest)

    (it is an exemple, of course I always check for has and null)

     

Children