Monday, 11 July 2016

Tasker auto-sync problem



Dear Tasker users,

I'm going crazy! :(
I recently created a function to turn on wifi and turn off mobile data when there is a near wifi network and viceversa.
If I launch the app manually it works fine but if I wait it to work it doesn't.
I controlled the timings in the preferences but the Service Check Milliseconds is 1500 (when display is on), Wifi Scan Seconds are 120, All checks (when display is off) are 240 seconds.
It seems that the service does not work in background both when phone is locked and when is unlocked.
It works only sometimes (i can't understand exactly when)

The function is:

Profile: Known WiFi (3)
Stato: Near WIFI [ SSID:* MAC:* Functionality:* Minimum activation signal:4 Channel:0 Alternate Wifi:eek:ff ]
Start: WiFi And Data (2)
A1: Delete Notification [ Title: Warn does not exist:eek:ff ]
A2: If [ %WIFI ~ off ]
A3: Run Shell [ Command:svc wifi enable Timeout (Secondi):0 Use Root:eek:n Save Result In: Save Errors In: Save Result In: ]
A4: Wait till [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ] If [ %WIFI ~ on ]
A5: End If
A6: If [ %WIFII ~ *CONNECTION* ]
A7: LED Notification [ Title:WiFi Connected Text:%WIFII Icon:hd_device_access_network_wifi Number:1 Color:Green Evaluate:17 Priority:3 Actions:(1) ]
A8: Notification [ Titolo:%WIFII Testo: Icona:hd_device_access_network_wifi Numero:0 Permanente:eek:ff Priorità:3 ]
A9: Run Shell [ Comando:svc data disable Timeout (Secondi):0 Use Root:eek:n Save Result In: Save Errors In: Save Results In: ]
A10: Else
A11: Run Shell [ Command:svc data enable Timeout (Secondi):0 Use Root:eek:n Save Result In: Save Errors In: Save Result In: ]
A12: LED Notification [ Title:Mobile ON Text:%CELLID Icon:hd_content_import_export Number:1 Color:Red Evaluate:1 Priority:3 ]
A13: Run Shell [ Command:svc wifi disable Timeout (Seconds):0 Use Root:eek:n Save Result In: Save Errors In: Save Result In: ]
A14: End If

My android version is 6.0.1.

The scanning time (when is locked) is 120sec and the service check is 1500 msecs.

Could you please help me?



No comments:

Post a Comment