Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A8S]--#11-KC868-A8S_AT-debug_code - 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-A8S (https://www.kincony.com/forum/forumdisplay.php?fid=24)
+--- Thread: [Arduino IDE demo source code for KC868-A8S]--#11-KC868-A8S_AT-debug_code (/showthread.php?tid=2006)



[Arduino IDE demo source code for KC868-A8S]--#11-KC868-A8S_AT-debug_code - KinCony Support - 06-30-2022

[Arduino IDE demo source code for KC868-A8S]--#11-KC868-A8S_AT-debug_code

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());
  }
}



RE: [Arduino IDE demo source code for KC868-A8S]--#11-KC868-A8S_AT-debug_code - admin - 09-13-2022

before use code , need config hardware serial port in "HardwareSerial.cpp"