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; // w ww . j a v a 2s .c om public class InsideSensor extends Sensor { public InsideSensor(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); } public int getPressure() { return calc14Bit(getByte(5), getByte(6)); } };