       }
     }
   }else{
+    errorCount++;
     Serial.println(F("Error Communicating with Exosite"));
   }
   

  Serial.print(F("Connecting to Exosite..."));

  if(exosite.writeRead(writeString, readString, returnString)){
    Serial.println(F("Success"));
    for(;;){
      index = returnString.indexOf("=", lastIndex+1);

//*****************************************************************************
//
// relayduino.ino - Controlling the Relayduino from the Cloud with Exosite
//                  Now updated to use provisioning.
//
// Copyright (c) 2012 Exosite LLC.  All rights reserved.
// 
