我的 Arduino mega board 和 SIM800L 模块有问题,我连接到模块的 RX 和 TX 引脚,当我进入串行监视器时,它返回这些字符,可能是什么?
void setup() {
Serial.begin(9600);
//Begin serial communication with Arduino and SIM800L
Serial1.begin(9600);
}
void loop() {
delay(500);
while (Serial.available()) {
Serial1.write(Serial.read()); //Forward what Serial received to Software Serial Port
}
while(Serial1.available()) {
Serial.write(Serial1.read()); //Forward what Software Serial received to Serial Port
}
}