Hi, yes thanks for your input.
I have a Bluetooth module with RX/TX on pins 10 & 11 using the SoftwareSerial.h library.
This enables two-way comms with no problems, i found for example that when I connected the Bluetooth module to pins 0 and 1 although I got it working I'd have to take the module off each time I wanted to upload a sketch so for my application the SoftwareSerial library is the way to go so my routine:
if (Serial.available()) softSerial.write(Serial.read()); // send from Arduino to Bluetooth
while(softSerial.available() > 0) { // While there is more to be read, keep reading.
command += (char)softSerial.read();
delay(1);
}
is the same as yours, I find at the moment that a delay of 1 does the job nicely.
I don't want to have to use delimiters but appreciate the advice.
Thanks!