Skip to content

Instantly share code, notes, and snippets.

@dkrkamesh
Created January 17, 2017 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkrkamesh/3726f9faf7f6475a638af2447272e939 to your computer and use it in GitHub Desktop.
Save dkrkamesh/3726f9faf7f6475a638af2447272e939 to your computer and use it in GitHub Desktop.
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