<?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[Request node infos by arduino ide]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I'm new in the mysensors world, and love it.<br />
I'm trying to make a driver in csharp with serialGateway for my application.<br />
I received all my two humidity sensors without any problems.<br />
But when I want to ask something to my sensors, they send me nothing... I don't understand what going on.</p>
<p dir="auto">here is the code in my sensors :</p>
<pre><code>#include &lt;SPI.h&gt;
#include &lt;MySensor.h&gt;  
#include &lt;DHT.h&gt;  

#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1
#define HUMIDITY_SENSOR_DIGITAL_PIN 3
unsigned long Time_Measure = 60000; // Sleep time between reads (in seconds)

MySensor gw;
DHT dht;
float lastTemp;
float lastHum;
boolean metric = true; 
MyMessage msgHum(CHILD_ID_HUM, V_HUM);
MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
unsigned long timeOfLastChange = 0;

void setup()  
{ 
    gw.begin(NULL, AUTO, true);
  dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 

  // Send the Sketch Version Information to the Gateway
  gw.sendSketchInfo("Atelier", "1.0");

  // Register all sensors to gw (they will be created as child devices)
  gw.present(CHILD_ID_HUM, S_HUM);
  gw.present(CHILD_ID_TEMP, S_TEMP);
  
  metric = gw.getConfig().isMetric;
  timeOfLastChange = millis();
}

void loop()      
{  
  float humidity;
  float temperature;

  if ((millis() - timeOfLastChange) &gt; Time_Measure)
  {
    delay(dht.getMinimumSamplingPeriod());
    temperature = dht.getTemperature();
    if (isnan(temperature)) {
        Serial.println("Failed reading temperature from DHT");
    } else if (temperature != lastTemp) {
      lastTemp = temperature;
      if (!metric) {
        temperature = dht.toFahrenheit(temperature);
      }
      gw.send(msgTemp.set(temperature, 1));
      Serial.print("T: ");
      Serial.println(temperature);
    }
    
    delay(dht.getMinimumSamplingPeriod());
    humidity = dht.getHumidity();
    if (isnan(humidity)) {
        Serial.println("Failed reading humidity from DHT");
    } else if (humidity != lastHum) {
        lastHum = humidity;
        gw.send(msgHum.set(humidity, 1));
        Serial.print("H: ");
        Serial.println(humidity);
    }
  }
  gw.process();
}


</code></pre>
<p dir="auto">And this is an example of terminal view</p>
<pre><code>0;0;3;0;14;Gateway startup complete.
0;0;3;0;9;read: 2-2-0 s=255,c=0,t=18,pt=0,l=5:1.4.1
2;255;0;0;18;1.4.1
0;0;3;0;9;read: 2-2-0 s=255,c=3,t=6,pt=1,l=1:0
2;255;3;0;6;0
0;0;3;0;9;read: 2-2-0 s=255,c=3,t=11,pt=0,l=7:Atelier
2;255;3;0;11;Atelier
0;0;3;0;9;read: 2-2-0 s=255,c=3,t=12,pt=0,l=3:1.0
2;255;3;0;12;1.0
0;0;3;0;9;read: 2-2-0 s=0,c=0,t=7,pt=0,l=0:
2;0;0;0;7;
0;0;3;0;9;read: 2-2-0 s=1,c=0,t=6,pt=0,l=0:
2;1;0;0;6;
0;0;3;0;9;send: 0-0-2-2 s=255,c=3,t=6,pt=0,l=1,st=ok:0
0;0;3;0;9;read: 1-1-0 s=0,c=1,t=1,pt=7,l=5:49.6
1;0;1;0;1;49.6
0;0;3;0;9;send: 0-0-2-2 s=255,c=3,t=6,pt=0,l=1,st=ok:M
0;0;3;0;9;read: 2-2-0 s=1,c=1,t=0,pt=7,l=5:24.8
2;1;1;0;0;24.8
0;0;3;0;9;read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:46.6
2;0;1;0;1;46.6
0;0;3;0;9;read: 2-2-0 s=1,c=1,t=0,pt=7,l=5:24.9
2;1;1;0;0;24.9
0;0;3;0;9;read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:46.7
2;0;1;0;1;46.7
0;0;3;0;9;read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:46.6
2;0;1;0;1;46.6
0;0;3;0;9;read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:46.5
2;0;1;0;1;46.5
0;0;3;0;9;read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:46.6
2;0;1;0;1;46.6
0;0;3;0;9;read: 2-2-0 s=1,c=1,t=0,pt=7,l=5:25.0
2;1;1;0;0;25.0
0;0;3;0;9;read: 2-2-0 s=0,c=1,t=1,pt=7,l=5:46.5
2;0;1;0;1;46.5

