SyedFahad
Junior Member level 1
This is the part of sending sms code , help me in correcting this. Thanks
Code:
UART1_Init(9600); // Initialize UART module at 9600 bps
Delay_ms(100);
UART1_Write(2);
UART1_Write(13);
UART1_Write_Text("AT+CMGS=");
Delay_ms(1000);
UART1_Write(0x22); // double qoute
Delay_ms(2000);
UART1_Write_Text("9800220107"); // Telephone Number
cd_chr_cp(uart_rd);
UART1_Write(0x22); // double qoute
UART1_Write(0x0D); // mean Enter
UART1_Write(0x22);
UART1_Write_Text("Wasti"); //My Text Test
UART1_Write(0x22); // double qoute
Delay_ms(2000);
UART1_Write(26); //Ctr +Z
Delay_ms(2000);
UART1_Write(0x0D); // mean Enter
Delay_ms(2000);
Last edited by a moderator: