Gobetwino Help Needed!

PaulS:
I'm interested in the readSerialString() function. You pass it a global char array, which you treat as a local variable. Yet, the size of that array is a global variable. Interesting choice of programming styles.

That portion of the code was directly stolen from the sample code that came with Gobetwino. I had a simple delay in place and after some troubles, I just copied and pasted a chunk of code from the samples.

EDIT: I actually removed that portion of code as I am realizing it's rather insignificant. I went back and just put delays.

int select;
const int buttonPin = 2;     // the number of the pushbutton pin
const int ledPin =  13;      // the number of the LED pin

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);      
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin, INPUT);     

  Serial.begin(9600);

}


void loop(){
  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {     
    // turn LED on:    
    digitalWrite(ledPin, LOW);  
         Serial.println ("DOOR CLOSED");
    
  } 
  else {
    // turn LED off:
  digitalWrite(ledPin,HIGH);
  
   Serial.print("#S|TIMELOG|[");
   Serial.println("]#");
   delay (1000);
 
 Serial.println("#S|WEBCAM|[]#");        // start Webcam software
  delay (5000);  // wait  5  seconds (max) for answer from Gobetwino (=porcess ID)
  
  Serial.println("#S|SENDK|[0&{HOME}]#");
 delay(5000);  // wait  5  seconds (max) for answer from Gobetwino (=porcess ID)
  
  }

}