Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:42:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
};
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:42:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino: In function 'void setup()':
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:72:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
initModule("AT", "OK", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:73:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
initModule("ATE1", "OK", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:74:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
initModule("AT+CPIN?", "READY", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:75:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
initModule("AT+CMGF=1", "OK", 1000);
^
C:\Users\Bhupesh\Documents\Arduino\Program\Program.ino:76:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
initModule("AT+CNMI=2,2,0,0,0", "OK", 1000);
^
Sketch uses 19638 bytes (60%) of program storage space. Maximum is 32256 bytes.
Global variables use 1924 bytes (93%) of dynamic memory, leaving 124 bytes for local variables. Maximum is 2048 bytes.
Error :
An error occurred while uploading the sketch
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Kindly Please Help