Could you help me provide a solution, or tell me if the device really doesn't work, I have problems communicating it to Serial2.begin(), I am communicating it with LoRa, I recently tried the ESP32 DevKit V1 and it worked wonderfully but with this model I don't know what to do, thank you.
I would start by looking at everything different that you did between the two boards. Normally code that works on the generic Dev Kit will also work on the WROOM. You must have changed something, but since we can't see your code or wiring (see the pinned post re 'How to et the most from the forum' for guidance in how to do that)
#define RXD2 16 // Pin RX LoRa
#define TXD2 17 // Pin TX LoRa
void setup() {
Serial.begin(115200); // Monitor Serial para depuración
Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2); // UART2 para LoRa
Serial.println("Prueba de comandos AT para LoRa RYLR998 con ESP32-WROOM-32U");
delay(1000);
}
void loop() {
if (Serial.available()) {
String cmd = Serial.readStringUntil('\n'); // Lee el comando desde el Monitor Serial
Serial2.println(cmd); // Envia el comando al módulo LoRa
Serial.print("Enviado: ");
Serial.println(cmd);
}
if (Serial2.available()) {
String response = Serial2.readString(); // Lee la respuesta del módulo LoRa
Serial.print("Respuesta LoRa: ");
Serial.println(response);
}
}
**texto en negrita**
This is the code I am using, I use a RYLR998 with an ESP32U...
Every time I connect the RYLR998 to the board, the same thing happens: these errors start:
I already made it work, I confirm the ESP WROOM 32U, I don't know why it doesn't support Serial2.begin, it doesn't configure it, it doesn't do anything.
Could someone help me by giving an answer as to why it doesn't do it?
I put it in receiver mode and it is doing very well, but it doesn't work as a transmitter.