title: Send String + Int data through Bluetooth Arduino
body: <p>I am new to Arduino and I have been working on a problem that has been troubling me for a few days.</p>
  
  <p>I have an Arduino Uno and an HC-05 Bluetooth module.</p>
  
  <p>Basically I want to send String and Int data together through Bluetooth.</p>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>#include &lt;SoftwareSerial.h&gt;        
  SoftwareSerial BTSerial(10, 11); // RX | TX
  
  void setup(void) {
    // Arduino setup
    Serial.begin(9600);
    // setting the baud rate of bluetooth
    BTSerial.begin(38400); // HC-05 default speed in AT command more
  }
  
  void loop(void) {
    int num = 123;
    BTSerial.write("#"); // Works
    BTSerial.write(num); // works
    BTSerial.write(String(num) + "#");
    // Error: no matching function for call to 'SoftwareSerial::write(StringSumHelper&amp;)'
  }
  </code></pre>
  
  <p>Also the result string should have '#' character at last.</p>
  
  <p>According to the Arduino <a href="https://www.arduino.cc/en/Serial/Write" rel="nofollow noreferrer">Website</a>, it has 2 functions.</p>
  
  <pre><code> - Serial.write(val) 
   - Serial.write(str) 
  </code></pre>
  
  <p>Any help appreciated.</p>
  
  <p>Thank you.</p>