Community discussions

MikroTik App

Search found 3 matches

by npongracic
Wed May 18, 2016 11:54 pm
Forum: Scripting
Topic: Winbox Wireless Scan/Connect with API
Replies: 2
Views: 1756

Re: Winbox Wireless Scan/Connect with API

I did it :) The problem was i ran interface/wireless/scan command before to get the list of SSIDs. This continued working in the background and it (probably) kept messing up my communication with the api. So i had to run Write("/cancel"); Read(); before doing: var commands = new List<strin...
by npongracic
Wed May 18, 2016 8:36 am
Forum: Scripting
Topic: Simple commands via api (set ssid and enabling or disabling)
Replies: 5
Views: 7963

Re: Simple commands via api (set ssid and enabling or disabling)

Hello, I also know this is an old post, but has anyone managed to get this working? Im using something like this (not PHP but the principle is the same): var commands = new List<string>() { "/interface/wireless/set", "=.id=wlan1", "=address=" + ap.Address, "=ssid=&...
by npongracic
Wed May 18, 2016 1:33 am
Forum: Scripting
Topic: Winbox Wireless Scan/Connect with API
Replies: 2
Views: 1756

Winbox Wireless Scan/Connect with API

Hello all, I'm kind of a begginer in this MikroTik scripting world but i would like to be able to replicate Winbox's functionality, that is: Wireless Scanner -> get a list of SSIDs, select one and click Connect and the SSID is set for wlan1. I've tried using this: var commands = new List<string>() {...