C:\Users\Dev\Desktop\first_program\sketch_jan26a\sketch_jan26a.ino:1:10: fatal error: GPS.h: No such file or directory #include <SoftwareSerial.h>
^~~~~~~
compilation terminated.
exit status 1
Compilation error: GPS.h: No such file or directory
Your error message is confusing. It says it can not find GPS.h, but the line highlighted is for the SoftwareSerial library which you don't have in the sketch you posted.
The SoftwareSerial library is installed automatically with the IDE and @webydev looks like he/she is compiling for a Uno so the library should be available
I am suspicious, however, that the sketch is not in the sketchbook folder
#include <SoftwareSerial.h>
#define rxPin 8
#define txPin 9
SoftwareSerial gpsSerial(rxPin,txPin);
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
//Begin serial communication with Arduino and SIM800L
gpsSerial.begin(9600);
Serial.println("Initializing...");
delay(1000);
}
void loop()
{
while (gpsSerial.available() > 0)
Serial.write(gpsSerial.read());
}
#include <SoftwareSerial.h>
#define rxPin 8
#define txPin 9
SoftwareSerial gpsSerial(rxPin,txPin);
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(115200);
//Begin serial communication with Arduino and SIM800L
gpsSerial.begin(9600);
Serial.println("Initializing...");
delay(1000);
}
void loop()
{
while (gpsSerial.available() > 0)
Serial.write(gpsSerial.read());
}
This is my code i have started a serial monitor on baud rate 115200 and i am receiving data as shown above