edu.udayton.udri.asset.raspi.bmp180/src/edu/udayton/udri/asset/raspi/bmp180/Bmp180Sensor.java
private int readTemperature() throws IOException, InterruptedException
    {
        final byte[] bytesTemp = new byte[2];
        
        m_Bmp180.write(CONTROL_REGISTER, GET_TEMP_CMD);
        Thread.sleep(FIVE_MILLISECONDS);

        m_Bmp180.read(MSB_ADDR, bytesTemp, 0, 2);
        
        final DataInputStream bmp180In = new DataInputStream(new ByteArrayInputStream(bytesTemp));
        
        final int UT = bmp180In.readUnsignedShort();
        
        bmp180In.close();
        
        return UT;
    }
/**
     * Reads the uncompensated temperature from the BMP180 sensor.
     * 
     * @return float the uncompensated temperature
     * @throws IOException when failing to read a byte either from across i2c or from the data stream
     * @throws InterruptedException when failing to sleep
     */
Reads the uncompensated temperature from the BMP180 sensor.

@return float the uncompensated temperature
@throws IOException when failing to read a byte either from across i2c or from the data stream
@throws InterruptedException when failing to sleep
Reads the uncompensated temperature from the BMP180 sensor . @return float the uncompensated temperature @throws IOException when failing to read a byte either from across i2c or from the data stream @throws InterruptedException when failing to sleep
private int readTemperature() throws IOException, InterruptedException
    {
        final byte[] bytesTemp = new byte[2];
        m_Bmp180.write(CONTROL_REGISTER, GET_TEMP_CMD);
        Thread.sleep(FIVE_MILLISECONDS);
        m_Bmp180.read(MSB_ADDR, bytesTemp, 0, 2);
        final DataInputStream bmp180In = new DataInputStream(new ByteArrayInputStream(bytesTemp));
        final int UT = bmp180In.readUnsignedShort();
        bmp180In.close();
        return UT;
    }
private int readTemperature ( ) throws IOException , InterruptedException { final byte [ ] bytesTemp = new byte [ 2 ] ; m_Bmp180 . write ( CONTROL_REGISTER , GET_TEMP_CMD ) ; Thread . sleep ( FIVE_MILLISECONDS ) ; m_Bmp180 . read ( MSB_ADDR , bytesTemp , 0 , 2 ) ; final DataInputStream bmp180In = new DataInputStream ( new ByteArrayInputStream ( bytesTemp ) ) ; final int UT = bmp180In . readUnsignedShort ( ) ; bmp180In . close ( ) ; return UT ; }
Reads the uncompensated temperature from the BMP180 sensor.
Reads the uncompensated temperature from the BMP180 sensor .