Commit b80fca08 authored by captainwong's avatar captainwong

fix

parent 4ff1c2a0
......@@ -56,8 +56,12 @@ public class SimpleServer {
xdata[4] = (byte)0x76;
String sx = new String(xdata);
String data = lib.pack2(1234, "861234567890", 666666, 3400, 0, 0, sx);
byte[] bytes = data.getBytes(data);
System.out.println("data=" + printable_bytes(bytes));
try{
byte[] bytes = data.getBytes(data);
System.out.println("data=" + printable_bytes(bytes));
}catch(UnsupportedEncodingException e){
}
}
// test pack ack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment