I searched the forum, and it seems to be configurable via /system routerboard mode-button
Is there any documentation that explains how to configure mode button?
I’m impressed with configurability and useability of RouterOS although documentation can improve.
The product brochures can refer to https://wiki.mikrotik.com/wiki/Manual:RouterBOARD_settings#Mode_button
RouterOS has thousands of features. We will not reference each feature with links to manual. There is a search function after all.
If I search google with “mode button site:http://wiki.mikrotik.com”, https://wiki.mikrotik.com/wiki/Manual:RouterBOARD_settings is not on the first page of the search results.
Also, on google search results, it’s not obvious that RouterBOARD_settings is related to mode buttons unless one is already familiar with RouterOS.
It should become easier to find.
After reading https://wiki.mikrotik.com/index.php?title=Manual%3ARouterBOARD_settings&type=revision&diff=30965&oldid=29628,
I realized that you added the mode button section today. It was no surprise that it didn’t turn up in the google search results.
This is a new product and the feature was added only a few weeks ago. Thanks for reminding us about the manual.
What the wiki doesn’t tell you is that this feature doesn’t work on 6.41 or earlier, so you need to install 6.42rc (which does not have a release version at time of writing).
This really should be specified somewhere.
![]()
Documentation is always left behind.
![]()
Documentation is always left behind.
https://wiki.mikrotik.com/index.php?title=Manual%3ARouterBOARD_settings&type=revision&diff=30965&oldid=29628 tells me that the documentation on mode button was created by normis after I created this thread.
Are you even reading the responses on this forum or just complaining ?
Someone faced a delay in running the script when the Mode button is clicked?
Yes, I’m facing the delays too. Sometimes it looks like my hap lite just don’t recognize I pressed a button on it, and some time later (~ 5-30 sec) it will recognize it and react to it.
Also today it seemed like the script on the button was running twice: enabling wireless interface for a short period of time, then disabling it after ~10 sec. I added comment to the start of it, so now I will see for sure if script is running twice for one press or it’s something else.
I’m using next script for the button to disable/enable wireless interface:
:log info message=("mode button was pressed");
:local i
:if ( [/int wir get 0 disabled ] = true ) do={
:foreach i in= [ /int wir find ] do={ :int wir enable $i };
} else={
:foreach i in= [ /int wir find ] do={ :int wir disable $i };
}
Yes, I’m facing the delays too. Sometimes it looks like my hap lite just don’t recognize I pressed a button on it, and some time later (~ 5-30 sec) it will recognize it and react to it.
Also today it seemed like the script on the button was running twice: enabling wireless interface for a short period of time, then disabling it after ~10 sec. I added comment to the start of it, so now I will see for sure if script is running twice for one press or it’s something else.I’m using next script for the button to disable/enable wireless interface:
:log info message=("mode button was pressed"); :local i :if ( [/int wir get 0 disabled ] = true ) do={ :foreach i in= [ /int wir find ] do={ :int wir enable $i }; } else={ :foreach i in= [ /int wir find ] do={ :int wir disable $i }; }
I propose to continue discussing this issue in this thread http://forum.mikrotik.com/t/run-script-by-mode-button-on-hap-ac-2/121266/1
Hi everyone, I’m a real newbie concerning routeur configuration.
I need help on how to add a WPS printer. Is that possible in maintaining the mode button? FYI the router is a package of the internet provider and any access is locked.
Thanks in advance.