 */
 const char password[] = "arduino";
 
+String response;
+int state = OPEN;
 
 
 const int buttonPin = 12;

    String command = client.readString();
    command.trim();
    if (command == "status"){
      client.print(locked);
    }
    else if (command == "lock") {
      locked = lock(CLOSE);
      client.print(locked);
    }
    else if (command == password) {
      locked = lock(OPEN);
      client.print(locked);
    }
    else{ // Error
      client.print("2");
    }
    client.stop();
  }

  if (digitalRead(buttonPin)) {
      /*

const int swA1 = 4;
const int swA2 = 8;


int lock(int state){
      digitalWrite(boardLed, HIGH);
