ESP32 Serial1 and Serial2


Hello everyone,

I am working with the ESP32 for quite some time and recently I have started using the Zerynth Studio. I am trying hard to find the example for the UART communication which goes through the serial1 and serial2 but with no luck. Can you please provide me with the snippet of a code which will lead me to a successful UART example?

Thanks in advance


hi @thebremar

Please have a look at the The Serial class documentation.
during initialization of streams.Serial() you can specify SERIAL0, SERIAL1, and use it as you like.
let me know if you need more help!


Hi @karimhamdy1,

This was very helpful, my example is working now! Thank you very much.