<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[By uploading the DHT 22 sketch, I get an error each time.]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">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.<br />
The sketches that I use:<br />
For Serial Gateway:<br />
<a href="https://github.com/mysensors/MySensors/blob/master/examples/GatewaySerial/GatewaySerial.ino" rel="nofollow ugc">https://github.com/mysensors/MySensors/blob/master/examples/GatewaySerial/GatewaySerial.ino</a><br />
For the DhtTemperatureAndHumiditySensor:<br />
<a href="https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino" rel="nofollow ugc">https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino</a><br />
The error is in the DhtTemperatureAndHumiditySensor sketch:<br />
Arduino: 1.8.1 (Linux) Board: "Arduino / Genuino Uno"</p>
<p dir="auto">/tmp/arduino_modified_sketch_307117/sketch_mar09a.ino: In function 'void loop()':<br />
sketch_mar09a:105: error: no matching function for call to 'DHT::readSensor(bool)'<br />
dht.readSensor(true);<br />
^<br />
/tmp/arduino_modified_sketch_307117/sketch_mar09a.ino:105:22: note: candidate is:<br />
In file included from /tmp/arduino_modified_sketch_307117/sketch_mar09a.ino:45:0:<br />
/home/dinand/Arduino/libraries/DHT/DHT.h:83:8: note: void DHT::readSensor()<br />
void readSensor();<br />
^<br />
/home/dinand/Arduino/libraries/DHT/DHT.h:83:8: note:   candidate expects 0 arguments, 1 provided<br />
exit status 1<br />
no matching function for call to 'DHT::readSensor(bool)'</p>
<p dir="auto">Could someone give me advice how can I solve this?</p>
<p dir="auto">We thank you for thinking.</p>
<p dir="auto">Dinand</p>
]]></description><link>https://forum.mysensors.org/topic/6417/by-uploading-the-dht-22-sketch-i-get-an-error-each-time</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 05:10:02 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/6417.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Mar 2017 15:31:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to By uploading the DHT 22 sketch, I get an error each time. on Sun, 12 Mar 2017 09:06:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alowhum" aria-label="Profile: alowhum">@<bdi>alowhum</bdi></a> They seem to be not quite as easy for copy paste programming. I have had to do a heap of reading and learning to get it all down.</p>
<p dir="auto">Any the other one is you search the forums for soloutions before posting and half the solutions are pre 2.x and dont work either, I don't like noob posting basic stuff due to my lack of programming skill, but people here seem quite nice and willing to help :)</p>
<p dir="auto">Wait for my debouncing post later tonight if I cant work it out hahaha</p>
]]></description><link>https://forum.mysensors.org/post/62047</link><guid isPermaLink="true">https://forum.mysensors.org/post/62047</guid><dc:creator><![CDATA[Bryden]]></dc:creator><pubDate>Sun, 12 Mar 2017 09:06:01 GMT</pubDate></item><item><title><![CDATA[Reply to By uploading the DHT 22 sketch, I get an error each time. on Sun, 12 Mar 2017 09:00:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alowhum" aria-label="Profile: alowhum">@<bdi>alowhum</bdi></a> could you be a bit more specific? Sketches are tested automatically but automatic tests do not cover everything so we rely on eachother to spot and correct if there are problems that the automatic tests don't catch.</p>
]]></description><link>https://forum.mysensors.org/post/62045</link><guid isPermaLink="true">https://forum.mysensors.org/post/62045</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sun, 12 Mar 2017 09:00:17 GMT</pubDate></item><item><title><![CDATA[Reply to By uploading the DHT 22 sketch, I get an error each time. on Sun, 12 Mar 2017 08:56:03 GMT]]></title><description><![CDATA[<p dir="auto">Too many sketches on the website have issues.</p>
]]></description><link>https://forum.mysensors.org/post/62043</link><guid isPermaLink="true">https://forum.mysensors.org/post/62043</guid><dc:creator><![CDATA[alowhum]]></dc:creator><pubDate>Sun, 12 Mar 2017 08:56:03 GMT</pubDate></item><item><title><![CDATA[Reply to By uploading the DHT 22 sketch, I get an error each time. on Fri, 10 Mar 2017 10:48:40 GMT]]></title><description><![CDATA[<p dir="auto">This seems to be a common issue, maybe a change to highlight that the exact listed DHT library mentioned needs to be installed and no other lol</p>
]]></description><link>https://forum.mysensors.org/post/61847</link><guid isPermaLink="true">https://forum.mysensors.org/post/61847</guid><dc:creator><![CDATA[Bryden]]></dc:creator><pubDate>Fri, 10 Mar 2017 10:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to By uploading the DHT 22 sketch, I get an error each time. on Thu, 09 Mar 2017 15:43:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinand" aria-label="Profile: dinand">@<bdi>dinand</bdi></a> welcome to the MySensors community.</p>
<p dir="auto">The dht library must be installed. See instructions on <a href="https://www.mysensors.org/build/humidity" rel="nofollow ugc">https://www.mysensors.org/build/humidity</a></p>
]]></description><link>https://forum.mysensors.org/post/61771</link><guid isPermaLink="true">https://forum.mysensors.org/post/61771</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Thu, 09 Mar 2017 15:43:23 GMT</pubDate></item></channel></rss>