@PaulS Its just a sample code that i quickly wrote so that i can copy paste the error I got.
Is this method available in the current development version of arduino.
I am kinda curious why is serialEvent mentioned in the reference when its actually not in the code ?