<?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[Crashes &#x2F; exception with atomlite]]></title><description><![CDATA[<p dir="auto">Hey guys,  i have used "try" around my i2c loop and mqtt to get  the error and try to recover from it. how ever struggeling to fix it( i heard from an alternative mqtt library but i wanted to know if you guys have another idea)<br />
Here you see my grafana graph. Loop gets increased after every "readvalues loop function" (mqtt )<br />
<img src="/assets/uploads/files/1655364569543-2022-06-16-09_14_00-resized.png" alt="0_1655364569251_2022-06-16 09_14_00-.png" class=" img-fluid img-markdown" /><br />
After these about 3000 loops it resets.</p>
<p dir="auto">Here is the flow:<br />
<img src="/assets/uploads/files/1655364678895-c95cbf93-e82e-41c2-91f4-8c6ff657e379-image-resized.png" alt="0_1655364678135_c95cbf93-e82e-41c2-91f4-8c6ff657e379-image.png" class=" img-fluid img-markdown" /><br />
And this( bottom of the read values function) :<br />
<img src="/assets/uploads/files/1655364739610-c9a090e4-4732-476b-9702-d0a7bdbd4639-image.png" alt="0_1655364740486_c9a090e4-4732-476b-9702-d0a7bdbd4639-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Serial console:<br />
[9362069] MQTTException -&gt; Server close socket link<br />
reconnect start ...<br />
reconnect finish ...<br />
[9366820] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9371201] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9376101] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9380496] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9385483] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9389926] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9394818] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9399401] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9404361] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9408826] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9413730] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9418185] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9423081] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9427470] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9432469] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
[9437051] MQTTException -&gt; -110<br />
reconnect start ...<br />
reconnect finish ...<br />
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)</p>
<p dir="auto">[9365685] MQTTException -&gt; Server close socket link<br />
reconnect start ...<br />
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)</p>
<p dir="auto">i get -104 mqtt exception and -110. i dont get to except it and try to stop the mqtt, wait a sec and start again. The wifi signal is good and its 1 m to the AP on this Atom ( not like in the other thread)</p>
<p dir="auto"><img src="/assets/uploads/files/1655364913807-665a6fa0-0928-4cfc-84a8-01f63193872d-image-resized.png" alt="0_1655364913415_665a6fa0-0928-4cfc-84a8-01f63193872d-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/4368/crashes-exception-with-atomlite</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:08:35 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4368.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Jun 2022 07:35:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Crashes &#x2F; exception with atomlite on Mon, 11 Jul 2022 18:37:48 GMT]]></title><description><![CDATA[<p dir="auto">it fixed my problem with the crashes, but now i have no QoS 1</p>
]]></description><link>https://community.m5stack.com/post/17971</link><guid isPermaLink="true">https://community.m5stack.com/post/17971</guid><dc:creator><![CDATA[mm-uiflow]]></dc:creator><pubDate>Mon, 11 Jul 2022 18:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Crashes &#x2F; exception with atomlite on Thu, 07 Jul 2022 07:37:25 GMT]]></title><description><![CDATA[<p dir="auto">i found out when i set mqtt's QoS to 0. i have loops over 20k and higher. So no exceptions anymore ( it was memory alloc exception before).</p>
<p dir="auto">i want to use QoS 1. QoS 1 sends a message  with a packet id see code below.<br />
What is the max interger value of micropython / uiflow? It seems like its crashing near the packetid value "65000"</p>
<p dir="auto"><img src="/assets/uploads/files/1657179246780-24e5b69c-a38a-4045-a11a-a8ae61635024-image.png" alt="0_1657179246667_24e5b69c-a38a-4045-a11a-a8ae61635024-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/17941</link><guid isPermaLink="true">https://community.m5stack.com/post/17941</guid><dc:creator><![CDATA[mm-uiflow]]></dc:creator><pubDate>Thu, 07 Jul 2022 07:37:25 GMT</pubDate></item></channel></rss>