I just connected an A6 GSM module and wrote a code to interact with it through the serial monitor connecting at 9600 baud rate. but the character "?" just keeps coming nonstop and nothing else works.
Here is my code:
#include<SoftwareSerial.h>
SoftwareSerial gprs(8, 9);
void setup(){
gprs.begin(9600);
Serial.begin(9600);
}
void loop(){
while (gprs.available())
Serial.write(gprs.read());
while (Serial.available())
gprs.write(Serial.read());
}