Simple TCP/IP Client using the UIPEthernet library for ENC28J60 Ethernet boards.

Dependencies:   UIPEthernet

Revision:
4:9f42e50733be
Parent:
3:9c32e3375fc5
--- a/main.cpp	Sat Aug 31 20:48:02 2019 +0000
+++ b/main.cpp	Tue Sep 03 09:58:30 2019 +0000
@@ -6,6 +6,10 @@
 #include "UipEthernet.h"
 #include "TcpClient.h"
 
+#define IP      "192.168.1.35"
+#define GATEWAY "192.168.1.1"
+#define NETMASK "255.255.255.0"
+
 const uint8_t   MAC[6] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 };
 UipEthernet     net(MAC, D11, D12, D13, D10);   // mac, mosi, miso, sck, cs
 
@@ -26,6 +30,7 @@
 
     printf("Starting ...\r\n");
 
+    //net.set_network(IP, NETMASK, GATEWAY);  // include this to use static IP address
     net.connect();
 
     // Show the network address