Datasheet
5
Serial.write(buffer,count); // if no data
transmission ends, write buffer to hardware serial port
clearBufferArray(); // call clearBufferArray
function to clear the stored data from the array
count = 0; // set counter of while loop
to zero
}
if (Serial.available()) // if data is available on
hardware serial port ==> data is coming from PC or notebook
SoftSerial.write(Serial.read()); // write it to the SoftSerial
shield
}
void clearBufferArray() // function to clear buffer
array
{
for (int i=0; i<count;i++)
{ buffer[i]=NULL;} // clear all index of array with
command NULL
}
Install u-center. Upload the code below to your Arduino/Seeeduino and then open u-center.
1) Click Receiver -> Port and select the COM port that the Arduino is using.
2) Click Receiver -> Baudrate and make sure 9600 is selected.
3) Click View -> Text Console and you should get a window that will stream NMEA data.
4) Open the serial monitor, you can see as show below: