#include String S; gpsSentenceInfoStruct gps; //object of info class void setup() { Serial.begin(115200); LGPS.powerOn(); //initialize the GPS module delay(3000); } void loop() { LGPS.getData(&gps); S=""; S+=(char*)gps.GPGGA; //class contains member GPGGA of datatype character array Serial.print(S); delay(1000);//just here to slow down the serial output - Easier to read }