Periodic Location Update question

Post your questions and help other users.

Moderator: Martin

User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

Re: Periodic Location Update question

Post by mechrekt » 27 Oct 2013 17:38

Martin wrote:1) The condition WiFi Available provides some variables to the flow when the SSID matches.
It will create a variable bssid containing the mac address of the AP with the strongest signal level and a variable bssids when multiple APs for this SSID are available (see the help page for the full list of variables).
You can use a condition Expression to check if the scan result matches the mac address of interest. For example: condition Expression: bssid=="12:34:56:78:90" or when using the list: Expression: containsElement(bssid, "12:34:56:78:90")
When working with variables it's often helpful to temporarily use a condition Debug Dialog in the flow. The condition will show a dialog with all available variables and the values of the variables. The Yes-button continues the flow on true-branch, the No-button continues the flow on the false-branch.
Hi,
now I whint I'm ok with step 2.
From the step 1 the concept is clear for me, (I also looked at the help) but I don't know how to use the variable bssid. If I activate the debug dialog after the Wifi Available condition I can see the correct value in the bssid variable, but I don't know how to use it because the WiFi Available let me select ssid only. Maybe is my problem because I don't know much about using variables in the app.

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

Re: Periodic Location Update question

Post by Martin » 28 Oct 2013 17:46

Hi,

You have to use an additional condition to check the bssid:
-open the flow editing screen
-select the condition WiFi Available of your flow
-drag down the (+)-icon to a free area then select 'True' and 'Condition'
-press New... to create a new condition
-select condition Expression and enter the following script:
bssid=="12:34:56:78:90"
Regards,
Martin

User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

Re: Periodic Location Update question

Post by mechrekt » 28 Oct 2013 17:54

Hello, very happy to hear you.
This works perfect for me!

Many thanks

Post Reply