The following code works in the simulator but not on my Fenix 3. Sensor.getInfo().temperature is always set to null, therefore the temperature is never displayed.
Any hints?
Thanks
Jesus
celsius = Sensor.getInfo().temperature;
if (celsius == null) {
return;
}
if (app.tempUnits == FAHRENHEIT) {
findDrawableById("temp").setText((1.8*celsius+32).toNumber().toString());
findDrawableById("tempUnits").setText("F");
} else {
findDrawableById("temp").setText(celsius.toNumber().toString());
findDrawableById("tempUnits").setText("C");
}