[Tinyos-help] MTS300/Temperature

Alexandre Besse alexandre.besse at etu.u-bordeaux1.fr
Thu Mar 8 08:03:31 PST 2007


Hello,

I would like to take the External Temperature with my sensor.
Which component must I choose: PhotoTemp?
Which configuration and implementation should I use?
For the moment,in the PC (using TOSBase), I've got data representing  
temperature equals to 77 (78, or 79).Is that correct?

The data are coding on 2 bytes.(packet[1] and packet[2]).
I do :(java doesn't know unsigned int)
temp += unsignedByteToInt(packet[1]) << 0;
temp += unsignedByteToInt(packet[2]) << 8;

Thanks,



More information about the Tinyos-help mailing list