<?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[Temperature sensor issu ( Maybe something with 2.0 vs 2.1.1 library)]]></title><description><![CDATA[<p dir="auto">Hi, I try to compile the code i fond here : <a href="https://www.mysensors.org/build/temp" rel="nofollow ugc">Temperature Sensor</a></p>
<p dir="auto">but the arduin does not seam to be able to talk with my gateway ...</p>
<p dir="auto">first i tought it was an issue with the radio but i try the same thing on another sensor i made 3 mounth ago and it was fine ...</p>
<p dir="auto">I compile the code with the 2.1.1 library because 2.0 gave me some error ... is it possible that why it can talk to the gateway ?</p>
<p dir="auto">I don't want to update my gateway is it possible to compile it with 2.0 library ?</p>
<p dir="auto">this is the error i got in 2.0</p>
<pre><code>Arduino:1.8.3 (Windows 10), Carte : "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"

C:\Users\dbonneau\Documents\Arduino\libraries\DallasTemperature\examples\DallasTemperatureSensor\DallasTemperatureSensor.ino: In function 'void loop()':

DallasTemperatureSensor:94: error: 'getControllerConfig' was not declared in this scope

     float temperature = static_cast&lt;float&gt;(static_cast&lt;int&gt;((getControllerConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;

                                                                                  ^

exit status 1
'getControllerConfig' was not declared in this scope
</code></pre>
<p dir="auto">and this is the log on 2.1.1</p>
<pre><code>10033 TSM:FAIL:RE-INIT
10035 TSM:INIT
10041 !TSM:INIT:TSP FAIL
10043 TSM:FAIL:CNT=2
10047 TSM:FAIL:PDT
20051 TSM:FAIL:RE-INIT
20054 TSM:INIT
20060 !TSM:INIT:TSP FAIL
20062 TSM:FAIL:CNT=3
20066 TSM:FAIL:PDT
30070 TSM:FAIL:RE-INIT
30072 TSM:INIT
30078 !TSM:INIT:TSP FAIL
30083 TSM:FAIL:CNT=4
30085 TSM:FAIL:PDT
40089 TSM:FAIL:RE-INIT
40091 TSM:INIT
40097 !TSM:INIT:TSP FAIL
40099 TSM:FAIL:CNT=5
40103 TSM:FAIL:PDT
</code></pre>
]]></description><link>https://forum.mysensors.org/topic/7270/temperature-sensor-issu-maybe-something-with-2-0-vs-2-1-1-library</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 10:05:24 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7270.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Jul 2017 23:59:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Temperature sensor issu ( Maybe something with 2.0 vs 2.1.1 library) on Tue, 01 Aug 2017 02:10:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dominic-bonneau" aria-label="Profile: Dominic-Bonneau">@<bdi>Dominic-Bonneau</bdi></a> In 2.0 it was just called getConfig.  Change this</p>
<pre><code>    float temperature = static_cast&lt;float&gt;(static_cast&lt;int&gt;((getControllerConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;

</code></pre>
<p dir="auto">to this</p>
<pre><code>    float temperature = static_cast&lt;float&gt;(static_cast&lt;int&gt;((getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;

</code></pre>
<p dir="auto">and you shouldn't get that error.  Can't say for sure you wont get others though.</p>
]]></description><link>https://forum.mysensors.org/post/72702</link><guid isPermaLink="true">https://forum.mysensors.org/post/72702</guid><dc:creator><![CDATA[dbemowsk]]></dc:creator><pubDate>Tue, 01 Aug 2017 02:10:20 GMT</pubDate></item></channel></rss>