Page 1 of 1

Automatically record new CIDs when connected to any WiFi

Posted: 18 Jul 2017 07:23
by Duni
Hi all,

I hope someone can help me with the attached flow. The purpose of the flow is to make my phone based trigger as accurate as possible and to keep it always up to date.

It's triggered upon every cell change. It then evaluates whether it's an already known/recorded cell or if it's a new one. When it's a new cell I check whether I'm still connected to any of my known WiFis, because I'm only interested in all available cells in my WiFi areas.

But know I'm stuck because I have no clue how I can store these new cells which are within my WiFi areas. The stored CIDs have to accessible so that I can copy&paste them to the other known CIDs.

Any help is very much appreciated :)

BR Duni

EDIT: Ideally the newly recognized CIDs are automatically added to the other known CIDs.

Re: Automatically record new CIDs when connected to any WiFi

Posted: 18 Jul 2017 13:06
by houdinix64
//location of saved cids, make a map
If ( global_map_cid == null )
{
global_map_cid = newMap();
}

addMapEntry(global_map_cid,cid,ssid);

Re: Automatically record new CIDs when connected to any WiFi

Posted: 18 Jul 2017 13:31
by Duni
Thanks for the response. But this stores the following into the variable:
{null=null}

Re: Automatically record new CIDs when connected to any WiFi

Posted: 18 Jul 2017 16:25
by houdinix64
Dont manually execute the flow. I hope its correct.

Re: Automatically record new CIDs when connected to any WiFi

Posted: 18 Jul 2017 17:30
by Duni
Thanks for the tip not to execute manually!

Attached you can find an attempt to record all new CIDs when connected to a WiFi to a global list in one flow and the other flow uses this list to check when to enable or disable WiFi. But unfortunately, the check whether the current CID is contained in that global list or not doesn't work...

Any idea what I'm doing wrong?

Re: Automatically record new CIDs when connected to any WiFi

Posted: 19 Jul 2017 02:19
by houdinix64
Try this one

Re: Automatically record new CIDs when connected to any WiFi

Posted: 19 Jul 2017 04:08
by Duni
The only difference is the initialization of the global variable right? I had out already manually created, so that wasn't the problem. It still doesn't like the list of CIDs in the variable :(

Re: Automatically record new CIDs when connected to any WiFi

Posted: 19 Jul 2017 05:24
by Duni
Hm it seems to work now. Could it be possible that the first value in the list is ignored?

Anyway thanks a lot for your support!

Re: Automatically record new CIDs when connected to any WiFi

Posted: 12 Dec 2019 14:36
by steelersmb
I can't get this to work either. I think there may be a bug in the program when using a variable to check Phone Cell GSM. It doesn't like it when you use a variable as a the cell list.