Hi Guys,
I've composed this sketch to send the command AT+CSQ but when I open my serial monitor to see the output this is what I get(Please see attached)
See below my sketch
#include "SIM900.h"
#include <SoftwareSerial.h>
int numdata;
String inSerial;
int i=0;
void setup() {
Serial.begin(9600);
Serial.println("Serial Data Begin at 9600 baud");
if(gsm.begin(4800))
{
Serial.println("Sim 900 is online");
}
else
{
Serial.println("ERROR: Sim 900 not responding");
}
}
void ATcode()
{
gsm.SimpleWriteln("AT+CSQ\r");
delay(50);
gsm.SimpleRead();
i=0;
while(Serial.available() > 0){
inSerial[i] = Serial.read();
delay(10);
i++;
}
}
void loop() {
ATcode();
}
What am I doing wrong? ![]()
