There is NodeRed node for Mikrotik devices and using it was a difficult start because of the spare information how to use it.
To restart a connection I need first to need the know the .id of the wlan1, this because you can only address a specifik connection by the .id or numbers
Code: Select all
contribution removed
Now I have the .id of wlan1 and can use it in a second function node:
Code: Select all
contribution removed
Node Red is mainly graphical orientated so this how it looks and on the right you can see the debug output showing the second command.
contribution removed
The Mikrotik Node is available in palette in Node Red and the direct link is: https://flows.nodered.org/node/node-red ... b-mikrotik
Update: the command "=.proplist=.id" does not seem to do anything. Luckily NodeRed can address the values swiftly like msg.payload[0].disabled get false or true if a interface is active or not.
Update: proplist works and I have added it again to the code example