Smart Home Automation Forum
[Arduino source code for MB]-02 debug 4G module AT command - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-M16 / M1 / MB / M30 (https://www.kincony.com/forum/forumdisplay.php?fid=50)
+--- Thread: [Arduino source code for MB]-02 debug 4G module AT command (/showthread.php?tid=3977)



[Arduino source code for MB]-02 debug 4G module AT command - admin - 12-21-2023

   
[Image: attachment.php?aid=1056]
Code:
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200);
}

void loop() {
  while (Serial.available()) {
    //  delay(1);
      Serial2.write(Serial.read());
  }
  while (Serial2.available()) {
       Serial.write(Serial2.read());
  }
}