02-09-2021 00:19
02-09-2021 00:19
The third example on the page https://dev.fitbit.com/build/guides/sensors/heart-rate/ has two errors:
The line that reads
[${hrm.readings.bpm[index]}]`
should say heartRate instead of bpm
And the third from final line is missing a ) between } and ;
As a side note, I don't seem to be able to get any behavioral difference from changing the "frequency" parameter of HeartRateSensor - I get the "batch" number of readings after "batch" seconds no matter what values I use for frequency.
Thanks for reading.
02-11-2021 03:18
02-11-2021 03:18
Thanks, I've submitted a fix for the documentation. The sensor frequency for the HRM is 1hz, so that might explain it.