i am struggling to get info from an ANT- device in ConnectIQ on Edge520.
In my page initializer I have this code:
if (Toybox.AntPlus has :BikeSpeed)
{
bscListener = new AntPlus.BikeSpeedListener();
bikeSpeed = new AntPlus.BikeSpeedCadence(bscListener);
}
else
{
Sys.println("Sensor not found");
}
But when I run it the "Sensor not found" message appears. I have confirmed in the simulator that it is connecting to a bike speed cadence sensor, so I don't understand what I am doing wrong. Am I missing something?