Hi all,
I'm developing a personal app and I'm not able to show the internal sensor temperature. I know its not so accurate, but this is not important for me.
In the emulator runs ok but when I port to my watch not show value.
Thanks
Julian
Hi all,
I'm developing a personal app and I'm not able to show the internal sensor temperature. I know its not so accurate, but this is not important for me.
In the emulator runs ok but when I port to my watch not show value.
Thanks
Julian
You use the most recent reading in SensorHistory.getTemperatureHistory().
On the watch, Senor.Info.temperature will only have a value if a tempe is connected.
Ok. Many thanks
I'll test this night.
I received an array whith different values but I cant see last readed value. I'm doing something wrong? Thanks
You get an iterator for all the samples. When you request it you can specify newest first.
Then you do something like this to get the first sample:
if(iter!=null) {
min=iter.getMin();
max=iter.getMax();
var sample=iter.next();
cur=sample.data;
and cur has the latest sample's data
Thanks for your support. Runs perfect!!