a problem in a simple get tx-signal info
RouterOS Scripting and API

3 posts   •   Page 1 of 1
David1234
Long time Member
Long time Member
 
Posts: 543
Joined: Sun Sep 18, 2011 7:00 pm

a problem in a simple get tx-signal info

by David1234 » Sun Jan 15, 2012 5:54 pm

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?

User avatar
skot
Long time Member
Long time Member
 
Posts: 506
Joined: Wed Nov 30, 2011 4:05 am

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

by skot » Thu Apr 26, 2012 11:41 pm

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

David1234
Long time Member
Long time Member
 
Posts: 543
Joined: Sun Sep 18, 2011 7:00 pm

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

by David1234 » Sun Apr 29, 2012 2:02 pm

Thank you :)

3 posts   •   Page 1 of 1

Who is online

Users browsing this forum: No registered users and 10 guests

It is currently Tue Nov 25, 2014 12:19 am