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();
}
}