-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
1.1 上报数据接口定义 | ||
authserv_path/auth/?stage=counters_v2 | ||
如: | ||
wifidog/auth/?stage=counters_v2 | ||
1.2 上报接口数据说明 | ||
采用post的方式上传数据,一次性将所有移动端的信息上报,提高上报效率,降低服务器端的压力 | ||
数据说明如下: | ||
``` | ||
{"gw_id":"gw_id", clients:[ | ||
{"id":id,"ip":"ipaddress","mac":"macaddress","token":"tokenvalue","channel_path":channelPath, | ||
"name":"clientname","incoming":incoming,"outgoing":outgoing,"first_login":first_login, | ||
"is_online":is_online,"wired":is_wired_device}, ....]} | ||
``` | ||
2.1 返回数据说明 | ||
``` | ||
{"gw_id":"gw_id","auth_op":[{"id":clt_id,"auth_code":authcode}, ....]} | ||
``` |