Deek-Robot ENC28J60 Ethernet

Hi

I just got the device above and trying to find my starting point. I found some the code below. After installing what I think is the appropriate libraries, I still can’t get it to work. It seems the code may be too old. There were references to “prog_char” and the code wouldn’t compile because the type was missing, so I read that “prog_char” was deprecated and should be replaced with “char” which I did. Long story short, are there more up to date examples that I can use?

-Arduino nano (chinese version. already used before for other projects)
-IDE 1.8.3

I don’t want to step on someone’s foot by posting links, but here is what I tried:

in the section titled “DOWNLOAD - ETHER_28J60 and Ethershield”

Any help is appreciated.
Thanks

#include "etherShield.h" #include "ETHER_28J60.h" static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24}; static uint8_t ip[4] = {192, 168, 100, 15}; static uint16_t port = 80; ETHER_28J60 ethernet;

void setup()
{
ethernet.setup(mac, ip, port);
}

void loop()
{
if (ethernet.serviceRequest())
{
ethernet.print(“

Hello World

”);
ethernet.respond();
}
}

Nevermind. I got it working. I forgot to apply the same changes I mentioned about "proc_char" to the .c files. I also didn't realize that the ip address would not show in an angry ip scan.
[Solved]

I have bought literally hundreds of these DeekRobot boards, they are great little devices, I have successfully used UIPEthernet library (of which there are a few variants), very happy with it :slight_smile: