07-13-2021 09:51
07-13-2021 09:51
Suppose I have the following code:
let heart = new HeartRateSensor();
heart.addEventListener("reading", () => {
console.log("called")
})
heart.start()
It doesn't log anything if I don't to drag the rate slide bar in the simulator. I want the real device to read heart rate even if the rate isn't changing.
Answered! Go to the Best Answer.
07-13-2021 13:21
07-13-2021 13:21
07-13-2021 13:21
It does.