# Identity_AS **Repository Path**: bingjia/Identity_AS ## Basic Information - **Project Name**: Identity_AS - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-08-16 - **Last Updated**: 2023-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1.添加依赖仓库 ``` maven { // allowInsecureProtocol = true // gradle7需要放开这个注释 url 'http://bj.speedata.cn:8081/repository/spd-maven-public' } ``` 2.添加依赖 ``` implementation 'com.spd.id2:Id2:2.0.11' ``` 3.SDK方法列表 ``` //初始化 IdManager.getInstance().initDev(id2Entity, idReadCallBack); //释放资源 IdManager.getInstance().releaseDev(); ``` 4.DEMO中是通过联网获取初始化参数,也可手动构造,例如 ``` PowerEntity id2Entity = new PowerEntity("dev/ttyS1",115200,"NEW_MAIN_FG", List.of(165),"这个参数随便给"); IdManager.getInstance().initDev(id2Entity, idReadCallBack); ``` ## 注意事项 targetSdkVersion在23以下 不能指定 armeabi 或者armeabi-v7a 否则会报错 /lib/arm/libwlt2bmp.so" has text relocations 北京思必拓科技股份有限公司 网址 http://www.speedata.cn/ 技术支持 电话:155 4266 8023 QQ:2480737278