I am trying to receive the information of the device fmb0100, through java websockets, once I receive the imei and send the 01, I receive the data in a very strange way as well as k Bl @ H 5 K B, the code is as follows:
DataInputStream a = new DataInputStream (new BufferedInputStream (clientSocket.getInputStream ()));
ByteArrayOutputStream os = new ByteArrayOutputStream ();
byte [] buffer = new byte [0xFFFF];
for (int len = a.read (buffer); len! = -1; len = a.read (buffer)) {
os.write (buffer, 0, len);
}
byte [] ab = os.toByteArray ();
How can I read that information?