title: Print to thermal printer (DPP 450) from Android app
body: <p>I am developing an Android Java app that uses thermal printers to print delivery notes.</p>
  
  <p>Actually I have two printer models that print ok via Bluetooth (using <a href="https://en.wikipedia.org/wiki/ESC/POS" rel="nofollow noreferrer">ESC/POS</a>) but when I try to do it with the DPP-450 (which supports ESC/POS ), it connects ok via Bluetooth, but does not print anything.</p>
  
  <p>The way I print is:</p>
  
  <pre><code>if (mbtSocket!=null &amp;&amp; mbtSocket.isConnected()) {
      inReader = mbtSocket.getInputStream();
      outReader = mbtSocket.getOutputStream();
      int s = inReader.available();
      outReader.write(setInitp);
      String sendingmessage = "******************************" + "\n";
      byte[] send = sendingmessage.getBytes();
      outReader.write(send);
      sendingmessage = "Esto es una prueba de impresión" + "\n";
      send = sendingmessage.getBytes();
      outReader.write(send);
      outReader.flush();
      s = inReader.available();
      inReader.skip(0);
  }
  </code></pre>
  
  <p>This piece of code works on my other two printers (Citizen CMP-40 and Star printer BTT), but not on the DPP-450.</p>
  
  <p>Could some one help me please?</p>