 // Hardware serial is also possible!
 //  HardwareSerial *fonaSerial = &Serial1;
 
-// Use this for FONA 800 and 808s
 Adafruit_FONA fona = Adafruit_FONA(PIN_FONA_RST);
-// Use this one for FONA 3G
-//Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST);
-
-//uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout = 0);
-
-uint8_t type;
-
+
+//uint8_t type;
+
+#define HALT()    while(1);
 void setup()
 {
     while (!Serial)

    //fona.setGPRSNetworkSettings(F("your APN"), F("your username"), F("your password"));
    fona.setGPRSNetworkSettings(F(APN));

    // Optionally configure HTTP gets to follow redirects over SSL.
    // Default is not to follow SSL redirects, however if you uncomment
    // the following line then redirects over SSL will be followed.
    //fona.setHTTPSRedirect(true);

    //printMenu();

    delay(1000);

    Serial.print(F("RSSI = "));
    Serial.println(fona.getRSSI());

    // enable network time sync
//	if (!fona.enableNetworkTimeSync(true))


void loop()
{
    while(!mpuInterrupt)
    {
        delay(1000);
    }
    
    motion=0;
    if (mpuInterrupt)
    {
