anyone have some simple example code, just the current heartrate will due.
tia
var hrh=ActMon.getHeartRateHistory(1,true);
var hrs=hrh.next();
if(hrs!=null && hrs.heartRate!=ActMon.INVALID_HR_SAMPLE) {
hr=hrs.heartRate.toString();
}
else {hr="--";}
dc.drawText(centerW,85,Gfx.FONT_NUMBER_HOT,hr,Gfx.TEXT_JUSTIFY_CENTER);
oh, you should be able to check if the watch has what's needed with:
if(ActivityMonitor has :HeartRateIterator) {