configure_wifi
Set the SSID and Wi-Fi password on MikroTik router Wi-Fi interfaces, with options for security type, country, and password generation. Works with legacy wireless, wifi, and wifiwave2 drivers.
Instructions
Set SSID and Wi-Fi password on the router's Wi-Fi interfaces.
interfaces: which Wi-Fi interfaces (default: all, e.g. both 2.4 and 5 GHz). password: leave empty to have the user type it in a local popup (preferred), or set generate_password=True to create a strong one (shown in a local popup and saved under ~/mikrotik-sites//, never returned to chat). security: 'wpa2', 'wpa2-wpa3' (mixed, default) or 'wpa3'. Legacy 'wireless' driver only supports WPA2; mixed falls back to WPA2 there. country: regulatory country, e.g. 'Costa Rica'. Recommended on first setup. Works with legacy wireless, new wifi (7.13+) and wifiwave2 drivers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | router | |
| site | No | ||
| ssid | Yes | ||
| country | No | ||
| dry_run | No | ||
| password | No | ||
| security | No | wpa2-wpa3 | |
| interfaces | No | ||
| ensure_ap_mode | No | ||
| rollback_minutes | No | ||
| generate_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |