I’m trying to access the supported bands and the various channels for each. I can issue the following:
/interface/wireless/info/print
=.proplist=supported-bands
And get this back:
!re
=supported-bands=5ghz,5ghz-turbo,5ghz-10mhz,5ghz-5mhz
!re
=supported-bands=2ghz-b,2ghz-g,2ghz-g-turbo,2ghz-10mhz,2ghz-5mhz
!re
!done
But when I try and get the 5ghz-channels as follows it hangs.
/interface/wireless/info/print
=.proplist=5ghz-channels
Note that this information does show up in the console.
Any suggestions on how to access the supported information via the API is appreciated.
mrz
October 25, 2010, 7:01am
2
Which ROS version you have?
janisk
October 25, 2010, 11:13am
3
definitely not 5.0rc2 as this works there:
/interface/wireless/info/print
=.proplist=5ghz-channels
pdeline
October 26, 2010, 10:22pm
4
I’m using 4.10. Thanks for asking.
More information:
When I query for any of the 5ghz properties or the capabilities property the call never returns. All other properties behave as expected.
What response are you seeing when you do this?
I have upgraded to 5.0rc3 and I still do not get a response to this API command. It just hangs.
mrz
November 1, 2010, 7:02am
6
On which board and what wireless card is used?
pdeline
November 24, 2010, 10:49pm
7
I’ve managed to resolve this. The Java API described here: http://forum.mikrotik.com/t/api-login-and-md5/18926/2
does not account for a length being encoded in more than one byte.
janisk
November 25, 2010, 9:56am
8
it seems i should update that code with correct length calculation.
hope someone will find useful
http://wiki.mikrotik.com/wiki/API_in_Java