• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[Tasker] how to report the last WiFi SSID?

ldm1417

Member
Aug 7, 2018
60
9
Hi All,

How can I write a Tasker task, which reports (sets a variable) what WiFi SSID network the phone is connected to (or disconnected)?

If the phone is got disconnected from the WiFi network, I'd like to know about it. The last WiFi network SSID, from which the phone was disconnected, should be written to a log file.

Thank you!
 
The following Profile/Task captures the SSID and Flashes it.

Replace A4 with whatever you want … like writing to a file.

Profile: Demo
State: Wifi Connected [ SSID:* MAC:* IP:* Active:Yes ]
Enter: Anon
A1: Variable Set [ Name:%temp To:%WIFII Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Variable Split [ Name:%temp Splitter: Delete Base:Off ]
A3: Variable Search Replace [ Variable:%temp4 Search:" Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With: ]
A4: Flash [ Text:SSID = %temp4 Long:On ]

… Thom
 
  • Like
Reactions: Vyza and ldm1417
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones