public class W1ThermSensor extends Object implements ThermometerInterface
Modifier and Type | Class and Description |
---|---|
static class |
W1ThermSensor.Type |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static List<W1ThermSensor> |
getAvailableSensors() |
static List<W1ThermSensor> |
getAvailableSensors(String folder) |
String |
getSerialNumber() |
float |
getTemperature()
Get temperature in degrees celsius
|
W1ThermSensor.Type |
getType() |
public static List<W1ThermSensor> getAvailableSensors()
public static List<W1ThermSensor> getAvailableSensors(String folder)
public float getTemperature() throws RuntimeIOException
getTemperature
in interface ThermometerInterface
RuntimeIOException
- if an I/O error occurspublic W1ThermSensor.Type getType()
public String getSerialNumber()
public void close()
close
in interface SensorInterface
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2016–2018 mattjlewis. All rights reserved.