Can anyone help me with the following:
GNSS stand alone and the Hologram SIM will not start and I just get a display of "Waiting for GPS"?
This is the code im running:
Code: Select all
void processGPSData()
{
// issue the command to get parsed GPS data
if (checkState(STATE_GPS_FOUND) && sys.gpsGetData(&gd) ) {
logLocationData(gd);
}
}
void waitGPS()
{
int elapsed = 0;
for (uint32_t t = millis(); millis() - t < 300000;) {
int t1 = (millis() - t) / 1000;
if (t1 != elapsed) {
Serial.print("Waiting for GPS (");
Serial.print(elapsed);
Serial.println(")");
elapsed = t1;
}
// read parsed GPS data
if (sys.gpsGetData(&gd) && gd->sat != 0 && gd->sat != 255) {
Serial.print("Sats:");
Serial.println(gd->sat);
break;
}
}
}