Hi, i am working on a project in which i use a L80-R GPS module and an esp32 development board.
The problem is that in the serial monitor instead of strings with the data from the gps module i receive only some digits as seen in the image.
Can anyone help me please with a solution?
void setup() {
Serial.print("SETUP");
Serial.begin(9600); // connect serial
Serial2.begin(9600);
Serial.println("SETUP");
}
void loop() {
if (!Serial2.available()) {
Serial.println("No GPS data");
} else {
Serial.println("GPS data: ");
}
while (Serial2.available()) {
Serial.print(Serial2.read());
}
Serial.println();
delay(2000);
}
See the post 'How to get the best out of this forum (short version)' at the top of the forum for details on haow to post code so its easy to read.
Load the code below and post the results.
void loop()
{
while (Serial2.available())
{
Serial.write(Serial2.read());
}
}
void setup()
{
Serial2.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("GPS_Echo_Hardware_Serial Starting");
}
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.