类 AbstractDhtDevice

所有已实现的接口:
Device
直接已知子类:
Dht11, Dht22

public abstract class AbstractDhtDevice extends AbstractOneWireDevice
DHT系列
作者:
Harlan
  • 构造器详细资料

  • 方法详细资料

    • detection

      public AbstractDhtDevice.HumitureInfo detection()
      Performs a detection of temperature and humidity using a sensor.
      返回:
      The updated temperature and humidity information.
    • processData

      protected abstract AbstractDhtDevice.HumitureInfo processData(long[] data)
      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.