<?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 places WiFi connection code in the wrong place]]></title><description><![CDATA[<p dir="auto">I'm trying to make a robust wifi connection flow for unattended use. To do this I need to put the wifi connect commands inside a conditional so that I can test/handle/etc.</p>
<p dir="auto">Here's a simple example to demonstrate the issue</p>
<p dir="auto">A simple flow with the wifi connect widget in the correct place (inside a conditional):<br />
<img src="https://i.imgur.com/lpGnUaF.jpg" alt="grab1" class=" img-fluid img-markdown" /></p>
<p dir="auto">...and here is the resulting python code. Note WiFi.doConnect has moved to the top of the python code block instead of inside the else statement:<br />
<img src="https://i.imgur.com/s5r9htQ.jpg" alt="grab2" class=" img-fluid img-markdown" /></p>
<p dir="auto">If I move the doConnect to the correct place the code works as I expect and there are no errors.</p>
<p dir="auto">I have tried this with doConnect and AutoConnect with the same result.</p>
]]></description><link>https://community.m5stack.com/topic/2594/uiflow-places-wifi-connection-code-in-the-wrong-place</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 20:22:20 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2594.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Dec 2020 21:27:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UIFlow places WiFi connection code in the wrong place on Tue, 26 Apr 2022 06:51:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/5152">@slartibartfast</a> Hate to bump an old topic but this is a problem for me still. The "Original Network Function" blocks place the calls to the wlan class correctly but they don't actually work. This is UIFlow 1.9.6 now. It makes it impossible to use the program except in the coverage area of the SSID hard coded into the program.</p>
<p dir="auto">For a workaround, you can manually relocate the call to doConnect inside the loop or function where you want it. You can save that, and when you upload the program to the device it seems to send the modified python.</p>
]]></description><link>https://community.m5stack.com/post/17291</link><guid isPermaLink="true">https://community.m5stack.com/post/17291</guid><dc:creator><![CDATA[wsanders]]></dc:creator><pubDate>Tue, 26 Apr 2022 06:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow places WiFi connection code in the wrong place on Mon, 21 Dec 2020 04:44:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
it seems wifi block handling not completely finished at UIFlow .<br />
also i need wifi.RSSI level<br />
<img src="/assets/uploads/files/1608525726805-m5-wifi1.jpg" alt="0_1608525709701_m5 wifi1.JPG" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1608525777852-m5-wifi2.jpg" alt="0_1608525767154_m5 wifi2.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/11320</link><guid isPermaLink="true">https://community.m5stack.com/post/11320</guid><dc:creator><![CDATA[alperian]]></dc:creator><pubDate>Mon, 21 Dec 2020 04:44:04 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow places WiFi connection code in the wrong place on Mon, 14 Dec 2020 02:34:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> Interesting. I had not tried that. Good workaround until this gets fixed for realz.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.m5stack.com/post/11188</link><guid isPermaLink="true">https://community.m5stack.com/post/11188</guid><dc:creator><![CDATA[Slartibartfast]]></dc:creator><pubDate>Mon, 14 Dec 2020 02:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow places WiFi connection code in the wrong place on Sun, 13 Dec 2020 21:51:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/5152">@Slartibartfast</a></p>
<p dir="auto">I am seeing the same. I guess it's a bug.</p>
<p dir="auto">Interestingly, when I replace the <code>Connect to Wi-Fi ...</code> block with an <code>Execute code: wifiCfg.doConnect('myAP', 'myPW')</code> block the block stays within the else statement.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11185</link><guid isPermaLink="true">https://community.m5stack.com/post/11185</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 13 Dec 2020 21:51:36 GMT</pubDate></item></channel></rss>