Page 1 of 1

a problem in a simple get tx-signal info

Posted: Sun Jan 15, 2012 4:54 pm
by David1234
Hello all ,
I want to make a simple script
if the signal goes down from -80dBm it will blink
else will beep.

this is my script -

if ( [:tobool [/interface wireless registration-table get number=0 tx-signal-strength ]] >=-80) do={/ beep frequency=1000 length=2;} else={/blink duration=3;}

what I do wrong?

Re: a problem in a simple get tx-signal info

Posted: Thu Apr 26, 2012 11:41 pm
by skot
if ( [/interface wireless registration-table get number=0 tx-signal-strength] >= -80 ) do={ :beep frequency=1000 length=2; } else={ :blink duration=3; }

Re: a problem in a simple get tx-signal info

Posted: Sun Apr 29, 2012 2:02 pm
by David1234
Thank you :)