Community discussions

 
User avatar
MaHr
just joined
Topic Author
Posts: 21
Joined: Wed Apr 22, 2009 2:59 am
Location: Czech Republic

API commands without data response

Wed Apr 22, 2009 3:14 am

Hello,
I am try demo API Delphi (downloaded from WIKI) and many command working fine, but If I would like to apply command /interface/wireless/scan with parameter =number=wlan1, scan will running and I see !re in aprx. 1 sec interval (it looks that something is received) but without any arguments (via Winbox I see scanned sites). Similar situation is with frequency-monitor commands.
Can somebody help me, where can be a problem?
Many thanks
Martin
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: API commands without data response

Wed Apr 22, 2009 12:28 pm

scan, torch, ping and other commands of this type (some special tool have to be invoked to see output) currently does not work or do it partially (in case of ping)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8319
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: API commands without data response

Wed Apr 22, 2009 1:59 pm

are there any plans in development of those tools? we need ARP Ping to check user's MAC and test the connection with enabled firewall...
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
olloc
just joined
Posts: 2
Joined: Tue Mar 24, 2009 3:22 pm
Location: Belgium
Contact:

Re: API commands without data response

Wed Apr 22, 2009 4:19 pm

it would be very useful to me if the interface parameter of the ping command would work
http://www.olloc.be - custom hard & software
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: API commands without data response

Thu Apr 23, 2009 12:51 pm

yes, there are plans, no ETA yet.
 
Bomber67
Member
Member
Posts: 304
Joined: Wed Nov 08, 2006 10:36 am

Re: API commands without data response

Fri May 15, 2009 11:28 pm

Any news on this Janis?
I would love to run wireless scans via the API!
 
selimcelik
just joined
Posts: 6
Joined: Thu May 28, 2009 4:45 pm
Location: Istanbul, Turkey

Re: API commands without data response

Fri May 29, 2009 11:31 am

It was already working until version 3.23, If you use version 3.20 you can scan wireless via API,

you can try with API command "/interface/wireless/scan","=.id=wlan1"

But this version's API service have some simple bugs specially on API request returns. If I remember right, there was a problem for ethernet status monitoring function and it was returning always !re.

A lot of bugs seems corrected on version 3.23 and 3.24 but now there is same problem on /interface/wireless/scan function this time.

I think that developers are missing some things while they are upgrading os.

Regards,
 
hgmamaci
just joined
Posts: 6
Joined: Wed Jul 15, 2009 9:14 pm

Re: API commands without data response

Fri Jul 17, 2009 12:54 am

when will mac-scan be working?
Right now return values are empty...

Thanks
-Mamaci
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: API commands without data response

Fri Jul 17, 2009 11:04 am

scan/monitor returns values differently than print and that is the problem we are working on, making all the non-print to work the same way, and than make them actually return values of results programs have generated. This will be done some day.
 
arianofiran
just joined
Posts: 5
Joined: Fri Sep 16, 2005 1:10 am

Re: API commands without data response

Fri Oct 23, 2009 7:30 am

did not it ready? my developed custom program waiting just for
returning right value from wireless scan and frequency monitor command
from API.when it return right value from monitoring and scan like command?
 
Bomber67
Member
Member
Posts: 304
Joined: Wed Nov 08, 2006 10:36 am

Re: API commands without data response

Fri Oct 23, 2009 8:03 am

did not it ready? my developed custom program waiting just for
returning right value from wireless scan and frequency monitor command
from API.when it return right value from monitoring and scan like command?
Yeah, same with me.
How long will this take Janis?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8319
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: API commands without data response

Fri Oct 23, 2009 10:50 am

What's new in 3.30:

*) console - 'torch' and 'wireless scan' commands have new argument
'duration' that approximately limits running time of the command;
*) api - 'torch' and 'wireless scan' commands now return same values
in '!re' responses as in console (before they didn't return
anything), '.proplist' is also correctly handled;
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.

Who is online

Users browsing this forum: No registered users and 25 guests