Networking-for-Arduino / EthernetENC

Ethernet library for ENC28J60. This is a modern version of the UIPEthernet library. EthernetENC library is compatible with all Arduino architectures with Arduino SPI library with transactions support. Only include EthernetENC.h instead of Ethernet.h

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Init without ENC28J60 Module causes resets

opensprinklershop opened this issue · comments

Hi,
the OpenSprinkler 3 project uses an OPTIONAL ENC28J60 Module for the ESP8266. So when the module is missing, we have an endless boot loop.
Here is my patch for your library to fix this.

EthernetEncInitFix.zip

it is not EthernetENC code you have there. it is from UIPEthernet

with EthernetENC git version you can run

if (Ethernet.hardwareStatus() == EthernetNoHardware) 

before begin() to check if the module is present.

EDIT: UIPEthernet has this change too