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/
Diff: UIPServer.h
- Revision:
- 9:312e0937630f
- Parent:
- 8:b9332109461d
- Child:
- 10:cd62b2205c2a
--- a/UIPServer.h Wed Dec 28 15:56:02 2016 +0000 +++ b/UIPServer.h Thu Dec 29 10:41:59 2016 +0000 @@ -21,30 +21,24 @@ #include "ethernet_comp.h" #if defined(ARDUINO) + #include "Print.h" #include "Server.h" #endif #if defined(__MBED__) - #include <mbed.h> #include "mbed/Print.h" #include "mbed/Server.h" #endif #include "UIPClient.h" -#if defined(__MBED__) - class UIPServer : public Print, public Server { -#else - class UIPServer : public Server { -#endif - +class UIPServer : public Print, public Server { public: UIPServer(uint16_t); UIPClient available(); virtual void begin(); - size_t write(uint8_t); - size_t write(const uint8_t *buf, size_t size); -//#if defined(ARDUINO) + virtual size_t write(uint8_t); + virtual size_t write(const uint8_t *buf, size_t size); + using Print::write; -//#endif private: uint16_t _port;