winlinvip / SimpleDHT

Simple, Stable and Fast Arduino Temp & Humidity Sensors for DHT11 and DHT22. http://learn.adafruit.com/dht
MIT License
144 stars 61 forks source link

Compilation problem with modules #28

Closed alschiffer closed 6 years ago

alschiffer commented 6 years ago
.../Arduino/libraries/SimpleDHT/SimpleDHT.cpp:72:27: error: no 'int SimpleDHT::getBitmask()' member function declared in class 'SimpleDHT'
 int SimpleDHT::getBitmask() {
                           ^
.../Arduino/libraries/SimpleDHT/SimpleDHT.cpp:76:24: error: no 'int SimpleDHT::getPort()' member function declared in class 'SimpleDHT'
 int SimpleDHT::getPort() {
                        ^

The path is OK, I've modified it This is the first time i'm trying to use something else but DHT.h Feel free to ask for any tests

alschiffer commented 6 years ago

I use: Debian 9 official IDE v.1.8.5 importing SimpleDHT.h v.1.0.10 with the built-in library manager

and using it like that:

#include <SimpleDHT.h>
int pinDHT22 = 2;
SimpleDHT22 dht(pinDHT22);

having a trouble already (even if never use it in further code - I've removed everything about AM2302 haunting the problem)

alschiffer commented 6 years ago

Right a moment ago found a new version SimpleDHT.h v.1.0.11 and it makes no problem while being compiled with the same code. I guess it's not an issue anymore but 1.0.10 should probably be purged from the public library repo.