AT commands

Status
Not open for further replies.

mos

New Member
Im trying to communicate PIC16F877A with a GSM modem using C progrmming language. But mi programme keeps giving me errors when i built it.
Can anyone help to correct erros.
#include <htc.h>
__CONFIG(XT & WDTDIS & PWRTDIS & BORDIS & LVPEN & WRTEN &
DEBUGEN & DUNPROT & UNPROTECT);
void init(void)
{
TRISA = 1b00000000;
}

void main(void)
{

int();
AT+IPR = 4800;
AT+CMGF = 1;
while (1) {
AT+CMGS = <67081594><somebody is coming><ctrl-z>
}


}
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…