如何从API获取热点用户流量。就像用户为每个用户下载和上传。
我可以从API获取以下数据
array(16) { [".id"]=> string(8) "*20015AC" ["server"]=> string(8) "hotspot1" ["user"]=> string(17) "XX:A7:14:28" ["address"]=> string(10) "172.21.0.2" ["mac-address"]=> string(17) "14:30:04:A7:14:28" ["login-by"]=> string(3) "mac" ["uptime"]=> string(5) "2m18s" ["session-time-left"]=> string(10) "3w3d31m42s" ["idle-time"]=> string(2) "0s" ["keepalive-timeout"]=> string(2) "2m" ["bytes-in"]=> string(6) "435600" ["bytes-out"]=> string(7) "5799465" ["packets-in"]=> string(4) "3214" ["packets-out"]=> string(4) "5247" ["limit-bytes-total"]=> string(12) "141046834404" ["radius"]=> string(4) "true" }
$API->write("/ip/hotspot/active/print",true);
$READ = $API->read();
TX =>,RX =>