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:
18:904e3130a30c
Parent:
9:312e0937630f
Child:
20:fe5026169ec6
--- a/UIPClient.cpp	Mon Jan 02 16:38:07 2017 +0100
+++ b/UIPClient.cpp	Tue Jan 03 11:39:33 2017 +0100
@@ -139,10 +139,10 @@
       _dumpAllData();
     #endif
     }
-#if ACTLOGLEVEL>=LOG_DEBUG
+#if ACTLOGLEVEL>=LOG_DEBUG_V3
   else
     {
-      LogObject.uart_send_strln(F("UIPClient::stop() DEBUG:stop(), data: NULL"));
+      LogObject.uart_send_strln(F("UIPClient::stop() DEBUG_V3:stop(), data: NULL"));
     }
 #endif
   data = NULL;
@@ -194,7 +194,7 @@
   return _write(data, buf, size);
 }
 
-int16_t
+uint16_t
 UIPClient::_write(uip_userdata_t* u, const uint8_t *buf, size_t size)
 {
   #if ACTLOGLEVEL>=LOG_DEBUG_V3
@@ -271,7 +271,8 @@
 #endif
       return size-remain;
     }
-  return -1;
+  //return -1; -1 is wrong because return type is unsigned
+  return 0;
 }
 
 int