本项目是 中移物联网公司 为方便Android开发者接入 OneNET 平台而开发的客户端SDK。关于设备云请进入OneNET主站了解详情。
- SDK运行要求:Android 1.6 (API 4) 及以上
- Sample运行要求:Android 4.1 (API 16) 及以上
dependencies {
compile 'com.chinamobile.iot.onenet:onenet-sdk:2.0.3'
}
详细说明请参考wiki文档
v2.0版本提供了更加美观和丰富的示例App供开发者参考,遵循Google Material Design风格,完全开源,开发者可以Clone项目源码查看详细内容。
也可以在此下载安装包
- Android AppCompat v7
- Android Design Support Library
- Android CardView v7
- Android RecyclerView v7
- Gson
- BaseRecyclerViewAdapterHelper
- FloatingActionButton
- v2.0版本完全重写了SDK,传输层使用OkHttp3,API根据OneNET RESTful文档做了相应的增减,API与v1.x不兼容,请使用了v1.x版本的开发者慎重升级。
- 更新到v2.x的开发者,如果要查看v1.x的代码,只要
git checkout OneNETSDK-v1
即可,或在此查看。 - 如果开发者项目中使用了OkHttp,建议在集成了SDK后去掉项目中对OkHttp的依赖,防止编译时发生冲突报错。
SDK使用过程中遇到的任何问题,都可以通过Issues来反馈,请尽可能的描述清楚遇到的问题,如果有错误信息也一同附带,并且在 Labels 中指明类型为 bug 或者其他,我们会以最快的速度给予解决。
The MIT License (MIT)
Copyright (c) 2015-2017 China Mobile IOT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.