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?


  • Contest Winner

    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!


Log in to reply
 

Suggested Topics

11
Online

11.2k
Users

11.1k
Topics

112.5k
Posts