#include <SoftwareSerial.h>
SoftwareSerial SIM800L(10, 11); // RX | TX
// Connect the SIM800L TX to Arduino pin 10 RX.
// Connect the SIM800L RX to Arduino pin 11 TX.
char c = ' ';
void setup()
{
// start th serial communication with the host computer
Serial.begin(9600);
while(!Serial);
Serial.println("Arduino with SIM800L is ready");
// start communication with the SIM800L in 9600
SIM800L.begin(9600);
Serial.println("SIM800L started at 9600");
delay(1000);
Serial.println("Setup Complete! SIM800L is Ready!");
Serial.println("Set format SMS ke ASCII");
SIM800L.write("AT+CMGF=1\r\n");
delay(1000);
Serial.println("SIM800L Set SMS ke Nomor Tujuan");
SIM800L.write("AT+CMGS=\"08977143153\"\r\n");
delay(1000);
Serial.println("SIM800L Send SMS content");
SIM800L.write("Testing Kirim SMS via SIM800L");
delay(1000);
Serial.println("Mengirim Char Ctrl+Z / ESC untuk keluar dari menu SMS");
SIM800L.write((char)26);
delay(1000);
Serial.println("SMS Selesai Dikirim!");
}
void loop()
{
// Keep reading from SIM800 and send to Arduino Serial Monitor
if (SIM800L.available())
{ c = SIM800L.read();
Serial.write(c);}
// Keep reading from Arduino Serial Monitor and send to SIM800L
if (Serial.available())
{ c = Serial.read();
SIM800L.write(c);
}
}
Pi Coin
Pi Coin adalah cryptocurrency yang dikembangkan oleh tim di Stanford University. Berikut adalah penjelasan spesifik tentang Pi Coin: ### 1. ...
-
PLS BE INFORMED IMMEDIATELY! A virus is on a rampage in Messengers. The virus name is WORM_SOHAND.I. It shows itself as an innocent IM with ...
-
NT Authority\System Error Message: "This system is shutting down. Windows must now restart because the Remote Procedure Call (RPC) ser...
-
How Does the Welchia Worm Infect My Computer? Copies itself to the Wins directory in the System or System32 folder in Windows usually C:...