For my Watch App need to use the AntPlus API to access the power meter so I can access the deviceID.
I also want to be able to read Heartrate data.
Despite Heartrate being used as an example in the CIQ api docs, there isn't actually an AntPlus listener for Heart Rate devices.
So I need to use the Sensor API for the heartrate data.
However when I do this EITHER the bike power OR the heart rate data are displayed, but never both at the same time. Seems a bit random. For example, to debug I put in some Sys.println calls in my initialisation routines, but this resulted in the heartrate showing, but the bike power not showing.
The behavior is also different in the emulator to the actual device - bike power might show in the emulator but not heart rate, but the reverse on the device.
I imagine there is some race condition going on explaining the random behavior, but fundamentally is there a reason why Sensor and AntPlus APIs cannot be used simultaneously?
Is there another way around this?
Why is there not AntPlus listener for heartrate monitors? Seems like a bit of a weird omission.
Thanks!!