Smart Home Automation Forum

Full Version: [Arduino code for KC868-A32 Pro]-04 dubug 4G module AT command using serial port
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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());
  }
}
[attachment=5050]