<?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[How to check (programmatically) if connected]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">Just got my Omega2+ yesterday, and can't believe how easy it is to get up and running.</p>
<p dir="auto">For my project though, I'm trying to figure out a way to <em>programmatically</em> determine whether or not I'm connected to wifi.  Sure, I supposed I could call ifconfig, and grep out something to determine, but I'd rather have either an API method, or some more reliable way.</p>
<p dir="auto">Does this exist?</p>
]]></description><link>http://community.onion.io/topic/2736/how-to-check-programmatically-if-connected</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 16:36:27 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2736.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Feb 2018 13:39:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to check (programmatically) if connected on Wed, 21 Feb 2018 13:39:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">Just got my Omega2+ yesterday, and can't believe how easy it is to get up and running.</p>
<p dir="auto">For my project though, I'm trying to figure out a way to <em>programmatically</em> determine whether or not I'm connected to wifi.  Sure, I supposed I could call ifconfig, and grep out something to determine, but I'd rather have either an API method, or some more reliable way.</p>
<p dir="auto">Does this exist?</p>
]]></description><link>http://community.onion.io/post/16068</link><guid isPermaLink="true">http://community.onion.io/post/16068</guid><dc:creator><![CDATA[Dwayne King]]></dc:creator><pubDate>Wed, 21 Feb 2018 13:39:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to check (programmatically) if connected on Wed, 21 Feb 2018 14:30:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/5248">@Dwayne-King</a> I use your grep method on ifconfig every 10 minutes to look for the presence of apcli0 and a partial match to 'inet addr:192.168.' - if not found I call wifimanager. Works well for me as I have a list of over 40 possible access points in 192.168.<em>.</em> range while my devices travel</p>
]]></description><link>http://community.onion.io/post/16069</link><guid isPermaLink="true">http://community.onion.io/post/16069</guid><dc:creator><![CDATA[Paul Cousins]]></dc:creator><pubDate>Wed, 21 Feb 2018 14:30:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to check (programmatically) if connected on Wed, 21 Feb 2018 21:20:12 GMT]]></title><description><![CDATA[<p dir="auto">Do you only care if you are connected to WiFi, or do you also care if your packets can go anywhere upstream?</p>
<p dir="auto">ie, how do you want to handle the case of being connected to a router, when the cable modem upstream of it is down?</p>
]]></description><link>http://community.onion.io/post/16078</link><guid isPermaLink="true">http://community.onion.io/post/16078</guid><dc:creator><![CDATA[Chris Stratton]]></dc:creator><pubDate>Wed, 21 Feb 2018 21:20:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to check (programmatically) if connected on Thu, 22 Feb 2018 13:59:55 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your replies.  Let me describe a little better what I'm trying to do.</p>
<p dir="auto">I built a simple data logger, that I want to be smart enough to turn only attempt to transfer data to my server when it's "home".  If I'm out driving in my car with it, I don't want it to be trying constantly to get to it's server.  Heck, I could even turn wifi off at that point and conserve battery.</p>
<p dir="auto">Does this make sense?</p>
]]></description><link>http://community.onion.io/post/16081</link><guid isPermaLink="true">http://community.onion.io/post/16081</guid><dc:creator><![CDATA[Dwayne King]]></dc:creator><pubDate>Thu, 22 Feb 2018 13:59:55 GMT</pubDate></item></channel></rss>