This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Requesting rectification of source code

The following source code was meant for sending message from a gsm module. But I'm not getting how to send it to a particular directory number. It's as follows:

#include<mega16.h>
#include<delay.h>
#include"lib/sim300/sim300.h" void send message(char msg[],char num[]);
{ int i=0,j=0; puts("AT+CMGF="); putchar(49); //sends the ASCII value of '1'// puts("AT+CMGS="); putchar("\");
while(num[i]!='\0')
{ j=(int)num[i]; putchar(j); //sends the ASCII values of directory number 0123456789// i++;
} puts("Hello there"); putchar('26'); //sends the ASCII value of <CTRL>+<Z>
}