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
D

dinand

@dinand
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • By uploading the DHT 22 sketch, I get an error each time.
    D dinand

    Hello all,

    I am new to MySensors and am a Dutchman, so sorry for my english. I've been busy for a while to a Serial Gateway (NRF24L01 + 2.4GHz Wireless Transceiver) to be established between my Raspberry Pi-3B + Domoticz and DHT 22 sensor.The upload off the Serial Gateway is fine, but I get by uploading off the DHT 22 sketch an error each time.
    The sketches that I use:
    For Serial Gateway:
    https://github.com/mysensors/MySensors/blob/master/examples/GatewaySerial/GatewaySerial.ino
    For the DhtTemperatureAndHumiditySensor:
    https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino
    The error is in the DhtTemperatureAndHumiditySensor sketch:
    Arduino: 1.8.1 (Linux) Board: "Arduino / Genuino Uno"

    /tmp/arduino_modified_sketch_307117/sketch_mar09a.ino: In function 'void loop()':
    sketch_mar09a:105: error: no matching function for call to 'DHT::readSensor(bool)'
    dht.readSensor(true);
    ^
    /tmp/arduino_modified_sketch_307117/sketch_mar09a.ino:105:22: note: candidate is:
    In file included from /tmp/arduino_modified_sketch_307117/sketch_mar09a.ino:45:0:
    /home/dinand/Arduino/libraries/DHT/DHT.h:83:8: note: void DHT::readSensor()
    void readSensor();
    ^
    /home/dinand/Arduino/libraries/DHT/DHT.h:83:8: note: candidate expects 0 arguments, 1 provided
    exit status 1
    no matching function for call to 'DHT::readSensor(bool)'

    Could someone give me advice how can I solve this?

    We thank you for thinking.

    Dinand

    Development
  • Login

  • Don't have an account? Register

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