<?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[M5Stick C &#x27;http GET&#x27;]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am using M5Stick C and have put together a blocky which is a simple http GET process.<br />
i.e. connect to WiFi and send data via GET.<br />
The Data (Key&amp;Value) is populated and the solution successfully sends to the correct URL but...</p>
<p dir="auto">No data is being included in the URL sent.<br />
On checking the Python code, the data is not added.</p>
<p dir="auto">Is this a bug?</p>
<p dir="auto">Python code generated via Blocky is below and I can provide .m5f if required.</p>
<p dir="auto">Thanks<br />
Ian</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import wifiCfg<br />
import urequests</p>
<p dir="auto">setScreenColor(0x111111)</p>
<p dir="auto">wifiCfg.doConnect('XXXXXXXX', 'XXXXXXXXX')<br />
label0 = M5TextBox(0, 16, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)<br />
label1 = M5TextBox(0, 55, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)</p>
<p dir="auto">if wifiCfg.wlan_sta.isconnected():<br />
label1.setColor(0x3333ff)<br />
label1.setFont(lcd.FONT_DejaVu18)<br />
label1.setText('connected')<br />
try:<br />
req = urequests.request(method='GET', url='<a href="http://URL.com/insertGet.php" target="_blank" rel="noopener noreferrer nofollow ugc">http://URL.com/insertGet.php</a>', headers={})<br />
label1.setText('SENT')<br />
label0.setColor(0x33ff33)<br />
label0.setFont(lcd.FONT_DejaVu18)<br />
label0.setText(str(req.status_code))<br />
except:<br />
pass<br />
else:<br />
label1.setColor(0xff0000)<br />
label1.setText('NOT SENT')</p>
]]></description><link>https://community.m5stack.com/topic/2765/m5stick-c-http-get</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:13:59 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2765.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Jan 2021 15:37:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stick C &#x27;http GET&#x27; on Tue, 19 Jan 2021 17:14:24 GMT]]></title><description><![CDATA[<p dir="auto">Bit confused as to why the 'Data' is ignored in GET.</p>
<p dir="auto">Switched to POST but data is still not delivered. I will continue to test and se if I can isolate  issue.</p>
]]></description><link>https://community.m5stack.com/post/11877</link><guid isPermaLink="true">https://community.m5stack.com/post/11877</guid><dc:creator><![CDATA[ianlyonthomas]]></dc:creator><pubDate>Tue, 19 Jan 2021 17:14:24 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stick C &#x27;http GET&#x27; on Mon, 18 Jan 2021 18:43:49 GMT]]></title><description><![CDATA[<p dir="auto">It ignores the data when using "GET", if you set it to e.g. "POST" the python code includes the data.</p>
]]></description><link>https://community.m5stack.com/post/11855</link><guid isPermaLink="true">https://community.m5stack.com/post/11855</guid><dc:creator><![CDATA[sodoku]]></dc:creator><pubDate>Mon, 18 Jan 2021 18:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stick C &#x27;http GET&#x27; on Mon, 18 Jan 2021 14:34:02 GMT]]></title><description><![CDATA[<p dir="auto">For blocky screen shot <a href="https://imgpile.com/i/798bPr" target="_blank" rel="noopener noreferrer nofollow ugc">https://imgpile.com/i/798bPr</a></p>
]]></description><link>https://community.m5stack.com/post/11832</link><guid isPermaLink="true">https://community.m5stack.com/post/11832</guid><dc:creator><![CDATA[ianlyonthomas]]></dc:creator><pubDate>Mon, 18 Jan 2021 14:34:02 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stick C &#x27;http GET&#x27; on Mon, 18 Jan 2021 14:26:49 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I was not clear.</p>
<p dir="auto">Within Data&gt;Create Map, I have added key: Temperature, Value:30 and key:Humidity, Value:50</p>
<p dir="auto">These are not present within the Python code.</p>
<p dir="auto">I will upload an image of the blocky.</p>
<p dir="auto">Ian</p>
]]></description><link>https://community.m5stack.com/post/11831</link><guid isPermaLink="true">https://community.m5stack.com/post/11831</guid><dc:creator><![CDATA[ianlyonthomas]]></dc:creator><pubDate>Mon, 18 Jan 2021 14:26:49 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stick C &#x27;http GET&#x27; on Mon, 18 Jan 2021 11:35:24 GMT]]></title><description><![CDATA[<p dir="auto">Within Python it seems there are no parameters set.</p>
<p dir="auto">You can add them in Blockly at Advanced -&gt; Http -&gt; Http Request -&gt; Data with a Map?</p>
<p dir="auto">Can you provide a screenshot? (If you need an image upload service, use <a href="http://imgpile.com" target="_blank" rel="noopener noreferrer nofollow ugc">imgpile.com</a> or similar)</p>
]]></description><link>https://community.m5stack.com/post/11822</link><guid isPermaLink="true">https://community.m5stack.com/post/11822</guid><dc:creator><![CDATA[mb]]></dc:creator><pubDate>Mon, 18 Jan 2021 11:35:24 GMT</pubDate></item></channel></rss>