..

Dependencies:   ESP8266Interface WIZnetInterface_namespace mbed-src

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ProcessDataViaEthernet.cpp Source File

ProcessDataViaEthernet.cpp

00001 #include "mbed.h"
00002 
00003 #include "TCPSocketConnection.hpp"
00004 
00005 void ProcessDataViaEthernet()
00006 {
00007     wiznet_space::TCPSocketConnection eth_sock;
00008     
00009     eth_sock.connect("192.168.3.64", 6000);
00010 
00011     char send_data[] = "This is from Ethernet Interface\r\n";
00012     eth_sock.send_all(send_data, sizeof(send_data)-1);
00013 
00014     eth_sock.close();
00015 }