<?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[Code runs well via the WebTerminal but not when device is restarted]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am trying to get an AtomS3U to run the code developed in UIFlow2 automatically upon restart.<br />
The device is flashed with the Alpha29-AtomS3U firmware.<br />
When I run the program from the UIFlow2 V2.0.0 WebTerminal, it works fine.<br />
When uploading the program on the device (over Wifi or through the web terminal), the upload works.<br />
But when restarting the device it does not work anymore.</p>
<p dir="auto">Here is the error message I get:<br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 49, in &lt;module&gt;<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 29, in setup<br />
File "umqtt/simple.py", line 68, in connect<br />
OSError: [Errno 118] EHOSTUNREACH</p>
<p dir="auto">So it works when the program is run from the web interface but not when restarting the device.</p>
<p dir="auto">Would someone have an idea what might be the reason?<br />
Will likely be obvious to some of you. 😄</p>
]]></description><link>https://community.m5stack.com/topic/5984/code-runs-well-via-the-webterminal-but-not-when-device-is-restarted</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 23:19:09 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5984.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jan 2024 11:03:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Code runs well via the WebTerminal but not when device is restarted on Tue, 16 Jan 2024 06:22:05 GMT]]></title><description><![CDATA[<p dir="auto">You need to Add the Wifi connection blocks to your code so that the Atom can connect to a wifi network.<br />
When run from the website, the wifi is already activated by the UIFlow connection code.</p>
]]></description><link>https://community.m5stack.com/post/23358</link><guid isPermaLink="true">https://community.m5stack.com/post/23358</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 16 Jan 2024 06:22:05 GMT</pubDate></item></channel></rss>