Page 1 of 1
Priority for Action
Posted: 06 Jul 2015 03:24
by ajith339
hi, i am using one action at 2 places in the same Flow. Is there a way to make that action 1st priority at one place and 2nd priority at the other place.
Please help.
Re: Priority for Action
Posted: 06 Jul 2015 18:30
by Martin
Hi,
I don't understand what priorities should be used for, you either execute an action when suitable or don't when not. You could use a global variable to remember when one setting should be in effect and should not be overridden by another setting, but it's hard to tell if this is appropriate in your case without more information.
Can you describe in more detail what you want to achieve? What actions are involved and how does your flow(s) work right now?
Regards,
Martin
Re: Priority for Action
Posted: 07 Jul 2015 05:12
by ajith339
Martin wrote:Hi,
I don't understand what priorities should be used for, you either execute an action when suitable or don't when not. You could use a global variable to remember when one setting should be in effect and should not be overridden by another setting, but it's hard to tell if this is appropriate in your case without more information.
Can you describe in more detail what you want to achieve? What actions are involved and how does your flow(s) work right now?
Regards,
Martin
Hi Martin,
i have a location based WiFi Flow.
Connected CID = True - > Wifi ON - > Wifi Connected to SSID xxxxx = True - > Execute Root Command: svc data disable
Connected CID = False - > Wifi Off -> Execute Root Command: svc data enable
i would like to use the action "Execute Root Command: svc data enable" as soon as i disconnect from my SSIDxxxxx while still in the same gsm CID range.
In this scenario, i would like to give first priority to data enable as soon as i disconnected from my SSID
or is there any other solution to achieve my requirement ? (Keep both Wifi and Mobile Data on while still connected to selected gsm CID and switch off Wifi once my phone is out of range of the CID)
Hope this help to understand my flow config
Re: Priority for Action
Posted: 07 Jul 2015 15:16
by Martin
Hi,
I would probably split this into multiple flows so that wifi is turned on/off depending on cell and use a second pair of flows to turn on/off mobile data when the connection to your wifi network changes.
About like this:
-trigger Phone Cell GSM: connected...
-action Set WiFI State: On
-trigger Phone Cell GSM: disconnected...
-action Set WiFI State: Off
-trigger WiFi Connected: SSID x
-action Execute Root Command: svc data disable
-trigger WiFi Disconnected
-action Execute Root Command: svc data enable
Android should usually not use mobile data when a working WiFi network is available. Wouldn't it be possible to just enable/disable the WiFi network depending on cell and not switch mobile data at all or is there some kind of app installed that forces the use of the mobile data connection?
Regards,
Martin
Re: Priority for Action
Posted: 08 Jul 2015 04:35
by ajith339
My idea is to reduce battery usage.
Will sitching mobile data off when not required (when wifi connected) reduce battry usage ?
Re: Priority for Action
Posted: 08 Jul 2015 19:07
by Martin
I have no idea how much additional battery mobile data consumes when WiFi is on but I would expect it to be negligible.
Re: Priority for Action
Posted: 10 Jul 2015 03:49
by ajith339
Martin wrote:I have no idea how much additional battery mobile data consumes when WiFi is on but I would expect it to be negligible.
Thanks for your reply.
in this case i will try your suggestion to have broken down Flows.