Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A8S]--#10-KC868-A8S_GSM_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]--#10-KC868-A8S_GSM_code (/showthread.php?tid=1959)



[Arduino IDE demo source code for KC868-A8S]--#10-KC868-A8S_GSM_code - KinCony Support - 06-01-2022

[Arduino IDE demo source code for KC868-A8S]--#10-KC868-A8S_GSM_code

Code:
/*KC868-A8S GSM_CODE*/
/*The gsm module is SIM7600*/
/*Send the AT command*/

void setup() {
  Serial.begin(115200);
  Serial1.begin(115200);
}

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

.zip   sim7600-AT-debug.zip (Size: 542 bytes / Downloads: 285)