     if(wifi_read_buffer.indexOf("$FHR$ OK") > -1)
     {
       gprs_or_wifi_watchdog_counter = 0;
+      current_timestamp = millis();
       gprs_or_wifi_watchdog_timestamp = current_timestamp;
       pop_off_message_queue();
       if(latest_message_to_send.length() > 0)

  cc3000.stopSSIDscan();

  #ifdef WIFI_DEBUG_ON
  debug_info(F("=== Wifi scan end ==="));
  #endif



    //if(cc3000.connectToAP(temp_string_a, temp_string_a, WLAN_SEC_UNSEC))
    {
      #ifdef WIFI_DEBUG_ON
      debug_info("wifi open connect: " + open_network_name);
      #endif
      //set_wireless_timeouts();
    }
    else
    {
