<?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[How can we use HTTP request with UIFlow 2.0?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to implement an HTTP client on AtomS3 Lite with UIFlow 2.0. I have implemented on ATOM LITE with UIFlow 1.0 as follows:</p>
<p dir="auto"><a href="https://github.com/kotobuki/Toolkit-for-Collaborative-XR/blob/main/examples/uiflow/update_attribute_atom.png" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/kotobuki/Toolkit-for-Collaborative-XR/blob/main/examples/uiflow/update_attribute_atom.png</a></p>
<p dir="auto">My questions are as follows:</p>
<ul>
<li>When should we use <code>HTTP close</code>, right after an <code>HTTP request</code> block or after handling a response?</li>
<li>What is equivalent to <code>Get Data</code> in UIFlow 1.0, <code>get content</code> or <code>get text</code>?</li>
</ul>
<p dir="auto">It would be much appreciated if you give me advice regarding this topic.</p>
<p dir="auto">Thank you very much in advance,<br />
Shigeru</p>
]]></description><link>https://community.m5stack.com/topic/5699/how-can-we-use-http-request-with-uiflow-2-0</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:28:49 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5699.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Oct 2023 06:09:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can we use HTTP request with UIFlow 2.0? on Tue, 13 Feb 2024 07:07:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am new, but I have been poking around since I experienced the urequests library not found error.</p>
<p dir="auto">I REPL'd into my Core3,, and sure enough, it wasn't there, but there was one called <strong>requests</strong>.</p>
<p dir="auto">I did some poker with the code in UiFlow and read many Google answers, but I managed to get it to work. I ended up with the HTTP request in a code block.</p>
<p dir="auto">http_req = requests.request(<br />
method='POST',<br />
url='<a href="http://192.168.1.51/json/state" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.1.51/json/state</a>',<br />
headers={'Content-Type':'application/json'},<br />
data='{"on":true,"bri":255, "v":true, "seg":{"fx":"r", "pal":"r"}}'<br />
)<br />
http_req.close()</p>
<p dir="auto">It seemed to work for me, but I would prefer to get it working correctly.</p>
]]></description><link>https://community.m5stack.com/post/23775</link><guid isPermaLink="true">https://community.m5stack.com/post/23775</guid><dc:creator><![CDATA[MadeFL]]></dc:creator><pubDate>Tue, 13 Feb 2024 07:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to How can we use HTTP request with UIFlow 2.0? on Mon, 12 Feb 2024 18:36:25 GMT]]></title><description><![CDATA[<p dir="auto">Http close is used at the end to terminate HTTP request sessions.</p>
<p dir="auto">I'm trying to work on logging and documenting the functions but its slow going.</p>
]]></description><link>https://community.m5stack.com/post/23765</link><guid isPermaLink="true">https://community.m5stack.com/post/23765</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 12 Feb 2024 18:36:25 GMT</pubDate></item><item><title><![CDATA[Reply to How can we use HTTP request with UIFlow 2.0? on Mon, 12 Feb 2024 09:48:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi Shigeru,</p>
<p dir="auto">Can you share how do you install the "urequests" module?</p>
<p dir="auto">I downloaded from the link below and copied to libs/<br />
<a href="https://github.com/m5stack/M5Stack_MicroPython/blob/master/MicroPython_BUILD/components/micropython/esp32/modules/urequests.py" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack_MicroPython/blob/master/MicroPython_BUILD/components/micropython/esp32/modules/urequests.py</a></p>
<p dir="auto">but I got the following error:<br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 105, in &lt;module&gt;<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 92, in loop<br />
File "/flash/libs/urequests.py", line 112, in get<br />
File "/flash/libs/urequests.py", line 97, in request<br />
NotImplementedError: Redirects not yet supported</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/post/23762</link><guid isPermaLink="true">https://community.m5stack.com/post/23762</guid><dc:creator><![CDATA[Pixellord]]></dc:creator><pubDate>Mon, 12 Feb 2024 09:48:21 GMT</pubDate></item><item><title><![CDATA[Reply to How can we use HTTP request with UIFlow 2.0? on Wed, 25 Oct 2023 04:50:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I found that the following code works as I expected. I want to share for your reference until official examples are provided.</p>
<p dir="auto"><img src="/assets/uploads/files/1698209403572-uiflow2_block_1698209308543.png" alt="0_1698209398752_uiflow2_block_1698209308543.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks,<br />
Shigeru</p>
]]></description><link>https://community.m5stack.com/post/22574</link><guid isPermaLink="true">https://community.m5stack.com/post/22574</guid><dc:creator><![CDATA[kotobuki]]></dc:creator><pubDate>Wed, 25 Oct 2023 04:50:30 GMT</pubDate></item></channel></rss>