Hello, so small addendum.
There are apparently ESP32 modules that are a bit different and still need an adjustment.
I now had a connection problem with my new esp modules with the Serial2 UART again.
But that seems to be normal for some.
So if you have problems with the Uart 2 you should add the following:
Serial2.begin(115200, SERIAL_8N1, 16, 17);
in lieu of
Serial2.begin(115200);
Then it should work. Well, learned something again...
Hallo , so kleiner Nachtrag.
Es gibt anscheinend doch esp32 module die etwas anders sind und noch eine anpassung benötigen.
Ich hatte jetzt bei meinen neuen Esp Modulen wieder ein Verbindungsproblem mit dem Serial2 Uart.
Das scheint aber Normal zu sein bei einigen. Also falls mann probleme mit dem UART 2 hatt sollte mann noch folgendes hinzufügen:
Serial2.begin(115200, SERIAL_8N1, 16, 17);
anstelle von
Serial2.begin(115200);
dann sollte es funktionieren. Naja wieder was gelernt...