<?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[Some issues about uplink available or no]]></title><description><![CDATA[<p dir="auto">Hi to all!<br />
Sometimes I have issues in home with gateway, that hangs until next restart.</p>
<p dir="auto">The nodes (several only transmitting temp/hum) seems hangs, they don't interest if I did restart or no the gateway//controller.</p>
<p dir="auto">I would implement some check of uplink available on the sketchs, on the loop. If uplink is available, transmit, if not, recheck.</p>
<p dir="auto">But... I don't know how to implement this check.</p>
<p dir="auto">Can you help me with this?</p>
<p dir="auto">My pseudocode could be:</p>
<pre><code>void loop() {
    bool is_available_uplink;
    is_available_uplink = getUplinkState();
    if (is_available_uplink) {
        // do stuff
    }
}

bool getUplinkState() {

    bool is_uplink_available = false;
   
    // check here the uplink
    return is_uplink_available;

}
</code></pre>
<p dir="auto">Thank you to all!</p>
]]></description><link>https://forum.mysensors.org/topic/7725/some-issues-about-uplink-available-or-no</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 05:17:21 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7725.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Sep 2017 16:33:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Some issues about uplink available or no on Sun, 24 Sep 2017 18:28:30 GMT]]></title><description><![CDATA[<p dir="auto">Thank you... But isTransportReady seems true also if I leave the Arduino Gateway with reset pushed forever. ONly get false when I disconnect the power from Arduino.</p>
<p dir="auto">I'm thinking to use the receiveTime method. But, if controller (and gateway) are down, what the value returned from receivedTime?</p>
<p dir="auto">On another words, how can I check if time is returning? Because with gateway shutdown on Serial I did not read nothing from that function (instead of time).</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.mysensors.org/post/76378</link><guid isPermaLink="true">https://forum.mysensors.org/post/76378</guid><dc:creator><![CDATA[sineverba]]></dc:creator><pubDate>Sun, 24 Sep 2017 18:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to Some issues about uplink available or no on Sun, 24 Sep 2017 17:22:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sineverba" aria-label="Profile: sineverba">@<bdi>sineverba</bdi></a> you're probably looking for</p>
<pre><code>isTransportReady()
</code></pre>
<p dir="auto">See these threads for more details:<br />
<a href="https://forum.mysensors.org/topic/5745/my_transport_dont_care_mode/10">https://forum.mysensors.org/topic/5745/my_transport_dont_care_mode/10</a><br />
<a href="https://forum.mysensors.org/topic/7298/get-status-of-connection/7">https://forum.mysensors.org/topic/7298/get-status-of-connection/7</a><br />
<a href="https://forum.mysensors.org/topic/4899/how-add-watchdog-to-my-sensors/4">https://forum.mysensors.org/topic/4899/how-add-watchdog-to-my-sensors/4</a><br />
<a href="https://forum.mysensors.org/topic/4593/battery-sensor-and-re-connecting-to-gateway/2">https://forum.mysensors.org/topic/4593/battery-sensor-and-re-connecting-to-gateway/2</a><br />
<a href="https://forum.mysensors.org/topic/7298/get-status-of-connection/6">https://forum.mysensors.org/topic/7298/get-status-of-connection/6</a><br />
<a href="https://forum.mysensors.org/topic/7723/car-aux-battery-monitor">https://forum.mysensors.org/topic/7723/car-aux-battery-monitor</a></p>
]]></description><link>https://forum.mysensors.org/post/76373</link><guid isPermaLink="true">https://forum.mysensors.org/post/76373</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sun, 24 Sep 2017 17:22:27 GMT</pubDate></item></channel></rss>