Ok .. before you laugh, I am a newbie at this. I design databases .. this is all new to me.
So here goes .. and a question ??
I would like to do the following .. spaghetti code.
At midnight .. display "--" on watch face
Upon first HR reading for the day .. display reading on watch face
On all subsequent readings ... check to see if it is lower then last reading. If it is .. display on watch face else discard it.
I understand that I can use HeartRateSample .. and I also need to store the HR value so I can check / compare it later.
So I have this .. and I know it is wrong. I do not have the device yet (building for a Vivoactive HR) which I will not have for a few weeks.
using Toybox.ActivityMonitor as Act;
var HRMin;
var HRInfo;
HRInfo = Act.getInfo();
HRMin = HRInfo.HeartRateSample;
dc.drawText(107,166,Gfx.FONT_SMALL, HRMin, Gfx.TEXT_JUSTIFY_RIGHT); // Draw Resting HR Value
I am wondering does HeartRateSample actually measure the HR value .. or does it just return the last HR value as read by the device ?
All it displays on the display is Class. I know nothing about classes. :(