Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WIZnetInterface by
Diff: Socket/DHCPClient.h
- Revision:
- 36:0ba2e8d5274a
- Parent:
- 35:fe3028eda085
diff -r fe3028eda085 -r 0ba2e8d5274a Socket/DHCPClient.h
--- 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
