Tasker can't do any of that, sorry.
Tom
you could run their app and then see if you could peek at any data files they create to see if you could extract mac id addresses.
another idea is if you have busybox installed on your phone. you could try the shell command:
arp -avn
and see if that gets you anything.
Tom
:)
the shell command:
arp -avn
doesn't need root to work, but it won't give you all the hosts on your lan. so you need another method.
:(
Tom
look at current ip addr and net mask.
loop thru addr space
ping each possible addr in addr space
end loop
look in the arp cache for the mac addresses
If you have a rooted phone, buying and running pamn installs the nmap binaries on your device, so, you could run nmap directly from the shell to get exactly what you need.
/data/data/com.wjholden.nmap/bin # ./nmap -sn 192.168.2.100-254 &>2 /dev/null; ip neigh
192.168.2.100 dev tiwlan0 lladdr zz:qq:jj:qq:xx:yy REACHABLE
192.168.2.104 dev tiwlan0 lladdr 88:bb:55:zz:yy:xx STALE
192.168.2.107 dev tiwlan0 lladdr zz:tt:33:44:zz:22 STALE
... with my mac addrs fuzzed out to protect my privacy. :)
Then you can use tasker to run the shell command I posted in my previous reply. Catch the shell output in a var and use a notify flash action to display the contents of the var.
If that works, you can move onto extracting just the mac addrs from the output.
/data/data/com.wjholden.nmap/bin/nmap -sn 192.168.1.1-254
Obviously, replace 192.168.1.1-254 with your appropriate ip range. Make sure that Run As Root is enabled for the RunShell action. Fill in a global var in the output field like %OUTPUT. this will store any output from the shell command.
after this step, you can just have a simple Notify > Flash: %OUTPUT to see the results.
Get that working, then you can replace the shell command with something more refined:
/data/data/com.wjholden.nmap/bin/nmap -sn 192.168.2.100-254 &>2 /dev/null ; ip neighbor
this runs nmap, but hides any output from nmap. it then runs the command:
ip neighbor
which is the cmd that'll actually show you the interesting network data.
Once this is working, you can hop up the output and keep the column of mac addrs you need, either using awk on the command line or Tasker's var split actions.
Tom
Anything and everything, if you look hard enough. :)
Tom
busybox: the Linux environment that you get with android is very striped down. Busybox puts back in a lot of what you'd expect to find in a Linux environment. Look in Busybox.net for more info.
sqlite: this is a popular database format that android uses. Learn to use sqlite on a rooted phone, and everything on your phone opens up to you like that moment of clarity when Neo can see the Matrix code.
octave: it's like MATLAB, on android
Etc etc etc
Tom