Priority for Action

Post your questions and help other users.

Moderator: Martin

Post Reply
ajith339
Posts: 4
Joined: 06 Jul 2015 03:19

Priority for Action

Post by ajith339 » 06 Jul 2015 03:24

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Priority for Action

Post by Martin » 06 Jul 2015 18:30

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

ajith339
Posts: 4
Joined: 06 Jul 2015 03:19

Re: Priority for Action

Post by ajith339 » 07 Jul 2015 05:12

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Priority for Action

Post by Martin » 07 Jul 2015 15:16

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

ajith339
Posts: 4
Joined: 06 Jul 2015 03:19

Re: Priority for Action

Post by ajith339 » 08 Jul 2015 04:35

My idea is to reduce battery usage.
Will sitching mobile data off when not required (when wifi connected) reduce battry usage ?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Priority for Action

Post by Martin » 08 Jul 2015 19:07

I have no idea how much additional battery mobile data consumes when WiFi is on but I would expect it to be negligible.

ajith339
Posts: 4
Joined: 06 Jul 2015 03:19

Re: Priority for Action

Post by ajith339 » 10 Jul 2015 03:49

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.

Post Reply