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!
1 out of 3
Suggested Topics
-
Sensors db
My Project • 16 Apr 2014, 07:06 • Dvbit 16 Apr 2014, 17:37 -
Compilation error
NodeManager • 19 Sept 2020, 15:41 • htaxil 18 Oct 2020, 09:37 -
SI7021 with Nodemanager
NodeManager • 30 Dec 2020, 14:15 • xlibor 1 Jan 2021, 20:20 -
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 -
Help needed with connecting MySensors node to Home Assistant
NodeManager • 16 May 2024, 09:59 • HJ_SK 19 May 2024, 15:01