Created
January 17, 2017 09:26
-
-
Save dkrkamesh/3726f9faf7f6475a638af2447272e939 to your computer and use it in GitHub Desktop.
GSM module: Code for Calling using Serial communication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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