File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -92,16 +92,20 @@ class EthernetClass {
92
92
static void init (uint8_t sspin = 10 );
93
93
94
94
static void MACAddress (uint8_t *mac_address);
95
+ static uint8_t * macAddress (uint8_t * mac) { MACAddress (mac); return mac; }
95
96
static IPAddress localIP ();
96
97
static IPAddress subnetMask ();
97
98
static IPAddress gatewayIP ();
98
99
static IPAddress dnsServerIP () { return _dnsServerAddress; }
100
+ static IPAddress dnsIP (int n = 0 ) { return (n == 0 ) ? _dnsServerAddress : IPAddress (); }
99
101
100
102
void setMACAddress (const uint8_t *mac_address);
101
103
void setLocalIP (const IPAddress local_ip);
102
104
void setSubnetMask (const IPAddress subnet);
103
105
void setGatewayIP (const IPAddress gateway);
104
106
void setDnsServerIP (const IPAddress dns_server) { _dnsServerAddress = dns_server; }
107
+ void setDNS (IPAddress dns_server) { _dnsServerAddress = dns_server; }
108
+
105
109
void setRetransmissionTimeout (uint16_t milliseconds);
106
110
void setRetransmissionCount (uint8_t num);
107
111
You can’t perform that action at this time.
0 commit comments