Read serial using ESP8266

Hi ,

I need to read serial using ESP8266 as well. My controller LQR (Arduino Mega) is running 6 ms (loop period). So I wanna read serial as fast as possible.

I'm testing read serial with Arduino Mega:

1º Test
while(Serial.available() ) => 1200 us

2º Test
SerialEvent => 400 us

pedropjk:
Hi ,

I need to read serial using ESP8266 as well. My controller LQR (Arduino Mega) is running 6 ms (loop period). So I wanna read serial as fast as possible.

I'm testing read serial with Arduino Mega:

1º Test
while(Serial.available() ) => 1200 us

2º Test
SerialEvent => 400 us

Will you please, explain in plain language the meanings of the following extracted from the above quote?

  1. MEGA is running 6 ms (loop period);
  2. while(Serial.available() ) => 1200 us;
  3. SerialEvent => 400 us;