test

Dependencies:   C12832 EthernetInterface mbed-rtos mbed

Fork of UDPEchoClient by Mbed

main.cpp

Committer:
rezafirouzi
Date:
2015-06-17
Revision:
9:42a7f24bd00c
Parent:
8:ae11db01fb2d

File content as of revision 9:42a7f24bd00c:

#include <stdlib.h>
#include "lib_socket.h"

int main(){
    const char* ipAddress = "130.237.53.141";
    const int port = 102;
    
    char* out_buffer =(char *)calloc(50,sizeof(char));
    out_buffer = "Hi Albert...How are you?";
    
    send_message_UDP(out_buffer, ipAddress, port);
    return 0;
}