int i;
char incomingByte;
boolean skip;
void setup() {
Serial.begin(4800);
}
void loop() {
// start: gps
if(Serial.available()) {
incomingByte = Serial.read();
if(incomingByte==36) {
i=0;
skip=false;
}
if(incomingByte==86) {
skip=true;
}
if((!skip)&&(i>6)) {
Serial.print(incomingByte);
}
i++;
}
// end: gps
}
===== PHP - receive =====
HAVE-1 Live Tracker
Telemetry
\nAltitude: $alt km \nSatellites: $sats \nCoordinates: $lat, $lon \nTime: $time UTC \n\n";
}
?>