void getRadio(){ if (rf95.available()) buf[RH_RF95_MAX_MESSAGE_LEN]; byte len = sizeof(buf); if (rf95.recv(buff, &len)) { Serial.print((char*)buff);}
for (byte i=0; i<len ; i++) tinyGps : eat some buff[i];
void loop(){ if (rf95.available()) buf[RH_RF95_MAX_MESSAGE_LEN]; byte len = sizeof(buf); if (rf95.recv(buff, &len)) { Serial.println((char*)buff); //send to COM port 4800 baud for (int i = 0; i < len ; i++) { buff[i]; if (gps.encode(buff[i])) // <--- now pass it to TinyGPS { index = 0; if (gps.location.isValid()) { Serial1.print(F("Location: ")); //send to COM port 19200 baud Serial1.print(gps.location.lat(), 6); Serial1.print(F(", ")); Serial1.print(gps.location.lng(), 6); Serial1.print(F(", ")); Serial1.print(gps.altitude.feet(), 1); Serial1.println(F(" Ft.")); }
buff[i];
Sorry, still don't get it from that post Felix. The statement seems to do nothing at all, there's no assignment or anything. Unless C++ interprets that as something special, I'm sure it would be a syntax error in C.Mark.
tinyGps : eat some buff[i];