Smart Home Automation Forum

Full Version: [Arduino IDE demo source code for KC868-A8S]--#10-KC868-A8S_GSM_code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[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());
  }
}
[attachment=1055]