wifimapclient's People
wifimapclient's Issues
新增AP访问记录
上传地址:http://202.120.36.190:8080/apacessrecord
方式:POST
数据格式:JSON
{
"bssid": "00:11:b5:25:14:40",
"macAdress": "70:72:3c:33:0b:ef",
"startTime": "2016-03-03 17:15:12",
"endTime": "2016-03-03 17:45:12",
"latitude": 31.03107,
"longtitude": 121.442514
}
参数含义:
1.bssid:17位ap标识符,代表你连接的wifi。
2.macAdress:上传者的设备macAdress(用来判断上传的是谁)。
3.startTime和endTime:连接该ap的开始和结束时间,用字符串表示。(一种比较好的做法是用long存储从某一时刻(如1970年1月1日12:00)开始到现在的毫秒数,如果觉得客户端上传毫秒数比较方便我这边可以改成毫秒数)。
4.latitude和longtitude:上传者的经纬度,用来确定上传者连入wifi的大概位置。注意应该使用百度地图提供的定位功能获取坐标,而不是安卓自带的定位功能,因为这两种坐标位置显示在地图上会有很大的差别。
Hint:
1.可以先弄个按钮,点击以后开始Post数据,要Post的数据基本都能在程序里找到。。。等app合并以后在考虑ui的问题吧。
2.建议使用Volley作为网络部分,Gson解析Json,这两个库在这个app里面已经包含过了,相关的用法可以参考之前的GET写法。Gson的用法比较简单,Volley这次只要用到post部分,下面是Volley教程http://blog.csdn.net/guolin_blog/article/details/17482095/
3.上传成功会返回
{
"code":1,
"info":"Update Success."
}
上传失败返回intern server error或者page not found这些奇怪的页面。。。
合并app
把之前上传数据功能的app和这个显示数据的app合并成一个,建议把DetectionRogueAPSystem加到WifiMapClient中来,因为WifiMapClient中的依赖比较多。
要注意的地方:
1.Manifest文件的修改。
2.jniLabs中重复的.so文件保留一份即可。
3.活动间的跳转。
暂时就想到这些。。。可能还会遇到其他问题。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.