<?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 web IDE error after using timer: &quot;Upload code failed&quot;]]></title><description><![CDATA[<p dir="auto">I am trying to use a timer in UIFlow to show the current time. When using "Run" in UIFlow web IDE, it will upload and run the program on Core2 once.</p>
<p dir="auto">But every time I try to "Run" again, when the program is already running, I get an error in UIFlow web IDE: "Upload code failed, maybe your device is offline check it and retry"</p>
<p dir="auto">I tried with both the hardware timer and the software timer. I also tried a loop with "Wait 1s". But every time I do this, the UIFlow web IDE can't upload anymore, it worked perfectly before.</p>
<p dir="auto">What should I change in my code to have the device work with UIFlow web IDE and use a timer to update UI every second?</p>
<p dir="auto"><img src="/assets/uploads/files/1729799703086-uiflow-web-ide-error.png" alt="UiFlow-web-IDE-error.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/6925/uiflow-web-ide-error-after-using-timer-upload-code-failed</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 15:00:06 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6925.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Oct 2024 19:58:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 18:17:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a> UIFlow Web predates WEB USB.<br />
You need to use UIFLOW2 for WEB USB</p>
]]></description><link>https://community.m5stack.com/post/26856</link><guid isPermaLink="true">https://community.m5stack.com/post/26856</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 25 Oct 2024 18:17:54 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 12:08:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuriko" aria-label="Profile: kuriko">@<bdi>kuriko</bdi></a> Wow, this is cool! Core2 UIFlow v1 is in WiFi mode, but with "Terminal (Beta)" I can connect over the USB serial console. The play button will upload and run the current script, even with timers.</p>
<p dir="auto">Would be very cool if the whole UIFlow web IDE had a setting to just connect via cable. Or if the Terminal play button could be placed somewhere in the IDE, without having the terminal window open all the time.</p>
<p dir="auto">Side note: The regular UIFlow web IDE play button now shows a green success message "Execute code successfully" when clicked, but the code is actually not running on the device. Either it's not uploaded or not restarted.</p>
]]></description><link>https://community.m5stack.com/post/26852</link><guid isPermaLink="true">https://community.m5stack.com/post/26852</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Fri, 25 Oct 2024 12:08:34 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 10:25:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a><br />
Yes, what I mean is that Terminal (Beta) orange button. After clicking the connect button, your browser will ask the serial connection and directly send microPython lines to your device via serial. Maybe you can try this to eliminate the network problem.</p>
]]></description><link>https://community.m5stack.com/post/26849</link><guid isPermaLink="true">https://community.m5stack.com/post/26849</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Fri, 25 Oct 2024 10:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 09:54:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuriko" aria-label="Profile: kuriko">@<bdi>kuriko</bdi></a> So I have downgraded to UIFlow v1 firmware on the Core2 again. I started the UIFlow web IDE in Chrome, expected it to have some web serial support (like CircuitPython has a web flasher), but I can not find any settings for USB or serial.</p>
<p dir="auto">The download page (<a href="https://docs.m5stack.com/en/download" target="_blank" rel="noopener noreferrer nofollow ugc">link</a>) states "Desktop IDE MacOS (update is terminated)", so do I need to run "UIFlow Local Server for MacOS"? The regular UIFlow web IDE only supports WiFi connection?</p>
<p dir="auto">The local m5burner software worked without a problem with USB <code>/tty.usbserial</code>.</p>
]]></description><link>https://community.m5stack.com/post/26848</link><guid isPermaLink="true">https://community.m5stack.com/post/26848</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Fri, 25 Oct 2024 09:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 09:26:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a> you can use hide/show/set based on condition for items on different screens,<br />
I would recommend "VolosR" github/YT for UI design approach but this is arduino mostly, also there is block to run your code in blockly</p>
]]></description><link>https://community.m5stack.com/post/26847</link><guid isPermaLink="true">https://community.m5stack.com/post/26847</guid><dc:creator><![CDATA[robski]]></dc:creator><pubDate>Fri, 25 Oct 2024 09:26:03 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 08:52:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robski" aria-label="Profile: robski">@<bdi>robski</bdi></a> Found and added RTC and Timer. In UIFlow v2 the WiFi connection still works when using the timer and updating a label every second. I can still update and run code.</p>
<p dir="auto"><img src="/assets/uploads/files/1729845083492-uiflow2-web-ide-timer.png" alt="UIFlow2-web-IDE-timer.png" class=" img-fluid img-markdown" /></p>
<hr />
<hr />
<hr />
<p dir="auto">I started with M5Stack hardware in 2020 and I am a bit surprised that some functions are still not there in 2024 in UIFlow:</p>
<ul>
<li>
<p dir="auto">It seems UIFlow2 lost the "Touch Button" in the GUI designer using rounded rectangle with text and on_touch event.</p>
</li>
<li>
<p dir="auto">It seems there is no way to design multiple screens or views. It's great to have a graphical GUI designer, but how can you only have one single view and not be able to switch between multiple in designer and via code?</p>
</li>
<li>
<p dir="auto">It seems there are no graphics functions in UIFlow v2. I want to programmatically draw an analogue clock (circle, 12x dashes, 3x hands), that seems not possible anymore.</p>
</li>
<li>
<p dir="auto">When using graphics functions, it would be great to be able to draw on screen or on a virtual screen, then updating the real screen as a whole.</p>
</li>
</ul>
<p dir="auto">Should I create separate "feature requests" for those things?</p>
]]></description><link>https://community.m5stack.com/post/26846</link><guid isPermaLink="true">https://community.m5stack.com/post/26846</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Fri, 25 Oct 2024 08:52:52 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 07:55:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a> button, timer etc needs to be added in left hand menu below controller image "software/hardware" in manner you would add module or unit</p>
]]></description><link>https://community.m5stack.com/post/26844</link><guid isPermaLink="true">https://community.m5stack.com/post/26844</guid><dc:creator><![CDATA[robski]]></dc:creator><pubDate>Fri, 25 Oct 2024 07:55:07 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 07:07:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robski" aria-label="Profile: robski">@<bdi>robski</bdi></a> The device is still connected when I run a "regular" program. It seems still to be connected when running a program with timer or <code>while true: sleep(1)</code>, but as soon as I press "Run", the <code>Connected</code> turns into <code>Disconnected</code>.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuriko" aria-label="Profile: kuriko">@<bdi>kuriko</bdi></a> Wanted to try serial, but pressed the "Download" button to save the file. Instead it uploaded the program to the device. Funnily it said first "Upload failed", on second try it was successful. So the naming convention (meaning) seems to be different, even within UIFlow ;-) I would have expected for "Download" to save the file to computer, and rather have something like "Upload" to save it as main program on device. MAybe I try this later</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robski" aria-label="Profile: robski">@<bdi>robski</bdi></a> Upgraded to UIFlow 2, was surprised to need to register and bind the device. Can't find a button element, cant find a timer, neither software nor hardware.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> I am aware to be able to reset the device to re-run, but that's not the point. I can edit end re-run a program via WiFi many times. Just the use of timer or <code>while true: sleep(1)</code> seems to disable the Wifi connection or the internal software to receive updates from UIFlow web IDE.</p>
<p dir="auto">Will continue to investigate in an hour or so.</p>
]]></description><link>https://community.m5stack.com/post/26843</link><guid isPermaLink="true">https://community.m5stack.com/post/26843</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Fri, 25 Oct 2024 07:07:34 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 04:42:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a> This is normal and all you have to do is press the reset button on the core2.<br />
The running program overrides the firmware and blocks accesses to the UIFlow server .</p>
]]></description><link>https://community.m5stack.com/post/26842</link><guid isPermaLink="true">https://community.m5stack.com/post/26842</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 25 Oct 2024 04:42:20 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 04:03:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a> is device showing as connected still after first "run"? usually should be but if you use upload then wifi block should be included in the code so unit is connected to network, can you try same with uiflow2?</p>
]]></description><link>https://community.m5stack.com/post/26841</link><guid isPermaLink="true">https://community.m5stack.com/post/26841</guid><dc:creator><![CDATA[robski]]></dc:creator><pubDate>Fri, 25 Oct 2024 04:03:20 GMT</pubDate></item><item><title><![CDATA[Reply to UIFlow web IDE error after using timer: &quot;Upload code failed&quot; on Fri, 25 Oct 2024 03:16:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/mb" aria-label="Profile: mb">@<bdi>mb</bdi></a> ,<br />
Have you tried uploading the program via serial?</p>
]]></description><link>https://community.m5stack.com/post/26840</link><guid isPermaLink="true">https://community.m5stack.com/post/26840</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Fri, 25 Oct 2024 03:16:23 GMT</pubDate></item></channel></rss>