Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7245be6

Browse filesBrowse files
JAndrassyfpistm
authored andcommitted
EthernetClass - add setDnsServerIP as in Arduino Ethernet library
1 parent cd50f45 commit 7245be6
Copy full SHA for 7245be6

File tree

Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed

‎src/STM32Ethernet.cpp

Copy file name to clipboardExpand all lines: src/STM32Ethernet.cpp
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,9 @@ IPAddress EthernetClass::dnsServerIP()
182182
return _dnsServerAddress;
183183
}
184184

185+
void EthernetClass::setDnsServerIP(const IPAddress dns_server)
186+
{
187+
_dnsServerAddress = dns_server;
188+
}
189+
185190
EthernetClass Ethernet;

‎src/STM32Ethernet.h

Copy file name to clipboardExpand all lines: src/STM32Ethernet.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class EthernetClass {
5050
IPAddress gatewayIP();
5151
IPAddress dnsServerIP();
5252

53+
void setDnsServerIP(const IPAddress dns_server);
54+
5355
friend class EthernetClient;
5456
friend class EthernetServer;
5557
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.