 bool success_connect = false; // whether it is connected
 int inPin = 10;   // pushbutton connected to digital pin 7
 int val = LOW;     // variable to store the read value
+int buttonState = LOW;
+int lastButtonState = LOW;
+long lastDebounceTime = 0;
+long debounceDelay = 50;
 
 void setup() {
   // Start Serial for print-out and wait until it's ready

  while (!Serial);

  //
   Serial.println("Try to connect to AWS IoT ...\n");
  pinMode(inPin, INPUT);
  digitalWrite(inPin, LOW);
  char curr_version[80];
  snprintf_P(curr_version, 80, PSTR("AWS IoT SDK Version(dev) %d.%d.%d-%s\n"), VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_TAG);
  Serial.println(curr_version);
  
  // Set up the client
  if ((rc = myClient.setup("decap")) == 0) {
    // Load user configuration

      Serial.println("Yield failed!");
      Serial.println(rc);
    }
  }
}
