Commit 72462ca
authored
Fixes static IPs for Arduino Nano Every
The example program WebClient does not work on the Arduino Nano Every when
DHCP is not available or commented out - the versions of Ethernet::begin()
using a static IP address fail. I tested the example on Uno, Mega2560 and
Micro, it works on all of them using either DHCP or static IP.
This modifies the begin() method so that it uses IPAddress::raw_address()
instead of platform conditional code in the same way the DHCP version of
begin() does. With this change static addresses work on the Nano Every too.1 parent 9e8a98c commit 72462ca
1 file changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
99 | 89 | | |
100 | 90 | | |
101 | 91 | | |
| |||
0 commit comments