Hello all,
i got adafruit GPS breakout board that i need to program with out a library!
i can receive data from it with no problems.
but how can i send commands to it so i can control things like baud rate, NMEA type and other!
here is my code:
#include <SoftwareSerial.h>
SoftwareSerial GPSModule(8, 7);
SoftwareSerial HC12(10, 11);
bool x = 0;
String GPRMC_Rcvd = "";
void setup()
{
HC12.begin(9600);
GPSModule.begin(9600);
GPSModule.print("$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"); //this command to tell the chip to send only RMC NMEA senetence
HC12.println("");
HC12.println("START");
delay(2000);
}
void loop()
{
while (GPSModule.available() > 0) // if While here affect IR Recieveing proccess find a way to use IF
{
GPSModule.read();
x = 1;
}
if(x == 1)
{
GPRMC_Rcvd = GPSModule.readStringUntil('\n');
HC12.println(GPRMC_Rcvd);
x = 0;
}
}