UIPEthernet library for Arduino IDE, Eclipse with arduino plugin and MBED/SMeshStudio (AVR,STM32F,ESP8266,Intel ARC32,Nordic nRF51,Teensy boards,Realtek Ameba(RTL8195A,RTL8710)), ENC28j60 network chip. Compatible with Wiznet W5100 Ethernet library API. Compiled and tested on Nucleo-F302R8. Master repository is: https://github.com/UIPEthernet/UIPEthernet/

Revision:
9:312e0937630f
Parent:
8:b9332109461d
Child:
10:cd62b2205c2a
--- a/UIPUdp.h	Wed Dec 28 15:56:02 2016 +0000
+++ b/UIPUdp.h	Thu Dec 29 10:41:59 2016 +0000
@@ -23,6 +23,7 @@
 #include "ethernet_comp.h"
 #if defined(ARDUINO)
   #include <Arduino.h>
+  #include "Print.h"
   #include <Udp.h>
 #endif
 #if defined(__MBED__)
@@ -47,12 +48,7 @@
   bool send;
 } uip_udp_userdata_t;
  
-#if defined(__MBED__)
-  class UIPUDP : public Print, public UDP {
-#else    
-  class UIPUDP : public UDP {
-#endif
-
+class UIPUDP : public Print, public UDP {
 private:
   struct uip_udp_conn *_uip_udp_conn;
  
@@ -78,9 +74,9 @@
   virtual size_t    write(uint8_t);
   // Write size bytes from buffer into the packet
   virtual size_t    write(const uint8_t *buffer, size_t size);
-//#if defined(ARDUINO)
+
   using Print::write;
-//#endif
+
   // Start processing the next available incoming packet
   // Returns the size of the packet in bytes, or 0 if no packets are available
   virtual int       parsePacket(void);