Hi,
I’m trying to access the WiFi scan capability via the REST API.
Below is the CLI command I’m trying to access which conducts a scan and prints the detected SSIDs etc to the terminal. I’m trying to perform the same via REST API.
[admin@MikroTik] > interface/wireless/scan wlan1
Flags: A - ACTIVE; P - PRIVACY
Columns: ADDRESS, SSID, CHANNEL, SIG, NF, SNR
ADDRESS SSID CHANNEL SIG NF SNR
(output removed)
I have successfully connected to the API but after a lot of research can’t work out how to send this command to the API. I can send other commands such as:
GET: http://ip/rest/interface/wireless
which prints wireless interface stats, but I can’t seem to trigger a scan.
I’ve tried
http://ip/rest/interface/wireless/scan
but I get
{
“detail”: “no such command”,
“error”: 400,
“message”: “Bad Request”
}
Has anyone got any ideas or managed to achieve this?
Thank you