sure, sorry i gave v7 compatible code v6 will look like this
foreach i in=([/interface wireless scan wlan1 duration=5 as-value]) do={if (($i->"ssid")="Test_Network") do={:put $i}}
so what does this do:
/interface wireless scan wlan1 duration=5 as-value
does scan for 5 seconds and saves results in arrays of results
goes through every element of this array
if (($i->"ssid")="Test_Network")
checks if ssid in each array results matches your desired SSID
in this case just returns all values for ssid if that ssid was found
like this:
.id=*7;address=4C:5E:0C:5D:D3:B1;channel=5180/20/an/P(11dBm);nf=-109;radio-name=4C
5E0C5DD3B1;routeros-version=6.46.6;sig=-85;snr=24;ssid=sssss
this pretty much depends what you want to do. for example if your MikroTik router is equipped with beeper you can run something like this continuously:
while (true) do={foreach i in=([/interface wireless scan wlan1 duration=5 as-value]) do={if (($i->"ssid")="Test_Network") do={:put $i; :for i from=1 to=3 step=1 do={:beep frequency=550 length=494ms;:delay 494ms;:beep frequency=400 length=494ms;:delay 494ms;}}}}
you can also post data in external DB using fetch etc...