<?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[UIFlow: How to try&#x2F;except for &quot;Connect to Wifi&quot;?]]></title><description><![CDATA[<p dir="auto">I am  trying to get the program to ignore failure to connect to WiFi. I tried to place a Wifi Connect block inside a try/except (with a bogus SSID/password):</p>
<p dir="auto"><img src="/assets/uploads/files/1650495159517-screenshot_20220420_155223.png" alt="0_1650495158697_Screenshot_20220420_155223.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Instead, the program hangs, before the LED comes on, because the python that gets generated places the wifiCfg.doConnect up at the top of the program (line 20):<br />
<img src="/assets/uploads/files/1650495659422-screenshot_20220420_160048.png" alt="0_1650495658652_Screenshot_20220420_160048.png" class=" img-fluid img-markdown" /><br />
and the try/except block is empty, much later in the program at line 87:<br />
<img src="/assets/uploads/files/1650495591470-screenshot_20220420_155937.png" alt="0_1650495590491_Screenshot_20220420_155937.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is there a way to create an exception for WiFi failure to connect?</p>
<p dir="auto">I also notice that UIFlow does not have a "pass" block. I just put a wait() in mine - ???</p>
]]></description><link>https://community.m5stack.com/topic/4224/uiflow-how-to-try-except-for-connect-to-wifi</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 05:23:53 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4224.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Apr 2022 23:02:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UIFlow: How to try&#x2F;except for &quot;Connect to Wifi&quot;? on Fri, 22 Apr 2022 05:10:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wsanders" aria-label="Profile: wsanders">@<bdi>wsanders</bdi></a> SOLUTION: Use "Original Network Function" blocks instead.</p>
]]></description><link>https://community.m5stack.com/post/17247</link><guid isPermaLink="true">https://community.m5stack.com/post/17247</guid><dc:creator><![CDATA[wsanders]]></dc:creator><pubDate>Fri, 22 Apr 2022 05:10:00 GMT</pubDate></item></channel></rss>