title: HM-10 and Arduino - Sending AT commands with no line ending from code
body: <p>I need to use HM-10 with Arduino Uno or Nano.
  I'm not able to figure out how to send AT commands and read the reply.
  The commands work from serial monitor, but not from code.</p>
  
  <p>Here's what I've tried so far:</p>
  
  <pre><code>#include &lt;SoftwareSerial.h&gt;
  
  SoftwareSerial blueToothSerial(0,1); // RX, TX
  
  void setup()
  {
    // Open serial communications and wait for port to open:
    Serial.begin(115200);
    Serial.println("Serial began");
    blueToothSerial.begin(9600);
    delay(2000);
  }
  
  void loop()
  {
    Serial.println("looping...");
    blueToothSerial.print("AT+DISC?");
    delay(5000);
    if (blueToothSerial.available())
    {
      Serial.println("bluetooth serial available");
      Serial.write(blueToothSerial.read());
    }
  }
  </code></pre>
  
  <p>However, I'm not able to read any reply, I feel the command is not firing. The execution doesnt go inside if(blueToothSerial.available())</p>