类 AbstractDhtDevice
java.lang.Object
cn.tpkf.rpi.devices.AbstractDevice
cn.tpkf.rpi.devices.gpio.AbstractGpioDevice
cn.tpkf.rpi.devices.gpio.w1.AbstractOneWireDevice
cn.tpkf.rpi.devices.gpio.w1.dht.AbstractDhtDevice
- 所有已实现的接口:
Device
DHT系列
- 作者:
- Harlan
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 cn.tpkf.rpi.devices.gpio.w1.AbstractOneWireDevice
digitalInput, digitalOutput从类继承的字段 cn.tpkf.rpi.devices.gpio.AbstractGpioDevice
address从类继承的字段 cn.tpkf.rpi.devices.AbstractDevice
deviceManager, id, lock, name -
构造器概要
构造器限定符构造器说明protectedAbstractDhtDevice(DeviceManager deviceManager, String id, String name, IBCMEnums address, Integer detectionInterval, Long waitSignalTimeOutMicros, Long readDataTimeOutMicros) -
方法概要
修饰符和类型方法说明Performs a detection of temperature and humidity using a sensor.protected abstract AbstractDhtDevice.HumitureInfoprocessData(long[] data) Processes the given data and returns a HumitureInfo object.protected intsysConvert(long num, int index) Converts a given number to a binary system based on the provided index.从类继承的方法 cn.tpkf.rpi.devices.gpio.w1.AbstractOneWireDevice
isHigh, isLow, shutdown从类继承的方法 cn.tpkf.rpi.devices.gpio.AbstractGpioDevice
getDescription
-
构造器详细资料
-
AbstractDhtDevice
-
-
方法详细资料
-
detection
Performs a detection of temperature and humidity using a sensor.- 返回:
- The updated temperature and humidity information.
-
processData
Processes the given data and returns a HumitureInfo object.- 参数:
data- An array of long values representing the data to be processed.- 返回:
- A HumitureInfo object containing the processed data.
-
sysConvert
protected int sysConvert(long num, int index) Converts a given number to a binary system based on the provided index.- 参数:
num- The number to be converted.index- The index indicating the position in the binary system.- 返回:
- The converted number in the binary system.
-