Ok....
char[0] ='A'
char[1] ='T'
char[2] ='+'
char[3] ='C'
char[4] ='M'
char[5] ='G'
char[6] ='S'
char[7] ='='
char[8] ='"'
char[9] =''"'
char[10] ='+'
char[11] ='8'
char[12] ='1'
char[13] ='8'
char[14] ='9'
char[15] ='3'
char[16] ='3'
char[17] ='0'
char[18] ='2'
char[19] ='2'
char[20] ='2'
char[21] ='\r'
These character will always be fixed for every time...
They need not to be changed any time.
Now comes into picture the actual message that is to be sent to GSM
Lets consider Stop012
As per you have explained above ...
Ques1) Does it means that we will be dealing with the 0 in Stop012 just like above..??
Ques2) if we are sending values like...
char[0] ='S'
char[1] ='T'
char[2] ='O'
char[3] ='P'
char[4] ='0'
char[5] ='1'
char[6] ='2'
This means we are alloting memory to each and every element of array....
So we will also have to unset these values so as to avoid overrunning such a small memory...so which part of code unsets the elements of array after sending to GSM.
char[0] ='A'
char[1] ='T'
char[2] ='+'
char[3] ='C'
char[4] ='M'
char[5] ='G'
char[6] ='S'
char[7] ='='
char[8] ='"'
char[9] =''"'
char[10] ='+'
char[11] ='8'
char[12] ='1'
char[13] ='8'
char[14] ='9'
char[15] ='3'
char[16] ='3'
char[17] ='0'
char[18] ='2'
char[19] ='2'
char[20] ='2'
char[21] ='\r'
These character will always be fixed for every time...
They need not to be changed any time.
Now comes into picture the actual message that is to be sent to GSM
Lets consider Stop012
As per you have explained above ...
Ques1) Does it means that we will be dealing with the 0 in Stop012 just like above..??
Ques2) if we are sending values like...
char[0] ='S'
char[1] ='T'
char[2] ='O'
char[3] ='P'
char[4] ='0'
char[5] ='1'
char[6] ='2'
This means we are alloting memory to each and every element of array....
So we will also have to unset these values so as to avoid overrunning such a small memory...so which part of code unsets the elements of array after sending to GSM.