Thank you very much pylon.
Using Serial.Write did print the reading that I have found online.
#include <TinyGPS.h>
TinyGPS gps;
float Latitud;
float Longitud;
void setup(){
Serial.begin(9600);
Serial3.begin(4800); //Velocidad de transmisión del GPS EM406
Serial3.flush();
delay(500);
}
void loop(){
while(Serial3.available()){
Serial.write(Serial3.read());
int c = Serial3.read();
if(gps.encode(c)){
Serial.println("encode");
gps.f_get_position(&Latitud, &Longitud);
Serial.println(Latitud,5);
Serial.print(Longitud,5);
}
}
}
Here you can see the library usage, I almost have a copy - paste in there. and the encode function is still not working.
http://arduiniana.org/libraries/tinygps/
I am attaching the readings, but now after "writing" them, instead of "printing" them.
I am also trying to print the word "encode" to see if the program goes into the "if", but it doesn't
