Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Problem with libraries

Problem with libraries

Scheduled Pinned Locked Moved General Discussion
1 Posts 1 Posters 379 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RobertR Offline
    RobertR Offline
    Robert
    wrote on last edited by
    #1

    I think that after arduino upgrade to 1.8.10 there were problems with libraries. I have a problem running Air Humidity - DHT. Its standard code.

    Arduino: 1.8.10 (Windows 10), Board: "Arduino Nano, ATmega328P"
    
    sketch_nov14a:74:5: error: no matching function for call to 'DHT::DHT()'
    
     DHT dht;
    
         ^~~
    
    In file included from D:\Arduino_temp\sketch_nov14a\sketch_nov14a.ino:44:0:
    
    D:\Arduino_temp\libraries\DHT-sensor-library-master/DHT.h:49:4: note: candidate: DHT::DHT(uint8_t, uint8_t, uint8_t)
    
        DHT(uint8_t pin, uint8_t type, uint8_t count=6);
    
        ^~~
    
    D:\Arduino_temp\libraries\DHT-sensor-library-master/DHT.h:49:4: note:   candidate expects 3 arguments, 0 provided
    
    D:\Arduino_temp\libraries\DHT-sensor-library-master/DHT.h:47:7: note: candidate: constexpr DHT::DHT(const DHT&)
    
     class DHT {
    
           ^~~
    
    D:\Arduino_temp\libraries\DHT-sensor-library-master/DHT.h:47:7: note:   candidate expects 1 argument, 0 provided
    
    D:\Arduino_temp\libraries\DHT-sensor-library-master/DHT.h:47:7: note: candidate: constexpr DHT::DHT(DHT&&)
    
    D:\Arduino_temp\libraries\DHT-sensor-library-master/DHT.h:47:7: note:   candidate expects 1 argument, 0 provided
    
    D:\Arduino_temp\sketch_nov14a\sketch_nov14a.ino: In function 'void setup()':
    
    sketch_nov14a:92:7: error: 'class DHT' has no member named 'setup'
    
       dht.setup(DHT_DATA_PIN); // set data pin of DHT sensor
    
           ^~~~~
    
    sketch_nov14a:93:30: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'
    
       if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) {
    
                                  ^~~~~~~~~~~~~~~~~~~~~~~~
    
    sketch_nov14a:98:13: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'
    
       sleep(dht.getMinimumSamplingPeriod());
    
                 ^~~~~~~~~~~~~~~~~~~~~~~~
    
    D:\Arduino_temp\sketch_nov14a\sketch_nov14a.ino: In function 'void loop()':
    
    sketch_nov14a:105:7: error: 'class DHT' has no member named 'readSensor'
    
       dht.readSensor(true);
    
           ^~~~~~~~~~
    
    sketch_nov14a:108:27: error: 'class DHT' has no member named 'getTemperature'; did you mean 'readTemperature'?
    
       float temperature = dht.getTemperature();
    
                               ^~~~~~~~~~~~~~
    
                               readTemperature
    
    sketch_nov14a:119:25: error: 'class DHT' has no member named 'toFahrenheit'
    
           temperature = dht.toFahrenheit(temperature);
    
                             ^~~~~~~~~~~~
    
    sketch_nov14a:135:24: error: 'class DHT' has no member named 'getHumidity'; did you mean 'readHumidity'?
    
       float humidity = dht.getHumidity();
    
                            ^~~~~~~~~~~
    
                            readHumidity
    
    Multiple libraries were found for "SPI.h"
     Used: D:\Arduino\hardware\arduino\avr\libraries\SPI
    Multiple libraries were found for "MySensors.h"
     Used: D:\Arduino_temp\libraries\MySensors-master
    Multiple libraries were found for "DHT.h"
     Used: D:\Arduino_temp\libraries\DHT-sensor-library-master
     Not used: D:\Arduino_temp\libraries\arduino-DHT-master
    Multiple libraries were found for "Adafruit_Sensor.h"
     Used: D:\Arduino_temp\libraries\Adafruit_Unified_Sensor
    exit status 1
    no matching function for call to 'DHT::DHT()'
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    
    
    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    8

    Online

    12.0k

    Users

    11.2k

    Topics

    113.4k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular