Hello guys!
Wanted to ask you why are some random characters printed out when I send AT command via serial using this code.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(8,9); // RX, TX
void setup()
{
Serial.begin(9600);
mySerial.begin(9600);
}
void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
{
while(Serial.available())
{
mySerial.write(Serial.read());
}
mySerial.println();
}
}
and this is the response after the module is up and running and I write simply AT to the monitor
What could be the issue? I got similar problems on my other project when I was sending AT commands through code.