 //DEBUG
 //#include <MemoryFree.h>
+#include<string.h>
 #include <Wire.h> //I2C needed for sensors
 //https://github.com/sparkfun/SparkFun_MPL3115A2_Breakout_Arduino_Library
 #include "MPL3115A2.h" //Pressure sensor

  }
}

void getgps(void)
{
  String gpsdata = "";
  String gpsdatatmp = "";
  //GPS baud rate is 9600 for coms
  switchGPSonoff( "AT+UART=9600,8,1,0,0", 1000, DEBUG);
  switchGPSonoff( "AT+CGNSPWR=1", 1000, DEBUG);
  switchGPSonoff( "AT+CGNSSEQ=RMC", 1000, DEBUG);
  do
  {
    gpsdata.concat(sendData( "AT+CGNSINF", 1000, DEBUG));
    delay(1000);
    gpsdatatmp.concat(gpsdata);
    Serial.println(gpsdata);
    //get YEAR
    gpsdatatmp.remove(31);
    gpsdatatmp.remove(0, 27);

  printWeather();
  //Wait 1 second, and gather GPS data
  delay(1000);
  getgps(false);
  //REPORTING
  //Check for a new hour passing
  //Serial.print(hourReport);
