WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: Socket/DHCPClient.h
- Revision:
- 36:0ba2e8d5274a
- Parent:
- 35:fe3028eda085
--- a/Socket/DHCPClient.h Tue Oct 10 20:56:13 2017 +0200
+++ b/Socket/DHCPClient.h Wed Oct 11 11:18:41 2017 +0200
@@ -82,7 +82,7 @@
public:
DHCPClient();
~DHCPClient();
- int setup(int timeout_ms = 15*1000);
+ int setup(const char *hostnane, int timeout_ms = 15*1000);
uint8_t chaddr[6]; // MAC
uint8_t yiaddr[4]; // IP
uint8_t siaddr[4]; // DHCP server
@@ -92,7 +92,6 @@
uint8_t timesrv[4];
uint8_t leaseTime[4];
char *domainName;
-
private:
int discover();
int request();
@@ -111,6 +110,7 @@
int m_retry;
uint8_t m_buf[DHCP_MAX_PACKET_SIZE];
int m_pos;
+ const char *_hostname;
WIZnet_Chip* eth;
};
#endif //DHCPCLIENT_H
Helmut Tschemernjak
