test

Dependencies:   C12832 EthernetInterface mbed-rtos mbed

Fork of UDPEchoClient by Mbed

Committer:
rezafirouzi
Date:
Wed Jun 17 21:12:25 2015 +0000
Revision:
9:42a7f24bd00c
Parent:
8:ae11db01fb2d
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rezafirouzi 9:42a7f24bd00c 1 #include <stdlib.h>
rezafirouzi 9:42a7f24bd00c 2 #include "lib_socket.h"
rezafirouzi 9:42a7f24bd00c 3
rezafirouzi 9:42a7f24bd00c 4 int main(){
rezafirouzi 9:42a7f24bd00c 5 const char* ipAddress = "130.237.53.141";
rezafirouzi 9:42a7f24bd00c 6 const int port = 102;
rezafirouzi 9:42a7f24bd00c 7
rezafirouzi 9:42a7f24bd00c 8 char* out_buffer =(char *)calloc(50,sizeof(char));
rezafirouzi 9:42a7f24bd00c 9 out_buffer = "Hi Albert...How are you?";
rezafirouzi 9:42a7f24bd00c 10
rezafirouzi 9:42a7f24bd00c 11 send_message_UDP(out_buffer, ipAddress, port);
rezafirouzi 9:42a7f24bd00c 12 return 0;
emilmont 3:281043c08f67 13 }