I’m trying to make the following work with no luck. I’d like to change the wireless mode from AP to STA etc…
The language used is VB.net
mikrotik.Send(“/interface/wireless/set”)
mikrotik.Send(“=wlan1=”)
mikrotik.Send(“=mode=ap-bridge”)
mikrotik.Send(“.tag=sss”, True)
This returns as “unknown parameter”
Any thoughts?
thanx
I suspect this line:
mikrotik.Send(“=wlan1=”)
I think it should be
mikrotik.Send(“=name=wlan1”)
ADD: or I use after getting the id for that interface:
mikrotik.Send(“=.id=xxx”)
Thanx
It says done now, but doesn’t actually change the mode
mk.Send(“/interface/wireless/set”)
mk.Send(“=name=wlan1=”)
mk.Send(“=mode=ap-bridge”)
When I do it from terminal it’s fine
interface wireless set wlan1 mode=ap-bridge
I use the id of the interface. I don’t think the name of the interface will do it, only if you want to change the name of the interface. And you need the id to do that.
mikrotik.Send(“=.id=*xxx”)
Chupaka said this should work in one of his responses to an old post. I haven’t tried it
mikrotik.Send(“=.id=wlan1”)
ADD: And if you use this to change the name of the interface, this will no longer work. You should really stay with the id.
And we have a winner
mk.Send(“/interface/wireless/set”)
mk.Send(“=.id=wlan1”)
mk.Send(“=mode=ap-bridge”)
mk.Send(“.tag=sss”, True)
Thanx
It seems that I will have an Windows mobile and CE winbox clone…
If you plan on staying ‘Winbox Alike’, watch out for this later:
mk.Send(“/interface/wireless/set”)
mk.Send(“=.id=wlan1”)
mk.Send(“=name=NewName”)
mk.Send(“.tag=sss”, True)