HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/socket/HDLAuthSocket.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDLSDK_DEMO/.idea/compiler.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDLSDK_DEMO/app/build.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDLSDK_DEMO/app/libs/com.hdl.sdk-release.aar | 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDLSDK_DEMO/app/libs/com.hdl.sdk-v1.0.16.aar | 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDLSDK_DEMO/app/src/main/java/com/hdl/hdlsdk/MainActivity.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDLSDK_DEMO/settings.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/socket/HDLAuthSocket.java
@@ -187,7 +187,7 @@ try { AuthenticateResponse bean = getAuthenticateResponseBean(msg); if (bean != null) { if (bean.getCode().equals("200")) { if (bean.getCode().equals("200") || bean.getCode().equals("0")) { String localSecret = ""; String gatewayId = ""; String ipAddress = ""; HDLSDK_DEMO/.idea/compiler.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="CompilerConfiguration"> <bytecodeTargetLevel target="1.8" /> <bytecodeTargetLevel target="11" /> </component> </project> HDLSDK_DEMO/app/build.gradle
@@ -40,4 +40,5 @@ implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6' implementation 'com.google.code.gson:gson:2.8.8' // implementation project(path: ':hdl-connect') implementation files('libs\\com.hdl.sdk-v1.0.16.aar') } HDLSDK_DEMO/app/libs/com.hdl.sdk-release.aarBinary files differ
HDLSDK_DEMO/app/libs/com.hdl.sdk-v1.0.16.aarBinary files differ
HDLSDK_DEMO/app/src/main/java/com/hdl/hdlsdk/MainActivity.java
@@ -75,18 +75,18 @@ void initDeviceInfo() { AuthenticateRequest.AuthenticateDeviceInfoBean infoBean = new AuthenticateRequest.AuthenticateDeviceInfoBean(); infoBean.setDeviceMAC("AA000000000000AF"); infoBean.setIPMAC("AA000000000000AF"); infoBean.setDeviceMAC("AA00000000000100"); infoBean.setIPMAC("AA00000000000100"); infoBean.setDeviceName("音乐播放器");//设备名字 infoBean.setDeviceModel("MCLog.431");//设备型号 infoBean.setAccessMode("WIFI"); infoBean.setIPGateway("192.168.88.1"); infoBean.setIPAddress("192.168.88.153"); infoBean.setIPGateway("192.168.1.1"); infoBean.setIPAddress("192.168.1.116"); infoBean.setGateway_type("music.standard"); infoBean.setHw_version("HW2.0"); infoBean.setFw_version("Fw1.0"); infoBean.setOID("010105000000FE10");//每个设备oid都要不一样 infoBean.setSid("110105000000FE08110100000000");//每个设备的sid都要不一样 infoBean.setOID("010105000000FE11");//每个设备oid都要不一样 infoBean.setSid("110105000000FE08110100000011");//每个设备的sid都要不一样 HDLLinkConfig.getInstance().setDeviceInfoBean(infoBean); } @@ -104,8 +104,8 @@ // 正式服务器 String spkStr = "screen.mirror";//产品spk String macStr = "AA000000000000AC";//设备唯一MAC地址 String secret = "ee62124c151b737c";//通过spk和mac提交云端认证后分配的secret String macStr = "AA00000000000100";//设备唯一MAC地址 String secret = "e186beeb7974998e";//通过spk和mac提交云端认证后分配的secret String mac_key = stringToMD5(stringToMD5(macStr + secret)); String versionString = "HDL_V1.0.1";// HDLSDK_DEMO/settings.gradle
@@ -3,4 +3,3 @@ include ':hdl-socket' include ':hdl-connect' include ':hdl-common'