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

David1234
Long time Member
Long time Member
Posts: 694
Joined: Sun Sep 18, 2011 7:00 pm
Reputation: 1
First RouterOS version: 5.2

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: 585
Joined: Wed Nov 30, 2011 4:05 am
Reputation: 8
First RouterOS version: 2.9

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: 694
Joined: Sun Sep 18, 2011 7:00 pm
Reputation: 1
First RouterOS version: 5.2

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

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

Thank you :)

Who is online

Users browsing this forum: No registered users and 1 guest

It is currently Mon Aug 03, 2015 3:27 am