Created
October 22, 2019 20:54
-
-
Save d-boz-wtwh/e6da343fdbf9340c38730da62680055d to your computer and use it in GitHub Desktop.
Microcontroller Projects
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
/************************************************* | |
* Date:11 june 2018 | |
* Written by: Usman Ali Butt | |
* Property off: www.microcontroller-project.com | |
* **********************************************/ | |
void setup() | |
{ | |
//Begin nodemcu serial-0 channel | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
Serial.print("AT"); //Start Configuring GSM Module | |
delay(1000); //One second delay | |
Serial.println(); | |
Serial.println("AT+CMGF=1"); // Set GSM in text mode | |
delay(1000); // One second delay | |
Serial.println(); | |
Serial.print("AT+CMGS="); // Enter the receiver number | |
Serial.print("\"+923345026062\""); | |
Serial.println(); | |
delay(1000); | |
Serial.print("www.microcontroller-project.com"); // SMS body - Sms Text | |
delay(1000); | |
Serial.println(); | |
Serial.write(26); //CTRL+Z Command to send text and end session | |
while(1); //Just send the text ones and halt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment