title: how to format thermal printer in android using byte?
body: <p>I want to know how the byte code work in thermal printer </p>
  
  <pre><code>            tcmd = new byte[7];
              tcmd[0] = 0x1B;
              tcmd[1] = 0x5A;
              tcmd[2] = 0x00;
              tcmd[3] = 0x02;
              tcmd[4] = 0x07;
              tcmd[5] = 0x17;
              tcmd[6] = 0x00;
              String content = "SDK 2D-Code print test.";
              wfComm.sndByte(tcmd);
              wfComm.sendMsg(content, "GBK");
  </code></pre>
  
  <p>this code send the data to printer and the printer print the qr code that has the string , but if i send this without the byte array the printer simply print the string.
  I want to  understand the byte code if you can give me the documentation in which show that how this byte work</p>
  
  <p><a href="https://i.stack.imgur.com/VHuT3.png" rel="nofollow noreferrer">Check this image</a></p>