diff --git a/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino b/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino index 2926bae..4451eca 100644 --- a/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino +++ b/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino @@ -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);