Android 需要通过蓝牙发送字符串

Android 需要通过蓝牙发送字符串,android,bluetooth,arduino,Android,Bluetooth,Arduino,当我只发送一个字母或一个数字时,我的代码工作得很好,但现在我尝试编辑它,使它也发送两个值和一个“:”,但由于某种原因,它不起作用。以下是我正在使用的代码: @Override public void onMove(int angle, int strength) { mTextViewAngleLeft.setText(angle + "°"); mTextViewStrengthLeft.setText(strength + "%"); command = (ang

当我只发送一个字母或一个数字时,我的代码工作得很好,但现在我尝试编辑它,使它也发送两个值和一个“:”,但由于某种原因,它不起作用。以下是我正在使用的代码:

@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();
    }
  }

命令声明为
String

这是一种预感,但度符号可能导致问题,请尝试使用Unicode值

结果是硬件错误(蓝牙无法正常工作)

尝试此代码1)在问题中添加一些标点符号。2)
它不工作
它到底是如何工作的?根本不向arduino板发送任何内容它是否打印任何异常?