Access a Heart Rate Monitor data from Gear 2 device
An example of accessing a heart rate monitor data from Gear 2 device
PRIVILEGES:
http://developer.samsung.com/privilege/healthinfo
http://developer.samsung.com/privilege/medicalinfo
//starts the HRM sensor
function hrmStart(){
webapis.motion.start("HRM", function(hrmData){
//process the HRM data
console.log(hrmData.heartRate);
console.log(hrmData.rRInterval);
});
}
//stops the HRM sensor
function hrmStop(){
webapis.motion.stop("HRM");
}