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.
8 years, 8 months ago.
Issues establishing UDP connection
For programs where setting one of modes as Station with other as IP, am I supposed to set same IP address or not. I've got different outcomes for both with one coming up as error for setting up UDP transmission on Coolterm. And am I expected to use the same code layout below for both programs.
// pc.printf("\n---------- Establishing UDP Connection ----------\r\n");
strcpy(snd, "AT+CIPSTART=4,\"UDP\",\"xxx.xxx.xxx.xxx\",LLLL,PPPP,0\r\n");
SendCMD();
timeout=5;
//getreply();
//wait(5);
//pc.printf(buf);
wait(2);
LLLL used 8080 with PPPP 1112.