Hello,
i try to check with rest api total wifi clients.
for now i'm testing on my HAP ax2 with ROS 7.9.
so on mikrotik i use
/interface/wifiwave2/registration-table/print count-only where ssid="WIFI GUEST"
but with rest api i try to use
curl -k -u admin:12345678 -X POST https://10.2.1.1:10443/rest/interface/w ... able/print
i see correct all wifi client (on all ssid)
curl -k -u admin:12345678 -X POST https://10.2.1.1:10443/rest/interface/w ... able/print --data '{".query": ["ssid=WIFI GUEST"]}' -H "content-type: application/json"
to try now i use m laptop windows 11, and i have this error
{"detail":"Invalid JSON","error":400,"message":"Bad Request"}curl: (3) bad range in URL position 2:
[ssid=WIFI GUEST]}'
^
and i can't found documentation to use command "count-only"
can you help me?
thank you