Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 5 months ago.
GSM coad in mbed nor working
I have written a small example coad in mbed for GSM to call but its taking some different output..
my coad is this..
#include "mbed.h"
DigitalOut s11(p6);
DigitalOut s12(p8);
Serial Zigbee(p9,p10);
Serial pc(USBTX, USBRX);
DigitalOut myled1(LED1);
DigitalOut myled2(LED2);
DigitalOut myled3(LED3);
DigitalOut myled4(LED4);
DigitalOut s13(p13);
DigitalOut s14(p16);
int main() {
pc.baud(9600);
Zigbee.baud(9600);
char c;
char str[50],t2[10];
unsigned char t1[14];//="atd9447217649;";
t1[0]='a';
t1[1]='t';
t1[2]='d';
t1[3]='9';
t1[4]='4';
t1[5]='3';
t1[6]='9';
t1[7]='2';
t1[8]='9';
t1[9]='9';
t1[10]='2';
t1[11]='9';
t1[12]='3';
t1[13]=';';
for(int i=0;i<14;i++)
Zigbee.printf("%c",t1[i]);
}
Its taking at this
atd9@atd9439299293;
only "atd9439299293; is for calling to that number