<?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[UIFlow2.0 NVS how-to check pre-existence (ESP_ERR_NVS_NOT_FOUND)]]></title><description><![CDATA[<p dir="auto">Hi, I want to use NVS in UIFlow2.0 with blocks, but I think this is not possible.<br />
Normally, you should read a nvs value and, if it does not exist, create it, but there is no block to check the existence of a variable, and reading a variable which does not exist causes the program to crash (ESP_ERR_NVS_NOT_FOUND).<br />
How I can do that check? Can I catch the error so the program is not stopped?</p>
]]></description><link>https://community.m5stack.com/topic/6102/uiflow2-0-nvs-how-to-check-pre-existence-esp_err_nvs_not_found</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 23:30:50 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6102.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Feb 2024 22:07:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UIFlow2.0 NVS how-to check pre-existence (ESP_ERR_NVS_NOT_FOUND) on Mon, 19 Feb 2024 10:02:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/60119">@txinto</a></p>
<p dir="auto">you can wrap the get key block in a <code>try / except</code> block. See example <em>M5Dial_NVS_UIFlow2.0.1</em> in the UIFlow2 <em>Project Zone</em>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/23915</link><guid isPermaLink="true">https://community.m5stack.com/post/23915</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 19 Feb 2024 10:02:51 GMT</pubDate></item></channel></rss>