<?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[HttpPost using UIflow]]></title><description><![CDATA[<p dir="auto">i have to send this command using HttpPost :</p>
<p dir="auto"><a href="http://79.8.125.79:8084/?onx" target="_blank" rel="noopener noreferrer nofollow ugc">http://79.8.125.79:8084/?onx</a><br />
Grab the response from the remote device  on a variable  and then print it on the display, this is the response:<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
ua 1 ub 1 uc 1 ud 1 ue 1 uf 1 ug 1 uh 1 ui 1 ul 1<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p dir="auto">I like UiFlow and i want to use it as best is possible<br />
Many thanks</p>
]]></description><link>https://community.m5stack.com/topic/2160/httppost-using-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 11:33:41 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2160.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jul 2020 12:01:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HttpPost using UIflow on Sat, 01 Aug 2020 17:47:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/franco" aria-label="Profile: franco">@<bdi>franco</bdi></a> see the python code tab. The urequests statement comes immediately after the try statement. If something goes wrong, e.g. a typo in the address (non-existent address), this requests instruction will be treated as if it never started and the blocks <strong>Get Data</strong> and <strong>Get Status Code</strong> will not return anything and probably their use in this case cause a error.</p>
]]></description><link>https://community.m5stack.com/post/9560</link><guid isPermaLink="true">https://community.m5stack.com/post/9560</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Sat, 01 Aug 2020 17:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Sat, 01 Aug 2020 13:46:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/franco" aria-label="Profile: franco">@<bdi>franco</bdi></a> what is the m5stack device is talking to?  It appears to be a web server or similar, but what is it?  Also, I would recommend adding another label to the m5stack/m5stickC to get the HTTP status code. This would give an indication if the flow is timing out (no response or eventually failure after the timeout period) or what the response is with the HTTP error code (see <a href="https://www.restapitutorial.com/httpstatuscodes.html" target="_blank" rel="noopener noreferrer nofollow ugc">this link</a> for a list of error codes).</p>
<p dir="auto"><img src="/assets/uploads/files/1596285060264-screen-shot-2020-08-01-at-8.30.37-am-resized.png" alt="0_1596285055868_Screen Shot 2020-08-01 at 8.30.37 AM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Also, you showed two http addresses above, <a href="http://79.8.125.79:8084/?onx" target="_blank" rel="noopener noreferrer nofollow ugc">http://79.8.125.79:8084/?onx</a> and <a href="http://192.168.1.123/?offx" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.1.123/?offx</a>. I assume one is on a public network and the other is on your private/local network. So you would also need to make sure the servers are not blocking traffic from the network the m5stack/m5stickC is on.</p>
]]></description><link>https://community.m5stack.com/post/9556</link><guid isPermaLink="true">https://community.m5stack.com/post/9556</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sat, 01 Aug 2020 13:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Sat, 01 Aug 2020 08:49:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/franco" aria-label="Profile: franco">@<bdi>franco</bdi></a> try change address to: <strong>http://ip_address_of_your_wifi_router</strong>  and check if yo get any tesponse. You must give back something.</p>
<p dir="auto">I change adress to:<strong><a href="https://www.google.com/index.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.google.com/index.html</a></strong> and i getback this response. I receive error, but show the server response for this request</p>
<p dir="auto"><img src="/assets/uploads/files/1596271765102-img_20200801_103725-01.jpg" alt="0_1596271685936_IMG_20200801_103725-01.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/9555</link><guid isPermaLink="true">https://community.m5stack.com/post/9555</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Sat, 01 Aug 2020 08:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Sat, 01 Aug 2020 07:17:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robalstona" aria-label="Profile: robalstona">@<bdi>robalstona</bdi></a><br />
Tested, and it doesn't work, no response and it doesn't send the command.</p>
<p dir="auto">I tested using the browser and i get the response and the hardware does what it have to do.</p>
<p dir="auto"><img src="/assets/uploads/files/1596266258995-schermata-2020-08-01-alle-09.17.07.png" alt="0_1596266244482_Schermata 2020-08-01 alle 09.17.07.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/9554</link><guid isPermaLink="true">https://community.m5stack.com/post/9554</guid><dc:creator><![CDATA[franco]]></dc:creator><pubDate>Sat, 01 Aug 2020 07:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Fri, 31 Jul 2020 18:59:37 GMT]]></title><description><![CDATA[<p dir="auto">maybe you should try this code:</p>
<p dir="auto"><img src="/assets/uploads/files/1596221971523-screenshot_20200731-205438-01.jpeg" alt="0_1596221966914_Screenshot_20200731-205438-01.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">also try add block to connect to your wifi and download code to device (not play button)</p>
]]></description><link>https://community.m5stack.com/post/9548</link><guid isPermaLink="true">https://community.m5stack.com/post/9548</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Fri, 31 Jul 2020 18:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Fri, 31 Jul 2020 17:52:43 GMT]]></title><description><![CDATA[<p dir="auto">i use a browser and i give this Url :<br />
"<a href="http://79.8.125.79:8084/?onx" target="_blank" rel="noopener noreferrer nofollow ugc">http://79.8.125.79:8084/?onx</a>"<br />
and then i get:<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
ua 1 ub 1 uc 1 ud 1 ue 1 uf 1 ug 1 uh 1 ui 1 ul 1<br />
&lt;/body&gt;<br />
&lt;/html</p>
<p dir="auto">there are lot of python example to get this result, but i want to replay it with UiFlow<br />
I tested with another software using HttpPost and HttpGet, both it work the response is different.<br />
This Url activate small board with 8 relè with a simple web server, few commands and i can control it.<br />
I want to do it using UiFlow example and M5stack basic.</p>
]]></description><link>https://community.m5stack.com/post/9545</link><guid isPermaLink="true">https://community.m5stack.com/post/9545</guid><dc:creator><![CDATA[franco]]></dc:creator><pubDate>Fri, 31 Jul 2020 17:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Mon, 27 Jul 2020 18:56:36 GMT]]></title><description><![CDATA[<p dir="auto">Maybe you need change POST  to GET. Print <strong>get data</strong> and <strong>status code</strong> in the <em>succes</em> and <em>failure</em> part of http block. Finally try use another software to test debug requests you are send. Or read Api documentation for your service/device.I already use Restler and Pydroid3 on Android for test http connection. But i wrote code in pure python and later i create own custom block to read data from services.</p>
<p dir="auto">How do you get data from your first post? (this html page).</p>
]]></description><link>https://community.m5stack.com/post/9465</link><guid isPermaLink="true">https://community.m5stack.com/post/9465</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Mon, 27 Jul 2020 18:56:36 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Mon, 27 Jul 2020 18:20:13 GMT]]></title><description><![CDATA[<p dir="auto">My problem is before, how to get the data, i tested this but it doesn't work!<br />
"Get data" fail.<br />
<img src="/assets/uploads/files/1595874003434-schermata-2020-07-27-alle-20.18.54.png" alt="0_1595873974367_Schermata 2020-07-27 alle 20.18.54.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/9464</link><guid isPermaLink="true">https://community.m5stack.com/post/9464</guid><dc:creator><![CDATA[franco]]></dc:creator><pubDate>Mon, 27 Jul 2020 18:20:13 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Mon, 27 Jul 2020 14:43:49 GMT]]></title><description><![CDATA[<p dir="auto">something like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1595860951956-screenshot_20200727-163409-01-resized.jpeg" alt="0_1595860935159_Screenshot_20200727-163409-01.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1595861021210-screenshot_20200727-163429-01-resized.jpeg" alt="0_1595860973942_Screenshot_20200727-163429-01.jpeg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/9462</link><guid isPermaLink="true">https://community.m5stack.com/post/9462</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Mon, 27 Jul 2020 14:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Mon, 27 Jul 2020 13:12:10 GMT]]></title><description><![CDATA[<p dir="auto">UiFlow Example?</p>
]]></description><link>https://community.m5stack.com/post/9460</link><guid isPermaLink="true">https://community.m5stack.com/post/9460</guid><dc:creator><![CDATA[franco]]></dc:creator><pubDate>Mon, 27 Jul 2020 13:12:10 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Mon, 27 Jul 2020 12:28:43 GMT]]></title><description><![CDATA[<p dir="auto">You should write a own parser for this response.</p>
<p dir="auto">You could use a block:<br />
text-&gt;replace <strong>oldvalue</strong> with <strong>newvalue</strong> in  <strong>yourresponse</strong><br />
to remove uneccessary values from your response</p>
<p dir="auto">where as:<br />
<strong>oldvalue</strong> you assign "&lt;HTML&gt;"<br />
<strong>newwalue</strong> you assign "" (empty string)<br />
<strong>yourresponse</strong> assign your response variable</p>
<p dir="auto">And repeat this for all other html markups exists  in your response. When you have only interested values<br />
<strong>ua 1 ub 1 ... ul 1</strong><br />
when you could use: list -&gt; make list from text <strong>yourresponse</strong> with delimiter <strong>" "</strong></p>
]]></description><link>https://community.m5stack.com/post/9459</link><guid isPermaLink="true">https://community.m5stack.com/post/9459</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Mon, 27 Jul 2020 12:28:43 GMT</pubDate></item><item><title><![CDATA[Reply to HttpPost using UIflow on Mon, 27 Jul 2020 12:19:19 GMT]]></title><description><![CDATA[<p dir="auto">You need a webserver to work with POST - GET requests</p>
]]></description><link>https://community.m5stack.com/post/9458</link><guid isPermaLink="true">https://community.m5stack.com/post/9458</guid><dc:creator><![CDATA[Thrasher]]></dc:creator><pubDate>Mon, 27 Jul 2020 12:19:19 GMT</pubDate></item></channel></rss>