| 73 | |
| 74 | |
| 75 | void DHTNEW::setType(uint8_t type) |
| 76 | { |
| 77 | if ((type == 0) || (type == 11)) |
| 78 | { |
| 79 | _type = type; |
| 80 | _wakeupDelay = DHTLIB_DHT11_WAKEUP; |
| 81 | } |
| 82 | if ((type == 22) || (type == 23)) |
| 83 | { |
| 84 | _type = type; |
| 85 | _wakeupDelay = DHTLIB_DHT_WAKEUP; |
| 86 | } |
| 87 | // experimental 0.4.14 |
| 88 | if (type == 70) |
| 89 | { |
| 90 | _type = type; |
| 91 | _wakeupDelay = DHTLIB_SI7021_WAKEUP; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | |
| 96 | // return values: |