Hello,I am trying to send a message using the microcontroller. I am wondering what could be wrong in this program?
#include<ez8.h>
#include<sio.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main(void) {
unsigned int x;
init_uart(_UART0, _DEFFREQ, _DEFBAUD);
select_port(_UART0);
printf("AT+CMGF=1\n");
for(x=0;x<0xFFFF;x++);
printf("AT+CMGS=\"+639157135321\"\n");
for(x=0;x<0xFFFF;x++);
printf("Hello Philippines and Hello World!");
putch(0x1a);
}
I am trying to send a message "Hello Philippines and Hello World" using the AT Commands, to +639157135321. I am from the Philippines by the way, so the country code is +63. The program compiles, and no errors, but the expected output does not happen. Of course 9157135321. Could there be any wrong in logic or in punctuations, commands, whatsoever? thanks