| | |
| | | |
| | | //反转义 |
| | | byte[] datas=messageEscaper.unescape(message); |
| | | MyLog.i(PlatFormConstant.TAG,"服务消息:"+ BytesUtils.bytesToHexString(datas)); |
| | | // MyLog.i(PlatFormConstant.TAG,"服务消息:"+ BytesUtils.bytesToHexString(datas)); |
| | | JK2019MessageBase jk2019MessageBase = MessageManager.get(BytesUtils.bytesToHexString(datas)); |
| | | if (jk2019MessageBase instanceof JKMessage8100){ |
| | | if (((JKMessage8100) jk2019MessageBase).result == JKMessage8100.SUCCESS){ |
| | |
| | | sendMessage(jkMessage0101); |
| | | ExamPlatformData.getInstance().setExamplatformStatus(ExamPlatformData.DEV_REGISTERED); |
| | | }else{ |
| | | MyLog.i(PlatFormConstant.TAG,"设备未注册"); |
| | | ExamPlatformData.getInstance().setExamplatformStatus(ExamPlatformData.DEV_NOT_REGISTERED); |
| | | } |
| | | }else if (jk2019MessageBase instanceof JKMessage8001){ |