<?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[WiFi.setHostname(&quot;Name&quot;); not working (Core Basic)]]></title><description><![CDATA[<p dir="auto">I don't get an error message from the compiler, but the new name doesn't appear in the router</p>
<p dir="auto">WiFi.mode(WIFI_STA);<br />
WiFi.disconnect();                                    //Turn off all wifi connections.<br />
delay(100);<br />
WiFi.setHostname("M5StackCoreZaehler");<br />
WiFi.begin(ssid, password);<br />
M5.Lcd.print("Call to " + String(ssid));<br />
while (WiFi.status() != WL_CONNECTED) {<br />
M5.Lcd.print('.');<br />
delay(1000);<br />
}<br />
M5.Lcd.println(" ");<br />
M5.Lcd.println(WiFi.localIP());<br />
M5.Lcd.print("Signalstearke: ");<br />
M5.Lcd.println(WiFi.RSSI());<br />
server.begin();<br />
delay(4000);<br />
M5.Lcd.clear();</p>
]]></description><link>https://community.m5stack.com/topic/4435/wifi-sethostname-name-not-working-core-basic</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 23:48:49 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4435.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jul 2022 12:01:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WiFi.setHostname(&quot;Name&quot;); not working (Core Basic) on Mon, 18 Jul 2022 14:51:06 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately, a restart doesn't help either. maybe it's because of my older router.</p>
]]></description><link>https://community.m5stack.com/post/18003</link><guid isPermaLink="true">https://community.m5stack.com/post/18003</guid><dc:creator><![CDATA[Stoni99]]></dc:creator><pubDate>Mon, 18 Jul 2022 14:51:06 GMT</pubDate></item><item><title><![CDATA[Reply to WiFi.setHostname(&quot;Name&quot;); not working (Core Basic) on Wed, 13 Jul 2022 19:51:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/20443">@Stoni99</a></p>
<p dir="auto">have you tried to reboot your router? From above linked article:</p>
<p dir="auto"><em>Important: you may need to restart your router for the changes to take effect.</em></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17989</link><guid isPermaLink="true">https://community.m5stack.com/post/17989</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 13 Jul 2022 19:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to WiFi.setHostname(&quot;Name&quot;); not working (Core Basic) on Wed, 13 Jul 2022 16:45:55 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately this doesn't work for me. I am doing something wrong?</p>
<p dir="auto">......<br />
String hostname = "newName";<br />
......</p>
<p dir="auto">void initWiFi() {<br />
WiFi.mode(WIFI_STA);<br />
<a href="//WiFi.disconnect" target="_blank" rel="noopener noreferrer nofollow ugc">//WiFi.disconnect</a>();                                    //Turn off all wifi connections.<br />
//delay(100);<br />
WiFi.config(INADDR_NONE, INADDR_NONE, INADDR_NONE, INADDR_NONE);<br />
WiFi.setHostname(hostname.c_str());                   //define hostname   (wifi.config muss davor stehen<br />
WiFi.begin(ssid, password);<br />
M5.Lcd.print("Call to " + String(ssid));<br />
while (WiFi.status() != WL_CONNECTED) {<br />
M5.Lcd.print('.');<br />
delay(1000);<br />
}<br />
M5.Lcd.println(" ");<br />
M5.Lcd.println(WiFi.localIP());<br />
M5.Lcd.print("Signalstearke: ");<br />
M5.Lcd.println(WiFi.RSSI());<br />
server.begin();<br />
delay(4000);<br />
M5.Lcd.clear();<br />
}</p>
]]></description><link>https://community.m5stack.com/post/17986</link><guid isPermaLink="true">https://community.m5stack.com/post/17986</guid><dc:creator><![CDATA[Stoni99]]></dc:creator><pubDate>Wed, 13 Jul 2022 16:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to WiFi.setHostname(&quot;Name&quot;); not working (Core Basic) on Tue, 12 Jul 2022 05:07:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/20443">@Stoni99</a></p>
<p dir="auto">looks like you need to call <code>WiFi.config()</code> before setting a new host name as well. Please see this <a href="https://randomnerdtutorials.com/esp32-set-custom-hostname-arduino/" target="_blank" rel="noopener noreferrer nofollow ugc">article</a>. (Note: not tested myself.)</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17975</link><guid isPermaLink="true">https://community.m5stack.com/post/17975</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 12 Jul 2022 05:07:25 GMT</pubDate></item></channel></rss>