code: private void sendMessage(org.isoblue.isobus.Message message) {
          // Check that we're actually connected before trying anything
          if (mChatService.getState() != BluetoothService.STATE_CONNECTED) {
              Toast.makeText(this, R.string.not_connected, Toast.LENGTH_SHORT)
                      .show();
              return;
          }
  
          // Get the message bytes and tell the BluetoothChatService to write
          mChatService.write(message);
  
          // Reset out string buffer to zero and clear the edit text field
          mOutStringBuffer.setLength(0);
      }
docs: Sends a message.
  
  @param message
  A string of text to send.