| | |
| | | result = ByteUtil.getShort(ByteUtil.subArray(msgbodyData,currPos,1)); |
| | | if (result == PlatFormConstant.SUCCESS){ |
| | | MyLog.i(PlatFormConstant.TAG,"设备注册成功"); |
| | | AuthMessage authMessage = new AuthMessage((short) 0x101); |
| | | |
| | | currPos +=1; |
| | | hexpwd = ByteUtil.byte2HexStr(ByteUtil.subArray(msgbodyData,currPos,msgBodyLength-3)); |
| | | MyLog.i(PlatFormConstant.TAG,"des pwd:"+hexpwd); |
| | | authMessage.setHexStrPwd(hexpwd); |
| | | MessageProcessor.getInstance().sendMessage(authMessage.toBytes()); |
| | | }else{ |
| | | MyLog.i(PlatFormConstant.TAG,"设备注册失败"); |
| | | } |