public class Thermometer extends SensorTask
DataEvent.DATA_SOURCE_TEMPERATURE
.
Refer to this internal default resource file for property keys and default values used to configure this task.
Modifier and Type | Class and Description |
---|---|
private class |
Thermometer.ReadTask
Samples the thermometer on the configured schedule.
|
Modifier and Type | Field and Description |
---|---|
private com.dalsemi.onewire.container.TemperatureContainer |
container
Temperature sensor container.
|
private static byte[] |
FAMILY
DS1920 or DS18S20, DS1822 and DS18B20 temperature sensor family codes.
|
private double[] |
tCoeffs
Thermometer calibration coefficients.
|
adapter, address, cancel, CFG_DEVICE_ADDRESS_KEY, CFG_DEVICE_CHANNEL_KEY, CFG_DEVICE_OFFSET_KEY, CFG_DEVICE_SCALE_KEY, CFG_SAMPLING_INTERVAL_KEY, config, dataExchange, LOGGER, name, ONE_WIRE_TIMEOUT, population, SENSOR_TIMEOUT
Constructor and Description |
---|
Thermometer(java.lang.String name,
com.dalsemi.onewire.adapter.DSPortAdapter adapter,
java.util.Properties config,
IDataExchange dataExchange,
IServiceControl serviceControl)
Creates a new instance of Thermometer for the DS181S20 thermometer.
|
beginExclusive, curveFit, doADConvertEFT, doADConvertEFT, doTemperatureConvertEFT, endExclusive, findContainerEFT, findContainerEFT, findContainerEFT, getADVoltageEFT, getADVoltageEFT, getTemperatureEFT, readBytesEFT, readCounterEFT, readDeviceEFT, readFileEFT, setMaxTemperatureResolutionEFT, stdDev, toHexString, toString, writeByteEFT, writeDeviceEFT
private static final byte[] FAMILY
private com.dalsemi.onewire.container.TemperatureContainer container
private double[] tCoeffs
public Thermometer(java.lang.String name, com.dalsemi.onewire.adapter.DSPortAdapter adapter, java.util.Properties config, IDataExchange dataExchange, IServiceControl serviceControl)
name
- of this sensor task.adapter
- 1-Wire adapter.config
- configuration properties.dataExchange
- to notify with new data.serviceControl
- to schedule the task.