I'm trying to get into Tasker. It seems useful but fairly buggy. Maybe because I'm on Android 11 with root.
When I'm on the bus playing games, it gets interrupted when an open WiFi comes in range and the phone tries to switch to it over data. I have tried a few profiles/task but they're unreliable.
Where I live there's a very common ISP provided WiFi with SSID ShawOpen. So the logic I'm thinking of
when Chess, ClashOfClans launched if wifi not connected OR ssid eq "ShawOpen" then turn off wifi
I have two profiles, both started when game is launched. One links to a task which turns off wifi if %WIFII doesn't contain "connection". The other task contains "test net > store wifi ssid in %ssid" then turn off swifi if ssid eq "ShawOpen".
I also tried this solution from UnkleMike
Profile: Wi-Fi Off (537) Restore: no Application: Barcode Scanner Enter: Anon (577) A1: Test Net [ Type:Wifi SSID Data: Store Result In:%ssid ] A2: Flash [ Text:%ssid Long:Off ] A3: If [ %ssid !Set | %ssid eq ShawOpen ] A4: WiFi [ Set:Off ] A5: End If
Here is an error message it sometimes got
18.58.24/E Test Net: %ssid -> %ssid 18.58.24/TD getStatic: Active load: true - ExecuteService 18.58.24/E result: stop task (error) 18.58.24/Variables doreplresult: |%ssid| -> |%ssid| 18.58.24/E Error: 1 18.58.24/MacroEdit action finished exeID 1 action no 0 code 341 status: Err next 0
I think there's sometimes an error in obtaining SSID and it sometimes has value of
<unknown> I have an always-on VPN which may mess things up.
In Tasker what's the best way to 1) test if WiFi is connected to anything and 2) get the SSID if connected. Does Tasker have
types for example should it be nescecary to check if
%ssid is set before checking if it's value is