I’m using ros5.6 & the delphi api (brilliant job there Chupaka, many thanks!) to talk to 411s with either 5GHz or 2.4GHz radios fitted. I dynamically populate my drop-down lists if available bands/freqs depending on the hardware fitted.
Using the TestAPI program & a 2.4GHz radio the list of supported bands returned by:
/interface/wireless/info/print
is
.
=supported-bands=2ghz-b,2ghz-g,2ghz-10mhz,2ghz-5mhz
.
which is fine. However the band currently set returned by:
/interface/wireless/print
=advanced=
is
=band=2ghz-b/g
which dosen’t match any of the supported bands. Problematic when I’m tring to show the radio’s current settings.
Am I getting the info from the wrong place or doing something else stupid?
Thanks for the explanation janisk, its all becomming a bit clearer now…
Is there a way to get back the valid strings from RouterOS (ie 2ghz-b, 2ghz-b/g, 2ghz-b/g/n etc) at run time or would it be simplist to just hard-code them?