Assuming a code snippet like this one:
hrm.onreading = function() {
console.log("Zone: " + user.heartRateZone(hrm.heartRate));
}
What are all potential Zone values one could get? I want to have an if statement doing something different on each zone but can't seem to find the values listed anywhere.
Answered! Go to the Best Answer.
Best AnswerThe different zones are listed here. From hight to low you have: peak zone, cardio zone, fatburn zone and out of zone. There is also the possibility of a custom zone which you can set yourself apparently.
I don't know how they will come out of 'hrm.heartRate' but I guess you'll figure that out if you print one out 🙂
Best Answer