I think I may have asked this before, is it possible to display heart rate in a Connect IQ watch app?
It works in the simulator, but not on the watch, is there something special I need to do to get it to work on the watch?
I think I may have asked this before, is it possible to display heart rate in a Connect IQ watch app?
It works in the simulator, but not on the watch, is there something special I need to do to get it to work on the watch?
For a watch face on a device with WHR, what's typically done is start with Activity.getActivityInfo().currentHeartrate
if that's null, grab the newest sample fromgetHeartrateHistory, but it too cold be null or 255 (invalid)
for a widget or device app, you want to use
Sensor.setEnabledSensors( [Sensor.SENSOR_HEARTRATE] ); and then look at Sensor.getInfo().heartrate.
This will also connect to an external HRM is one is paired.