I had to use the wps functionality on my mikrotik router to pair a specialized device namely ara.
The only way to connect this device to the internet is by using the wps functionality.
I am blind therefore do not use winbox or the router’s web interface because of their inaccessibility. What I mean is that these interfaces do not yield sufficient information to my screen reading technology so that I can navigate and activate the relevant elements like links and or buttons.
This is why I went the commandline route. Here is what you need to do.
/interface wireless
We are not going to concern ourselves with the hardware wps button because that is usually multi-function and it is hard to track the lights that glow on the router to indicate that the device has entered wps.
We will take the wlan1 interface as an example. To see a list of interfaces, run the following command.
print
Suppose we want to enable wps by pressing a virtual button on the router on wlan1, here is what we do.
set wlan1 wps-mode=push-button-virtual-only
The above command will instruct the router to enable the virtual button that can be triggered from software.
We will now actually activate wps.
wps-push-button wlan1
The above command placed the wlan1 interface on the router into wps server mode. This is when you initiate device pairing.
Henry says
hi there… in order to start wps on mikrotik by script that will be triggered by MODE button, the script is:
/interface wireless wps=enabled
?
Pranav says
Hi Henry, Many thanks and this is good to know.
Henry says
Hi there…that was a question actually… the right answer for setting MODE button to trigger WPS is:
1. in winbox go to System >> Scripts >> + add new script like ‘/interface wifiwave2 wps-push-button wifi1’ or ‘/interface wifiwave2 wps-push-button wifi2’ (it depends on your wireless settings of your router – to see those go to Wireless in winbox) and name it as ‘WPS’.
2. in winbox go to System >> RouterBOARD >> Mode button and activate it … also type in white square ‘WPS’.
To start WPS by script, just use one of those scripts.