WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: EthernetInterface.h
- Revision:
- 36:0ba2e8d5274a
- Parent:
- 35:fe3028eda085
- Child:
- 37:018436dccfcd
--- a/EthernetInterface.h Tue Oct 10 20:56:13 2017 +0200
+++ b/EthernetInterface.h Wed Oct 11 11:18:41 2017 +0200
@@ -61,7 +61,7 @@
* Bring the interface up, start DHCP if needed.
* \return 0 on success, a negative number on failure
*/
- int connect();
+ int connect(const char *hostname = NULL);
/** Disconnect
* Bring the interface down
@@ -81,7 +81,6 @@
int getLeaseTime() { return leaseTime; };
int getLeaseStart() { return leaseStart; };
char *getDomainName(void) { return domainName; };
-
int IPrenew(int timeout_ms = 15*1000);
private:
@@ -93,6 +92,7 @@
bool ip_set;
uint32_t leaseStart;
char *domainName;
+ const char *_hostname;
};
#include "TCPSocketConnection.h"
Helmut Tschemernjak
