public class W1ThermSensor extends Object implements TemperatureSensorInterface
Modifier and Type | Class and Description |
---|---|
static class |
W1ThermSensor.Type |
Modifier and Type | Method and Description |
---|---|
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 TemperatureSensorInterface
RuntimeIOException
- if an I/O error occurspublic W1ThermSensor.Type getType()
public String getSerialNumber()
Copyright © 2016 mattjlewis. All rights reserved.