dist/webduino-all.js
function Dht(board, pin) {
    Module.call(this);

    this._type = 'DHT11';
    this._board = board;
    this._pin = pin;
    this._humidity = null;
    this._temperature = null;
    this._lastRecv = null;
    this._readTimer = null;
    this._readCallback = function () {};

    this._board.on(BoardEvent.BEFOREDISCONNECT, this.stopRead.bind(this));
    this._messageHandler = onMessage.bind(this);
    this._board.on(BoardEvent.ERROR, this.stopRead.bind(this));
  }
function Dht(board, pin) {
    Module.call(this);

    this._type = 'DHT11';
    this._board = board;
    this._pin = pin;
    this._humidity = null;
    this._temperature = null;
    this._lastRecv = null;
    this._readTimer = null;
    this._readCallback = function () {};

    this._board.on(BoardEvent.BEFOREDISCONNECT, this.stopRead.bind(this));
    this._messageHandler = onMessage.bind(this);
    this._board.on(BoardEvent.ERROR, this.stopRead.bind(this));
  }
function Dht ( board , pin ) { Module . call ( this ) ; this . _type = 'DHT11' ; this . _board = board ; this . _pin = pin ; this . _humidity = null ; this . _temperature = null ; this . _lastRecv = null ; this . _readTimer = null ; this . _readCallback = function ( ) { } ; this . _board . on ( BoardEvent . BEFOREDISCONNECT , this . stopRead . bind ( this ) ) ; this . _messageHandler = onMessage . bind ( this ) ; this . _board . on ( BoardEvent . ERROR , this . stopRead . bind ( this ) ) ; }
The Dht Class.

DHT is sensor for measuring temperature and humidity.

@namespace webduino.module
@class Dht
@constructor
@param {webduino.Board} board The board that the DHT is attached to.
@param {Integer} pin The pin that the DHT is connected to.
@extends webduino.Module
The Dht Class .