<?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[UI Flow 2.0 Switching back from main.py to the config&amp;launch app]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I just started with an Core S3 and UIFlow 2.0. I am absolutely delighted about the OTA feature.<br />
One thing I could not find out by extensive research:<br />
When I once use the button "Download the button to the device" I cannot get back to the initial configuration UI.<br />
It appears like there is a <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a> saved to the Core S3 and whenever it boots this is executed.<br />
Am I missing something - i tried all kinds of key-pressing during boot?</p>
<p dir="auto">An related question - I would like to connect via MQTT to a server. Do I need to initialize Wifi inside my app? Obviously the device is online itself as this enables OTA. If I should use the configured WIFI - is it possible to try to connect to a fallback WIFI-Network in case the configured Network is not available (I plan to use the device in a mobile scenario).</p>
<p dir="auto">Thanks for Your help!<br />
Ralf</p>
]]></description><link>https://community.m5stack.com/topic/7372/ui-flow-2-0-switching-back-from-main-py-to-the-config-launch-app</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 17:01:06 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7372.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Mar 2025 20:57:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UI Flow 2.0 Switching back from main.py to the config&amp;launch app on Fri, 12 Sep 2025 18:42:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sistar_hh" aria-label="Profile: sistar_hh">@<bdi>sistar_hh</bdi></a> and every one who reads this in the future )))</p>
<p dir="auto">If you set in your program:</p>
<p dir="auto">Boot option set to 'Run <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a> directly'<br />
set_boot_option(0)</p>
<p dir="auto">it will be executed by default on boot.</p>
<p dir="auto">But! If you press G0 (BtnA) button as soon as the device is powered on, then the default UIFlow2 app will be started.</p>
<p dir="auto">I've found it in <a href="https://github.com/m5stack/uiflow-micropython/blob/master/m5stack/fs/user/boot.py" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/uiflow-micropython/blob/master/m5stack/fs/user/boot.py</a></p>
<pre><code>"""
boot_option:
    0 -&gt; Run main.py directly
    1 -&gt; Show startup menu and network setup
    2 -&gt; Only network setup

Quick reference:
    when use uiflow2.m5stack.com website, click RUN button to run workspace
    code, boot_option won't change, if you click DOWNLOAD button to download
    workspace code to device, boot_option will change to 2, it means after
    download code done, device will auto reboot and won't show startup menu, 
    only do the network connect, but after network connect success, you can
    still download or run workspace code. If you don't want do anything after
    boot, you can delete this whole file. If you want show startup menu again,
    you can hold BtnA(most device) and click reset button or repower device
    until show the startup menu(for those devices with screens, and this is a
    temporary method and may change in the future), after that the boot_option
    will change to 1, so next time still will show the startup menu.

    BTW, the network connection time has a default timeout (60s), you can modify
    the following definition to change this default value.
"""
</code></pre>
]]></description><link>https://community.m5stack.com/post/29928</link><guid isPermaLink="true">https://community.m5stack.com/post/29928</guid><dc:creator><![CDATA[yarixx]]></dc:creator><pubDate>Fri, 12 Sep 2025 18:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to UI Flow 2.0 Switching back from main.py to the config&amp;launch app on Mon, 10 Mar 2025 05:54:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sistar_hh" aria-label="Profile: sistar_hh">@<bdi>sistar_hh</bdi></a> 1<br />
This is normal, as download premaritally set the program to start on boot.<br />
To reset you have to use M5Burner to change the boot configuration.</p>
<p dir="auto">Yes, OTA only work in test mode (the "&gt; Run" button if you download, wifi is not activated an you will need to manually activate the wifi interface and connect to the target wifi.</p>
]]></description><link>https://community.m5stack.com/post/28437</link><guid isPermaLink="true">https://community.m5stack.com/post/28437</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 10 Mar 2025 05:54:14 GMT</pubDate></item></channel></rss>