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: Dhcp.h
- Revision:
- 33:7ba5d53df0f2
- Parent:
- 0:e3fb1267e3c3
- Child:
- 38:645b253e6b50
--- a/Dhcp.h Fri Feb 10 09:10:47 2017 +0100 +++ b/Dhcp.h Tue Feb 14 14:16:14 2017 +0100 @@ -4,7 +4,7 @@ #ifndef Dhcp_h #define Dhcp_h -#include "UIPUdp.h" +#include "utility/uipopt.h" /* DHCP state machine. */ #define STATE_DHCP_START 0 @@ -53,6 +53,9 @@ #define DHCP_CHECK_REBIND_FAIL (3) #define DHCP_CHECK_REBIND_OK (4) +#if UIP_UDP +#include "UIPUdp.h" + enum { padOption = 0, @@ -174,5 +177,5 @@ int beginWithDHCP(uint8_t *, unsigned long timeout = 60000, unsigned long responseTimeout = 4000); int checkLease(void); }; - #endif +#endif