I am wondering if there is a way to retrieve the heart bpm and confidence values by polling rather than using a listenner. In a multiclock format - the problem for me is variables being out of scope when the listenner gets called. I can do it with a listenner (as I have done with GPS fixes that I wanted to share between two multiclock watch faces) but it would be much simpler if I could just do
`
let bpm = HRM.getBpm();
let confidence = HRM.getConfidence();
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I am wondering if there is a way to retrieve the heart bpm and confidence values by polling rather than using a listenner. In a multiclock format - the problem for me is variables being out of scope when the listenner gets called. I can do it with a listenner (as I have done with GPS fixes that I wanted to share between two multiclock watch faces) but it would be much simpler if I could just do
`
let bpm = HRM.getBpm(); let confidence = HRM.getConfidence();