</code></pre>
<p dir="auto">What I make wrong???<br />
I add the gw.process on sensor code and nothing add...<br />
Bouhhh....:sweat: :disappointed_relieved:</p>
<p dir="auto">Please help me....</p>
]]></description><link>https://forum.mysensors.org/topic/1702/request-node-infos-by-arduino-ide</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 05:54:53 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/1702.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Jul 2015 14:22:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Request node infos by arduino ide on Sun, 26 Jul 2015 17:02:02 GMT]]></title><description><![CDATA[<p dir="auto">You can send the information whenever you want.</p>
<p dir="auto">In the provided examples it is placed in the setup() method which only runs once at startup. But nothing stops you from sending the information later (for example after a incoming request message of your choice arrives).</p>
]]></description><link>https://forum.mysensors.org/post/17574</link><guid isPermaLink="true">https://forum.mysensors.org/post/17574</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 26 Jul 2015 17:02:02 GMT</pubDate></item><item><title><![CDATA[Reply to Request node infos by arduino ide on Sun, 26 Jul 2015 16:01:35 GMT]]></title><description><![CDATA[<p dir="auto">Yes, this informations is sended at sensor start up.<br />
But I want this information later in sensor life.<br />
I want to ask for this information with a command via serialgateway.<br />
Is that Possible?</p>
]]></description><link>https://forum.mysensors.org/post/17571</link><guid isPermaLink="true">https://forum.mysensors.org/post/17571</guid><dc:creator><![CDATA[Gefkuz]]></dc:creator><pubDate>Sun, 26 Jul 2015 16:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to Request node infos by arduino ide on Sun, 26 Jul 2015 15:40:08 GMT]]></title><description><![CDATA[<pre><code>2;255;3;0;11;Atelier
2;255;3;0;12;1.0
</code></pre>
<p dir="auto">First line is sketch name and the second is the version reported in the sketch.</p>
]]></description><link>https://forum.mysensors.org/post/17568</link><guid isPermaLink="true">https://forum.mysensors.org/post/17568</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 26 Jul 2015 15:40:08 GMT</pubDate></item><item><title><![CDATA[Reply to Request node infos by arduino ide on Sun, 26 Jul 2015 15:14:34 GMT]]></title><description><![CDATA[<p dir="auto">Yes, you are wright. The sensor is working well.<br />
But Iwant to know is sketch_name, sketch_version.<br />
What Have I to do for it?</p>
]]></description><link>https://forum.mysensors.org/post/17566</link><guid isPermaLink="true">https://forum.mysensors.org/post/17566</guid><dc:creator><![CDATA[Gefkuz]]></dc:creator><pubDate>Sun, 26 Jul 2015 15:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to Request node infos by arduino ide on Sun, 26 Jul 2015 14:46:51 GMT]]></title><description><![CDATA[<p dir="auto">What do you mean? The gateway log you publish contains both temperature and humidity readings from node 2.</p>
]]></description><link>https://forum.mysensors.org/post/17562</link><guid isPermaLink="true">https://forum.mysensors.org/post/17562</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 26 Jul 2015 14:46:51 GMT</pubDate></item></channel></rss>