| | |
| | | * 解析登录报文 |
| | | */ |
| | | public UPAuthorizeMsgStartup decode(ByteBuf byteBuf) { |
| | | this.dataType = byteBuf.readShort(); |
| | | this.plateformId = Jtt809Util.readGBKString(byteBuf, 11); |
| | | this.authorizeCode1 = Jtt809Util.readGBKString(byteBuf, 64); |
| | | this.authorizeCode2 = Jtt809Util.readGBKString(byteBuf, 64); |
| | | try { |
| | | this.dataType = byteBuf.readShort(); |
| | | this.plateformId = Jtt809Util.readGBKString(byteBuf, 11); |
| | | this.authorizeCode1 = Jtt809Util.readGBKString(byteBuf, 64); |
| | | this.authorizeCode2 = Jtt809Util.readGBKString(byteBuf, 64); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | return this; |
| | | } |
| | | } |