<?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[[Solved]Any way to know the name of the SSID and other info with wifisetup?]]></title><description><![CDATA[<p dir="auto">Hello, as the title of this thread says, I need to perform specific actions depending of the SSID name. Any help with wifisetup? Thanks a lot!</p>
]]></description><link>https://community.m5stack.com/topic/873/solved-any-way-to-know-the-name-of-the-ssid-and-other-info-with-wifisetup</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 15:26:16 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/873.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Apr 2019 09:03:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved]Any way to know the name of the SSID and other info with wifisetup? on Sun, 28 Apr 2019 10:35:39 GMT]]></title><description><![CDATA[<p dir="auto">Well, I've managed to do on a different way, thanks a lot for your help. Here is the code:</p>
<pre><code>#import wifisetup
#wifisetup.auto_connect()
import network
from m5stack import *
from m5ui import *
from m5_pin import *
from m5mqtt import M5mqtt
from time import strftime, ticks_ms, ticks_diff, sleep_ms
import utime
import _thread

def connect(ssid,auth,timeout=6000):
    from network import WLAN, STA_IF, AP_IF
    global uplink
    uplink = WLAN(STA_IF)
    uplink.active(True)
    uplink.connect(ssid, auth)
    started= ticks_ms()
    while True:
        if uplink.isconnected():
            return True
        else:
            if ticks_diff(ticks_ms(), started) &lt; timeout:
                sleep_ms(100)
                continue
            else:
                return False 

wlan = network.WLAN(network.AP_IF)
while True: 
  if connect('Wifi1', 'password1'):
    red='Wifi1'
    break
  elif connect('Wifi2', 'password2'):
    red='Wifi2'
    break
  
print('connected to: ',red)
...
</code></pre>
]]></description><link>https://community.m5stack.com/post/4037</link><guid isPermaLink="true">https://community.m5stack.com/post/4037</guid><dc:creator><![CDATA[f3rn4nd0d]]></dc:creator><pubDate>Sun, 28 Apr 2019 10:35:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Any way to know the name of the SSID and other info with wifisetup? on Fri, 12 Apr 2019 01:35:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/720">@f3rn4nd0d</a> there is a wifi scanner script that comes with the uiflow firmware, heres the python code in that file, hope it helps.</p>
<pre><code>from m5stack import *
import network
import utime as time 

lcd.clear()

sta = network.WLAN(network.STA_IF)
sta.active(True)

while True:
    lcd.clear()
    lcd.setCursor(0, 0)
    lcd.print('wifi scan:')
    wifi_list = sta.scan()

    number = 1
    for i in wifi_list:
        lcd.print(i[0].decode(), 20, number*13)
        number += 1

    time.sleep(10)</code></pre>
]]></description><link>https://community.m5stack.com/post/3677</link><guid isPermaLink="true">https://community.m5stack.com/post/3677</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Fri, 12 Apr 2019 01:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Any way to know the name of the SSID and other info with wifisetup? on Thu, 11 Apr 2019 17:44:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/720">@f3rn4nd0d</a> I'm looking at something similar but using RSSI.<br />
For micropython I have been visiting the micropython forum.<br />
<a href="https://forum.micropython.org" target="_blank" rel="noopener noreferrer nofollow ugc">link text</a></p>
]]></description><link>https://community.m5stack.com/post/3671</link><guid isPermaLink="true">https://community.m5stack.com/post/3671</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 11 Apr 2019 17:44:53 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Any way to know the name of the SSID and other info with wifisetup? on Thu, 11 Apr 2019 17:23:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/724">@salty_good</a> thanks, but I'm developing a little client in python that will connect to several wifi networks. The idea is to publish a different message via MQTT depending of the wifi it has connected to. I need to do it in python, maybe I can import a different library that gives me more options than wifisetup.</p>
<p dir="auto">F.</p>
]]></description><link>https://community.m5stack.com/post/3670</link><guid isPermaLink="true">https://community.m5stack.com/post/3670</guid><dc:creator><![CDATA[f3rn4nd0d]]></dc:creator><pubDate>Thu, 11 Apr 2019 17:23:37 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Any way to know the name of the SSID and other info with wifisetup? on Thu, 11 Apr 2019 10:12:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/720">@f3rn4nd0d</a> You can get connecting SSID name and PSK on Arduino.</p>
<pre><code>#include &lt;WiFi.h&gt;

WiFi.SSID()
WiFi.psk()
</code></pre>
]]></description><link>https://community.m5stack.com/post/3653</link><guid isPermaLink="true">https://community.m5stack.com/post/3653</guid><dc:creator><![CDATA[salty_good]]></dc:creator><pubDate>Thu, 11 Apr 2019 10:12:37 GMT</pubDate></item></channel></rss>