 unsigned long idle_reporting_interval = 600000;   	//  When idle, report data every 10 minutes
 unsigned long console_reporting_interval = 5000;  	//  Report to USB console every 5 seconds  
 unsigned long console_interval = 250;             	//  Check console for input every 250 milliseconds
-unsigned long gprs_or_wifi_watchdog_interval = 90000;  	//  Reboot the GPRS module after 90 seconds of no progress
+unsigned long gprs_or_wifi_watchdog_interval = 120000;  //  Reboot the GPRS/wifi module after 2 minutes of no connection
 unsigned long wifi_scan_interval = 30000;         	//  How often to look for wifi networks
 unsigned long wifi_read_interval = 8000;           	//  Do wifi i/o communications every 8 seconds
 unsigned long led_update_interval = 200;          	//  Update the LED's every 200 miliseconds
 unsigned long nmea_update_interval = 100;         	//  Update NMEA in serial line every 1/10 of a second
+unsigned long hardware_watchdog_interval = 120000; 	//  Do a hardware reset if we don't pat the dog every 2 minutes
 boolean green_led_state = false;         	  	//  For cycling on and off  
-unsigned long hardware_watchdog_interval = 120000; 	//  Do a hardware reset if we don't pat the dog every 2 minutes
   
 unsigned long sensor_previous_timestamp = 0;
 unsigned long gps_previous_timestamp = 0;

}



void wifi_read()
{

  if(!cc3000.checkDHCP())
  {
    #ifdef WIFI_DEBUG_ON
    debug_info(F("wifi no IP yet"));
    #endif
    return;
  }
