Back to project page android-weather-station.
The source code is released under:
Apache License
If you think the Android project android-weather-station listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.grundid.weather.sensor; //from ww w . jav a2 s . c o m public class OutsideSensor extends Sensor { public OutsideSensor(byte[] data) { super(data); } public double getTemperature() { return (double)calc14Bit(getByte(2), getByte(3)) / 10; } public int getTemperatureInt() { return calc14Bit(getByte(2), getByte(3)); } public int getHumidity() { return getByte(4); } };