My code worked fine when I was just sending 1 letter or 1 number, but now I tried editing it to make it send two values and a ":" as well, but for some reason it doesn't work. Here is the code I am using:
@Override
  public void onMove(int angle, int strength) {
    mTextViewAngleLeft.setText(angle + "°");
    mTextViewStrengthLeft.setText(strength + "%");
    command = (angle + ":" + strength + "\n");
    try {
      outputStream.write(command.getBytes()); //transmits the value of command to the bluetooth module
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
Command is declared as String.
 
     
    