' wifi scanner example
mySSID$ = "mySSID" ' define your SSID here
wifi.scan
while wifi.networks(a$) = -1
wend
NL$ = chr$(10) ' this means New Line
for z=1 to word.count(a$, NL$) 'browse all the lines
z$ = word$(a$, z,NL$) 'extract line by line
s$ = word$(z$, 1, ",") ' extract the SSID (the 1st argument)
if (s$ = mySSID$) then ' if the SSID is the one we search
RSSI$ = word$(z$, 3, ",") ' extract the RSSI (the 3rd argument)
print s$, RSSI$
end if
next z
Last edited by Zim on Fri Feb 19, 2021 5:39 pm, edited 2 times in total.
There seems to be at least no permanent disconnect as I can send the results of Zim's WIFI search to a wlog without a problem. This shows all visible WIFI SSIDs:
Code: [Local Link Removed for Guests]
' wifi scanner example; shows ALL visible SSIDs
wifi.scan
while wifi.networks(a$) = -1
wend
NL$ = chr$(10) ' this means New Line
for z=1 to word.count(a$, NL$) 'browse all the lines
z$ = word$(a$, z,NL$) 'extract line by line
s$ = word$(z$, 1, ",") ' extract the SSID (the 1st argument)
RSSI$ = word$(z$, 3, ",") ' extract the RSSID (the 3rd argument)
print s$, RSSI$
wlog s$, RSSI$
next z