hi,
i have simple question.
There is a program:
#include <SoftwareSerial.h>
SoftwareSerial serialSIM800(8,7);
void setup() {
Serial.begin(9600);
while(!Serial);
serialSIM800.begin(9600);
Serial.println("start");
}
void loop() {
if(serialSIM800.available()){
Serial.write(serialSIM800.read());
}
if(Serial.available()){
serialSIM800.write(Serial.read());
}
}
and results on the serial monitor:
start
AT // repeated command entered in serial monitor
OK
AT+CSQ // repeated my command
+CSQ: 12,0
OK
AT;anything // repeated my command
ERROR
My question is: why commented commands are repeated?