本项目是 中移物联网公司 为方便Android开发者接入 OneNET 平台而开发的客户端SDK。关于 OneNET 请进入 OneNET门户 了解详情。
- SDK运行要求:Android 1.6 (API 4) 及以上
- Sample运行要求:Android 4.1 (API 16) 及以上
dependencies {
implementation 'com.chinamobile.iot.onenet:onenet-sdk:2.2.1'
}
详细说明请参考 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
即可,或 在此查看。
SDK 使用过程中遇到的任何问题,都可以通过 Issues 来反馈,请尽可能的描述清楚遇到的问题,如果有错误信息也一同附带,并且在 Labels 中指明类型为 bug 或者其他,我们会以最快的速度给予解决。
The MIT License (MIT)
Copyright (c) 2015-2018 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.