<?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[Problem M5Touch hostname, transport base, mqtt_cliente anda M5Thing]]></title><description><![CDATA[<p dir="auto">Hi everyone, I'm having a problem with an M5tough that I use with a thermocouple and MQTT. I'm getting the following error. I don't know what it's due to or how to fix it. Has anyone else had the same problem? I searched the forum and couldn't find anything. Thanks for the help.</p>
<p dir="auto"><img src="/assets/uploads/files/1750060100504-prolema_m5.jpg" alt="prolema_m5.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/7619/problem-m5touch-hostname-transport-base-mqtt_cliente-anda-m5thing</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 18:40:26 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7619.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jun 2025 07:48:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem M5Touch hostname, transport base, mqtt_cliente anda M5Thing on Tue, 17 Jun 2025 04:21:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jose-manuel" aria-label="Profile: Jose-Manuel">@<bdi>Jose-Manuel</bdi></a> The error you're encountering (getaddrinfo() returns 202) typically indicates a DNS resolution issue, meaning the M5Tough is unable to resolve the hostname <a href="http://uiflow2.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">uiflow2.m5stack.com</a>. Here are some steps to troubleshoot and resolve the issue:</p>
<ol>
<li>Check Network Connection</li>
</ol>
<p dir="auto">Ensure the M5Tough is connected to a stable Wi-Fi network.<br />
Verify the Wi-Fi credentials (SSID and password) are correctly configured.</p>
<ol start="2">
<li>Verify DNS Settings</li>
</ol>
<p dir="auto">If the device is unable to resolve the hostname, try using a different DNS server (e.g., Google's DNS: 8.8.8.8 or 8.8.4.4).<br />
You can configure this in the Wi-Fi settings or DHCP settings of your router.</p>
<ol start="3">
<li>Test Connectivity</li>
</ol>
<p dir="auto">Use a tool like ping or nslookup to check if the hostname <a href="http://uiflow2.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">uiflow2.m5stack.com</a> is resolvable from another device on the same network.</p>
<ol start="4">
<li>MQTT Configuration</li>
</ol>
<p dir="auto">Ensure the MQTT broker settings (hostname, port, client ID, etc.) are correctly configured in your code.<br />
If the broker requires authentication, verify the username and password.</p>
<ol start="5">
<li>Firmware Update</li>
</ol>
<p dir="auto">Ensure the M5Tough is running the latest firmware. Outdated firmware might have bugs related to network connectivity.</p>
<ol start="6">
<li>Debugging</li>
</ol>
<p dir="auto">Add debug prints in your code to check the Wi-Fi and MQTT connection status before attempting to send messages.<br />
Example:print("Wi-Fi connected:", wifi.isconnected())<br />
print("MQTT connected:", mqtt.isconnected())</p>
<ol start="7">
<li>Alternative MQTT Broker</li>
</ol>
<p dir="auto">Temporarily switch to a public MQTT broker (e.g., <a href="http://test.mosquitto.org" target="_blank" rel="noopener noreferrer nofollow ugc">test.mosquitto.org</a>) to rule out issues with the <a href="http://uiflow2.m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">uiflow2.m5stack.com</a> server.</p>
<p dir="auto">Example Code for MQTT Connection (MicroPython)<br />
from umqtt.simple import MQTTClient<br />
import network</p>
<h1>Wi-Fi Configuration</h1>
<p dir="auto">wifi = network.WLAN(network.STA_IF)<br />
wifi.active(True)<br />
wifi.connect("YOUR_SSID", "YOUR_PASSWORD")</p>
<h1>Wait for Wi-Fi connection</h1>
<p dir="auto">while not wifi.isconnected():<br />
pass</p>
<p dir="auto">print("Wi-Fi connected:", wifi.isconnected())</p>
<h1>MQTT Configuration</h1>
<p dir="auto">mqtt = MQTTClient("client_id", "<a href="http://test.mosquitto.org" target="_blank" rel="noopener noreferrer nofollow ugc">test.mosquitto.org</a>", port=1883)<br />
mqtt.connect()<br />
print("MQTT connected:", mqtt.isconnected())</p>
<p dir="auto">Suggested Next Steps<br />
If the issue persists, you can contact M5Stack support at <a href="mailto:support@m5stack.com" target="_blank" rel="noopener noreferrer nofollow ugc">support@m5stack.com</a> for further assistance.<br />
reply with <a href="https://chat.m5stack.com/" target="_blank" rel="noopener noreferrer nofollow ugc">https://chat.m5stack.com/</a></p>
]]></description><link>https://community.m5stack.com/post/29262</link><guid isPermaLink="true">https://community.m5stack.com/post/29262</guid><dc:creator><![CDATA[yuyun2000]]></dc:creator><pubDate>Tue, 17 Jun 2025 04:21:50 GMT</pubDate></item></channel></rss>