Description
Called when data is available. Use Serial.read()
to capture this data.
Syntax
void serialEvent() {
//statements
}
For boards with additional serial ports (see the list of available serial ports for each board on the Serial main page):
void serialEvent1() {
//statements
}
void serialEvent2() {
//statements
}
void serialEvent3() {
//statements
}
Parameters
statements
: any valid statements
Returns
Nothing