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?
-
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!
-
Thanks @user2684 for your reply,
I was using the wrong package, downloaded the latest version and now it works!Thanks again for your help and for the development of NodeManager!
3 out of 3
Suggested Topics
-
Sensors db
My Project • 16 Apr 2014, 07:06 • Dvbit 16 Apr 2014, 17:37 -
Nodemanager: How to control a local output from a local input?
NodeManager • 30 Jan 2022, 21:01 • A3V 5 Feb 2022, 16:24 -
Nrf5x on NodeManager
NodeManager • 9 Apr 2019, 14:26 • nullos 6 Nov 2020, 09:28 -
Battery Level
NodeManager • 7 Aug 2022, 21:11 • bbastos 7 Aug 2022, 21:11 -
Help needed with connecting MySensors node to Home Assistant
NodeManager • 2 Apr 2023, 10:43 • vivek101 2 Apr 2023, 21:21