Fix static IP configuration in BlinkOnEthernetProps.ino

This commit is contained in:
fauresystems
2019-11-13 15:43:28 +01:00
parent ae14b6b7e1
commit 886c35a2a5
@@ -39,11 +39,6 @@ PropsAction clignoteAction = PropsAction(1000, clignote);
void setup()
{
// can do more static IP configuration
//Ethernet.setSubnetMask(IPAddress());
//Ethernet.setGatewayIP(IPAddress());
//Ethernet.setDnsServerIP(IPAddress());
IPAddress ipa;
if (!ipa.fromString(ip)) {
// attempt a DHCP connection:
@@ -55,8 +50,14 @@ void setup()
else {
Ethernet.begin(mac, ipa);
}
delay(1500); // time for shield stuff
// can do more static IP configuration
//Ethernet.setSubnetMask(IPAddress(255, 255, 255, 0));
//Ethernet.setGatewayIP(IPAddress(192, 168, 1, 1));
//Ethernet.setDnsServerIP(IPAddress(192, 168, 1, 1));
props.addData(&clignoter);
props.addData(&led);