Error compiling NodeManager DHT22 sensor
-
Error compiling DHT22 sensor
I'm trying to make a simple DHT22 sensor Nodemanagersketch
nodeManager.registerSensor(SENSOR_DHT22,6);
But when I try to compile I get a warning in the NodeManager.cpp file:
_dht->setup(_pin,_dht_type);and in the bottom field 'class DHT' has no member named 'setup'
Does anyone know what I'm doing wrong?
-
Error compiling DHT22 sensor
I'm trying to make a simple DHT22 sensor Nodemanagersketch
nodeManager.registerSensor(SENSOR_DHT22,6);
But when I try to compile I get a warning in the NodeManager.cpp file:
_dht->setup(_pin,_dht_type);and in the bottom field 'class DHT' has no member named 'setup'
Does anyone know what I'm doing wrong?
-
Hi @Getz99, are you sure MODULE_DHT is enabled? Also ensure that you are using the right DHT package referenced in the documentation. Please note the package has changed from v1.6 to v1.7. Thanks!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login