Hi,
Variables need to be initialized by a trigger, a condition or an action.
In this case you can either use a trigger
WiFi Scan Results Available or a condition
WiFi Available in the flow. The variables are available for the complete flow when using the trigger. The variables become available after the condition is executed when the condition is used.
For example a flow that is executed whenever the system has new scan results available:
-trigger
WiFi Scan Results Available
-action
Write To File: {triggertime,dateformat,dd.MM.yyyy HHmmss}: {accesspoints} (press enter to add a line break at the end)
-action
Notification on Statusbar: {accesspoints}
alternatively:
-trigger
Periodic Timer: every 5m
-condition
WiFi Available:
-->false: -action
Write To File: {triggertime,dateformat,dd.MM.yyyy HH:mm:ss}: {accesspoints} (press enter to add a line break at the end)
both flows will print something like the following to the file:
19.10.2013 10:50:00: [ap1, ap2, ap3]
19.10.2013 10:50:10: [ap1, ap2, ap3]
If you want to process the list in a spreadsheet app it's better to format the list to a comma separated list by using the
listformat option:
-action
Write To File: {triggertime,dateformat,yyyy-MM-dd_HHmmss},{accesspoints,listformat,comma} (press enter to add a line break at the end)
which will print something like this:
2013-10-19_105000,ap1,ap2,ap3
2013-10-19_105000,ap1,ap2,ap3
Regards,
Martin