Hi,
I used this script in my mikrotik to know if a mac was connected to the wifi and works perfectly.
Is there any way to know witch MAC are connected to DHCP server to use an external Acces Point..
Thanks
I used this script in my mikrotik to know if a mac was connected to the wifi and works perfectly.
Code:
{
:local iPhoneDavid [/int wire reg find mac-address="MAC"];
:local iPhoneVeronica [/int wire reg find mac-address="MAC"];
:if ($iPhoneDavid!="") do={
/tool fetch url="http://remote:remote@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=33/1/41&value=1" http-method=post;
} else={
/tool fetch url="http://remote:remote@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=33/1/41&value=0" http-method=post;
}
:if ($iPhoneVeronica!="") do={
/tool fetch url="http://remote:remote@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=33/1/42&value=1" http-method=post;
} else={
/tool fetch url="http://remote:remote@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=33/1/42&value=0" http-method=post;
}
}
Is there any way to know witch MAC are connected to DHCP server to use an external Acces Point..
Thanks