1Once the wiring is completed, you can start programming.
2
3
4How to work with AT commands.?
5
6
7#include <SoftwareSerial.h>
8
9SoftwareSerial A6MODULE(2,3);
10
11void setup() {
12
13 Serial.begin(9600);
14delay(1000);
15 A6MODULE.begin(9600);
16delay(1000);
17}
18
19void loop() {
20
21 while(A6MODULE.available()){
22 Serial.write(A6MODULE.read());
23 }
24
25
26 while(Serial.available()){
27 A6MODULE.write(Serial.read());
28 }
29
30}
31
32After Uploading codes, run the serial monitor.
33
34Now type AT and press enter. If all the things are in order, Serial monitor will say “OK”
35
36HOW TO CALL?
37ATD command is used for dial a phone call.
38
39Eg: Type ATD+123456789 then enter (your phone number)
40
41 HOW TO SEND SMS?
42Type AT+CMGF = 1 then enter “ Answer should be OK”
43
44Then Type AT+CMGS = “+123456786” then enter (your phone number)
45