• MikroTik.com
  • RouterBOARD
  • User Meeting
  • Training
  • User Manual
  • Support
  • Downloads
  • Videos
Register |   * Login | HOME

View unanswered posts | View active topics

a problem in a simple get tx-signal info  Page 1 of 1
 [ 3 posts ]  Post new topic Reply to topic
  Print view Previous topic | Next topic 
Author Message
David1234
 Post subject: a problem in a simple get tx-signal info
PostPosted: Sun Jan 15, 2012 4:54 pm 
Offline
Member Candidate
Member Candidate

Joined: Sun Sep 18, 2011 6:00 pm
Posts: 282
Karma: 0
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?


Top
 Profile  
 
skot
 Post subject: Re: a problem in a simple get tx-signal info
PostPosted: Thu Apr 26, 2012 10:41 pm 
Offline
Member Candidate
Member Candidate
User avatar

Joined: Wed Nov 30, 2011 3:05 am
Posts: 286
Code:
if ( [/interface wireless registration-table get number=0 tx-signal-strength] >= -80 ) do={ :beep frequency=1000 length=2; } else={ :blink duration=3; }


Top
 Profile  
 
David1234
 Post subject: Re: a problem in a simple get tx-signal info
PostPosted: Sun Apr 29, 2012 1:02 pm 
Offline
Member Candidate
Member Candidate

Joined: Sun Sep 18, 2011 6:00 pm
Posts: 282
Karma: 0
Thank you :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 3 posts ] 

Board index » RouterOS » Scripting

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y