Acknowledged
over 1 year ago

getStressHistory() useless on FR255?

I've been trying to use SensorHistory.getStressHistory() on my FR255 (with firmware 19.18)

I get an iterator back but it always seems to be empty.  I've tried passing either a Time.Duration or an integer number of samples desired.

Oddly, if I pass a large integer I can cause an out of memory CIQ error, even though any successful return seems to be empty.

  • Sorry for the late response. I was able to get stress history using the sample app provided with the SDK on a Forerunner 255. I'd recommend taking a look at the sample code to see if your projects code is doing something differently.

  • I think so.  I made my code log how many entries it got in the iterator and wore it for hours. Taking it off and checking the log later, it was zero entries on every report still visible in the log.

    I have a stress bar on my watchface, that I believe is coming from the Toybox.ActivityMonitor.getInfo() stressScore field, and could see the value change.

  • Have you been wearing the device long enough to record some stress history? We had a similar report recently on Instinct 2 that we were unable to reproduce as long as we had history available on the device.