WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: EthernetInterface.h
- Revision:
- 34:7d44648ec5f2
- Parent:
- 33:879cfe51e66e
- Child:
- 35:fe3028eda085
--- a/EthernetInterface.h Sat Oct 07 22:10:01 2017 +0200 +++ b/EthernetInterface.h Mon Oct 09 19:58:19 2017 +0200 @@ -51,9 +51,10 @@ * \param ip the IP address to use * \param mask the IP address mask * \param gateway the gateway to use + * \param dnsServer the DNS server to use * \return 0 on success, a negative number on failure */ - int init(uint8_t * mac, const char* ip, const char* mask, const char* gateway); + int init(uint8_t * mac, const char* ip, const char* mask, const char* gateway, const char* dnsServer = NULL); /** Connect * Bring the interface up, start DHCP if needed. @@ -83,6 +84,7 @@ char ip_string[20]; char mask_string[20]; char gw_string[20]; + char dns_string[20]; char mac_string[20]; bool ip_set; };