Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GSM module: Code for Calling using Serial communication
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
delay(10000);
// print the serial data to GSM
Serial.print("ATD9020XXXXXX;" ); // Change the phone number in code before running the program. change here to call a number using SIM900A
// wait 10 seconds before the next loop
delay(10000);
Serial.print("ATH" ); // hold the call
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.