_:n8014546ad1664f1293311c7987ba0b01xb1
<http://schema.org/text>
"I am using the following (Erel Tutorial) to access the second hardware serial on an ESP 32\nIt will not compile\nIn Arduino you have to define a hardware serial as\n\nHardwareSerial Serial2(2);  // Second Hardware Port\n\nIs there something else that needs to be done in this snippet\n\n#if C\nvoid SerialNative2(B4R::Object* unused) {\n ::Serial2.begin(115200); //<--You can change the baud rate\n b4r_main::_serialnative1->wrappedStream = &::Serial2;\n}\n#end if"
<https://www.b4x.com/android/forum/threads/hardware-serial-on-esp32.97318/>