I am looking for a method regarding the problem ......
These are my SMS
Say I need to send them in 1 call like
1.My buffer is 17 since that max message length is 17 char. Correct ?
2.If I wanna send three SMS , I have to repeat the sending code. If I do that I will use up ram, right ?
3. Say I need to send any one of the 3 sms from time to time. What can I do to use the same function above to send any message using a buffer or something to copy the SMS to the buffer and send it like below
How could I copy the "const char SMS" to a buffer and use it ?
I am looking for a method that will us the above method with minimum memory
These are my SMS
C:
const char SMS1[] = "13546645";
const char SMS2[] = "fghfghfjn";
const char SMS3[] = "01234567890ABCDEF";
char Temp[17];
C:
UART1_Write_Text(Const2Ram(Temp, SMS1));//
Delay_ms(500);
UART1_Write(0x1A);// Cntrl+Z
2.If I wanna send three SMS , I have to repeat the sending code. If I do that I will use up ram, right ?
3. Say I need to send any one of the 3 sms from time to time. What can I do to use the same function above to send any message using a buffer or something to copy the SMS to the buffer and send it like below
C:
UART1_Write_Text(Const2Ram(Temp, Buffer));
I am looking for a method that will us the above method with minimum memory