title: arduino send data in binary format(binary packets) instead of 1 and 0. sending like 00000000 and 00000001(8 bit binary)
body: <p>private void sendData(String message) {
          byte[] msgBuffer = message.getBytes();</p>
  
  <pre><code>    Log.d(TAG, "...Send data: " + message + "...");
  
      try {
          outStream.write(msgBuffer);
  
      } catch (IOException e) {
          String msg = "In onResume() and an exception occurred during write: "
                  + e.getMessage();
          if (address.equals("00:00:00:00:00:00"))
              msg = msg
                      + ".\n\nUpdate your server address from 00:00:00:00:00:00 to the correct address on line 35 in the java code";
          msg = msg + ".\n\nCheck that the SPP UUID: " + MY_UUID.toString()
                  + " exists on server.\n\n";
  
          errorExit("Fatal Error", msg);
      }
  }
  </code></pre>
  
  <p>In the above code we can send data like just "0" and "1". But want to send in 8-bits like 00000000 and 00000001. It should display in Arduino board. If press to send data 1 it should show 00000001 and 00000000.</p>