Community discussions

MikroTik App
 
kubla36
just joined
Topic Author
Posts: 10
Joined: Tue Jan 24, 2023 2:55 am

REST API, scan, w60g returns [], v7.7

Thu Feb 02, 2023 3:27 am

Not sure what I may be doing wrong. The REST API does not appear to return scan results for wlan60- type interfaces, but the routeros command line does return results.

From the command line:
[admin@MikroTik] > /interface/w60g scan duration=5 number=*1
Flags: R - ROUTEROS
Columns: ADDRESS, SSID, FREQUENCY, SIGNAL, RSSI
ADDRESS SSID FREQUENCY SIGNAL RSSI
R 04:CE:14:FA:17:BF MikroTik 58320 100 -54
But no APs seen using postman or curl:
curl -k -u admin -X POST 'https://192.168.1.205/rest/interface/w60g/scan' --data '{".id":"*1", "duration":5}' -H "content-type: application/json"
Enter host password for user 'admin':
[]%


While for a wifi interface the REST returns results:
curl -k -u admin -X POST 'https://192.168.1.205/rest/interface/wireless/scan' --data '{".id":"*2", "duration":5}' -H "content-type: application/json"
Enter host password for user 'admin':
[{".section":"1","address":"08:B4:B1:D6:8F:70 ----- and a lot more was listed]%
Suggestions?

Who is online

Users browsing this forum: No registered users and 20 guests