Closed
Description
Board
ESP32
Device Description
DevKitC
Hardware Configuration
#define RXD2 16
#define TXD2 17
Version
v2.0.4
IDE Name
Arduino IDE
Operating System
win10
Flash frequency
80
PSRAM enabled
yes
Upload speed
115200
Description
Serial2.onReceive() not work.
//Serial2.begin(baud-rate, protocol, RX pin, TX pin);
Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
Serial2.onReceive(Serial2_callback);
void Serial2_callback() {
Serial.printf(".");
}
Sketch
Serial2.onReceive() not work.
//Serial2.begin(baud-rate, protocol, RX pin, TX pin);
Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
Serial2.onReceive(Serial2_callback);
void Serial2_callback() {
Serial.printf(".");
}
Debug Message
Serial2.onReceive() not work.
//Serial2.begin(baud-rate, protocol, RX pin, TX pin);
Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
Serial2.onReceive(Serial2_callback);
void Serial2_callback() {
Serial.printf(".");
}
Other Steps to Reproduce
Serial2.onReceive() not work.
//Serial2.begin(baud-rate, protocol, RX pin, TX pin);
Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
Serial2.onReceive(Serial2_callback);
void Serial2_callback() {
Serial.printf(".");
}
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Type
Projects
Status
Done